| OLD | NEW |
| 1 #!/bin/bash -e | 1 #!/bin/bash -e |
| 2 | 2 |
| 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 # Use this to copy all config files into the tree. | 7 # Use this to copy all config files into the tree. |
| 8 for os in linux mac win; 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, codec_names.h |
| 12 # - arm/arm-neon have config.h, codec_names.h |
| 13 for arch in arm arm-neon ia32 x64; 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 |
| 8 | 16 |
| 9 # Linux (all combinations). | 17 for f in config.h config.asm; do |
| 10 for target in Chromium ChromiumOS Chrome ChromeOS; do | 18 FROM="build.$arch.$os/$target/$f" |
| 11 # ia32/x64 have this funny little config.asm file! | 19 TO="chromium/config/$target/$os/$arch/$f" |
| 12 for arch in ia32 x64; do | 20 [ -e $FROM ] && cp -v $FROM $TO |
| 13 for f in config.h config.asm; do | 21 done |
| 14 FROM="build.$arch.linux/$target/$f" | |
| 15 TO="chromium/config/$target/linux/$arch/$f" | |
| 16 [ -e $FROM ] && cp -u -v $FROM $TO | |
| 17 done | |
| 18 done | |
| 19 | 22 |
| 20 # arm/arm-neon only have a config.h. | 23 mkdir -p "chromium/config/$target/$os/$arch/libavcodec/" |
| 21 for arch in arm arm-neon; do | 24 FROM="build.$arch.$os/$target/libavcodec/codec_names.h" |
| 22 FROM="build.$arch.linux/$target/config.h" | 25 TO="chromium/config/$target/$os/$arch/libavcodec/codec_names.h" |
| 23 TO="chromium/config/$target/linux/$arch/config.h" | 26 [ -e $FROM ] && cp -v $FROM $TO |
| 24 [ -e $FROM ] && cp -u -v $FROM $TO | |
| 25 done | |
| 26 done | |
| 27 | |
| 28 # Mac/Windows (ia32). | |
| 29 for os in mac win; do | |
| 30 for target in Chromium Chrome ; do | |
| 31 for f in config.h config.asm; do | |
| 32 FROM="build.ia32.$os/$target/$f" | |
| 33 TO="chromium/config/$target/$os/ia32/$f" | |
| 34 [ -e $FROM ] && cp -u -v $FROM $TO | |
| 35 done | 27 done |
| 36 done | 28 done |
| 37 done | 29 done |
| 38 | 30 |
| 39 echo "Copied all existing newer configs successfully." | 31 echo "Copied all existing newer configs successfully." |
| OLD | NEW |