Chromium Code Reviews| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 305 | 305 |
| 306 find_duplicates | 306 find_duplicates |
| 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 --disable-install-srcs --enable-multi-res-encoding --enable-temporal-denoising --disable-unit-tests --d isable-install-docs --disable-examples --enable-vp9-temporal-denoising --enable- vp9-postproc --size-limit=16384x16384" | 315 all_platforms="--enable-external-build --enable-postproc --enable-multi-res-enco ding --enable-temporal-denoising" |
|
jzern
2016/09/09 19:20:20
you're in bash so you can use += and split the lin
Johann
2016/09/09 19:59:15
I was wondering about that. I didn't see it in thi
| |
| 316 x86_platforms="$DISABLE_AVX --as=yasm $HIGHBD" | 316 all_platforms="${all_platforms} --enable-vp9-temporal-denoising --enable-vp9-pos tproc --size-limit=16384x16384" |
| 317 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi c --enable-realtime-only ${all_platforms} ${x86_platforms}" | 317 all_platforms="${all_platforms} --enable-realtime-only" |
| 318 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable- pic --enable-realtime-only ${all_platforms} ${x86_platforms}" | 318 x86_platforms="--enable-pic --as=yasm $DISABLE_AVX $HIGHBD" |
| 319 gen_config_files linux/arm "--target=armv7-linux-gcc --enable-pic --enable-realt ime-only --disable-install-bins --disable-install-libs --disable-neon ${all_plat forms}" | 319 gen_config_files linux/ia32 "--target=x86-linux-gcc ${all_platforms} ${x86_platf orms}" |
| 320 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable- realtime-only ${all_platforms}" | 320 gen_config_files linux/x64 "--target=x86_64-linux-gcc ${all_platforms} ${x86_pla tforms}" |
| 321 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}" | 321 gen_config_files linux/arm "--target=armv7-linux-gcc --disable-neon ${all_platfo rms}" |
| 322 gen_config_files linux/arm64 "--force-target=armv8-linux-gcc --enable-pic --enab le-realtime-only ${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}" | |
| 324 gen_config_files linux/arm64 "--target=armv8-linux-gcc ${all_platforms}" | |
| 323 gen_config_files linux/mipsel "--target=mips32-linux-gcc ${all_platforms}" | 325 gen_config_files linux/mipsel "--target=mips32-linux-gcc ${all_platforms}" |
| 324 gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" | 326 gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" |
| 325 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt ime-only ${all_platforms}" | 327 gen_config_files linux/generic "--target=generic-gnu ${all_platforms}" |
| 326 gen_config_files win/ia32 "--target=x86-win32-vs12 --enable-realtime-only ${all_ platforms} ${x86_platforms}" | 328 gen_config_files win/ia32 "--target=x86-win32-vs12 ${all_platforms} ${x86_platfo rms}" |
| 327 gen_config_files win/x64 "--target=x86_64-win64-vs12 --enable-realtime-only ${al l_platforms} ${x86_platforms}" | 329 gen_config_files win/x64 "--target=x86_64-win64-vs12 ${all_platforms} ${x86_plat forms}" |
| 328 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti me-only ${all_platforms} ${x86_platforms}" | 330 gen_config_files mac/ia32 "--target=x86-darwin9-gcc ${all_platforms} ${x86_platf orms}" |
| 329 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real time-only ${all_platforms} ${x86_platforms}" | 331 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc ${all_platforms} ${x86_pla tforms}" |
| 330 gen_config_files nacl "--target=generic-gnu --enable-pic --enable-realtime-only ${all_platforms}" | 332 gen_config_files nacl "--target=generic-gnu ${all_platforms}" |
| 331 | 333 |
| 332 echo "Remove temporary directory." | 334 echo "Remove temporary directory." |
| 333 cd $BASE_DIR | 335 cd $BASE_DIR |
| 334 rm -rf $TEMP_DIR | 336 rm -rf $TEMP_DIR |
| 335 | 337 |
| 336 echo "Lint libvpx configuration." | 338 echo "Lint libvpx configuration." |
| 337 lint_config linux/ia32 | 339 lint_config linux/ia32 |
| 338 lint_config linux/x64 | 340 lint_config linux/x64 |
| 339 lint_config linux/arm | 341 lint_config linux/arm |
| 340 lint_config linux/arm-neon | 342 lint_config linux/arm-neon |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 445 | 447 |
| 446 gn format --in-place $BASE_DIR/BUILD.gn | 448 gn format --in-place $BASE_DIR/BUILD.gn |
| 447 gn format --in-place $BASE_DIR/libvpx_srcs.gni | 449 gn format --in-place $BASE_DIR/libvpx_srcs.gni |
| 448 | 450 |
| 449 cd $BASE_DIR/$LIBVPX_SRC_DIR | 451 cd $BASE_DIR/$LIBVPX_SRC_DIR |
| 450 update_readme | 452 update_readme |
| 451 | 453 |
| 452 cd $BASE_DIR | 454 cd $BASE_DIR |
| 453 | 455 |
| 454 # 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 |