blob: 0e5159d6f4059264685475ebd80dfe7058d2061f [file] [log] [blame]
#!/bin/bash -e
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Use this to copy all config files into the tree.
for os in android linux linux-noasm mac win; do
for target in Chromium Chrome ChromeOS; do
# Copy config files for various architectures:
# - ia32/x64 have config.asm, config.h
# - arm/arm-neon have config.h
for arch in arm arm-neon arm64 ia32 x64 mipsel mips64el; do
# Don't waste time on non-existent configs, if no config.h then skip.
[ ! -e "build.$arch.$os/$target/config.h" ] && continue
for f in config.h config.asm libavutil/avconfig.h libavutil/ffversion.h libavcodec/bsf_list.c libavcodec/codec_list.c libavcodec/parser_list.c libavformat/demuxer_list.c libavformat/muxer_list.c libavformat/protocol_list.c; do
if [ "$(dirname $f)" != "" ]; then mkdir -p $(dirname $TO); fi
[ -e $FROM ] && cp -v $FROM $TO
echo "Copied all existing newer configs successfully."