| OLD | NEW |
| 1 #!/bin/bash -e | 1 #!/bin/bash -e |
| 2 # | 2 # |
| 3 # Copyright (c) 2012 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 # This script is used to generate .gni files and files in the | 7 # This script is used to generate .gni files and files in the |
| 8 # config/platform directories needed to build libvpx. | 8 # config/platform directories needed to build libvpx. |
| 9 # Every time libvpx source code is updated just run this script. | 9 # Every time libvpx source code is updated just run this script. |
| 10 # | 10 # |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 | 307 |
| 308 echo "Create temporary directory." | 308 echo "Create temporary directory." |
| 309 TEMP_DIR="$LIBVPX_SRC_DIR.temp" | 309 TEMP_DIR="$LIBVPX_SRC_DIR.temp" |
| 310 rm -rf $TEMP_DIR | 310 rm -rf $TEMP_DIR |
| 311 cp -R $LIBVPX_SRC_DIR $TEMP_DIR | 311 cp -R $LIBVPX_SRC_DIR $TEMP_DIR |
| 312 cd $TEMP_DIR | 312 cd $TEMP_DIR |
| 313 | 313 |
| 314 echo "Generate config files." | 314 echo "Generate config files." |
| 315 all_platforms="--enable-external-build --enable-postproc --enable-multi-res-enco
ding --enable-temporal-denoising" | 315 all_platforms="--enable-external-build --enable-postproc --enable-multi-res-enco
ding --enable-temporal-denoising" |
| 316 all_platforms="${all_platforms} --enable-vp9-temporal-denoising --enable-vp9-pos
tproc --size-limit=16384x16384" | 316 all_platforms="${all_platforms} --enable-vp9-temporal-denoising --enable-vp9-pos
tproc --size-limit=16384x16384" |
| 317 all_platforms="${all_platforms} --enable-realtime-only" | 317 all_platforms="${all_platforms} --enable-realtime-only --disable-install-docs" |
| 318 x86_platforms="--enable-pic --as=yasm $DISABLE_AVX $HIGHBD" | 318 x86_platforms="--enable-pic --as=yasm $DISABLE_AVX $HIGHBD" |
| 319 gen_config_files linux/ia32 "--target=x86-linux-gcc ${all_platforms} ${x86_platf
orms}" | 319 gen_config_files linux/ia32 "--target=x86-linux-gcc ${all_platforms} ${x86_platf
orms}" |
| 320 gen_config_files linux/x64 "--target=x86_64-linux-gcc ${all_platforms} ${x86_pla
tforms}" | 320 gen_config_files linux/x64 "--target=x86_64-linux-gcc ${all_platforms} ${x86_pla
tforms}" |
| 321 gen_config_files linux/arm "--target=armv7-linux-gcc --disable-neon ${all_platfo
rms}" | 321 gen_config_files linux/arm "--target=armv7-linux-gcc --disable-neon ${all_platfo
rms}" |
| 322 gen_config_files linux/arm-neon "--target=armv7-linux-gcc ${all_platforms}" | 322 gen_config_files linux/arm-neon "--target=armv7-linux-gcc ${all_platforms}" |
| 323 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-ru
ntime-cpu-detect ${all_platforms}" | 323 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-ru
ntime-cpu-detect ${all_platforms}" |
| 324 gen_config_files linux/arm64 "--target=armv8-linux-gcc ${all_platforms}" | 324 gen_config_files linux/arm64 "--target=armv8-linux-gcc ${all_platforms}" |
| 325 gen_config_files linux/mipsel "--target=mips32-linux-gcc ${all_platforms}" | 325 gen_config_files linux/mipsel "--target=mips32-linux-gcc ${all_platforms}" |
| 326 gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" | 326 gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" |
| 327 gen_config_files linux/generic "--target=generic-gnu ${all_platforms}" | 327 gen_config_files linux/generic "--target=generic-gnu ${all_platforms}" |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 447 |
| 448 gn format --in-place $BASE_DIR/BUILD.gn | 448 gn format --in-place $BASE_DIR/BUILD.gn |
| 449 gn format --in-place $BASE_DIR/libvpx_srcs.gni | 449 gn format --in-place $BASE_DIR/libvpx_srcs.gni |
| 450 | 450 |
| 451 cd $BASE_DIR/$LIBVPX_SRC_DIR | 451 cd $BASE_DIR/$LIBVPX_SRC_DIR |
| 452 update_readme | 452 update_readme |
| 453 | 453 |
| 454 cd $BASE_DIR | 454 cd $BASE_DIR |
| 455 | 455 |
| 456 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 456 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
| OLD | NEW |