| 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 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 all_platforms="${all_platforms} --enable-realtime-only --disable-install-docs" | 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 $HIGHBD ${all_platforms}" |
| 328 gen_config_files win/ia32 "--target=x86-win32-vs12 ${all_platforms} ${x86_platfo
rms}" | 328 gen_config_files win/ia32 "--target=x86-win32-vs12 ${all_platforms} ${x86_platfo
rms}" |
| 329 gen_config_files win/x64 "--target=x86_64-win64-vs12 ${all_platforms} ${x86_plat
forms}" | 329 gen_config_files win/x64 "--target=x86_64-win64-vs12 ${all_platforms} ${x86_plat
forms}" |
| 330 gen_config_files mac/ia32 "--target=x86-darwin9-gcc ${all_platforms} ${x86_platf
orms}" | 330 gen_config_files mac/ia32 "--target=x86-darwin9-gcc ${all_platforms} ${x86_platf
orms}" |
| 331 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc ${all_platforms} ${x86_pla
tforms}" | 331 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc ${all_platforms} ${x86_pla
tforms}" |
| 332 gen_config_files nacl "--target=generic-gnu ${all_platforms}" | 332 gen_config_files nacl "--target=generic-gnu $HIGHBD ${all_platforms}" |
| 333 | 333 |
| 334 echo "Remove temporary directory." | 334 echo "Remove temporary directory." |
| 335 cd $BASE_DIR | 335 cd $BASE_DIR |
| 336 rm -rf $TEMP_DIR | 336 rm -rf $TEMP_DIR |
| 337 | 337 |
| 338 echo "Lint libvpx configuration." | 338 echo "Lint libvpx configuration." |
| 339 lint_config linux/ia32 | 339 lint_config linux/ia32 |
| 340 lint_config linux/x64 | 340 lint_config linux/x64 |
| 341 lint_config linux/arm | 341 lint_config linux/arm |
| 342 lint_config linux/arm-neon | 342 lint_config linux/arm-neon |
| (...skipping 104 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 |