7de102ec595500ef4dd0332a18cf1b87f2f7ee40
[platform/framework/web/crosswalk.git] / src / third_party / ffmpeg / chromium / scripts / copy_config.sh
1 #!/bin/bash -e
2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file.
6
7 # Use this to copy all config files into the tree.
8 for os in linux linux-noasm mac win win-vs2013; do
9   for target in Chromium ChromiumOS Chrome ChromeOS; do
10     # Copy config files for various architectures:
11     #   - ia32/x64 have config.asm, config.h
12     #   - arm/arm-neon have config.h
13     for arch in arm arm-neon ia32 x64 mipsel; do
14       # Don't waste time on non-existent configs, if no config.h then skip.
15       [ ! -e "build.$arch.$os/$target/config.h" ] && continue
16       for f in config.h config.asm libavutil/avconfig.h; do
17         FROM="build.$arch.$os/$target/$f"
18         TO="chromium/config/$target/$os/$arch/$f"
19         if [ "$(dirname $f)" != "" ]; then mkdir -p $(dirname $TO); fi
20         [ -e $FROM ] && cp -v $FROM $TO
21       done
22     done
23   done
24 done
25
26 echo "Copied all existing newer configs successfully."