| 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 .gypi files and files in the config/platform | 7 # This script is used to generate .gypi files and files in the config/platform |
| 8 # directories needed to build libvpx. | 8 # 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 cd $TEMP_DIR | 316 cd $TEMP_DIR |
| 317 | 317 |
| 318 echo "Generate Config Files" | 318 echo "Generate Config Files" |
| 319 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 --disable-avx2" | 319 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 --disable-avx2" |
| 320 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi
c --enable-realtime-only ${all_platforms}" | 320 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi
c --enable-realtime-only ${all_platforms}" |
| 321 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable-
pic --enable-realtime-only ${all_platforms}" | 321 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable-
pic --enable-realtime-only ${all_platforms}" |
| 322 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt
ime-only --disable-install-bins --disable-install-libs ${all_platforms}" | 322 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt
ime-only --disable-install-bins --disable-install-libs ${all_platforms}" |
| 323 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable-
realtime-only ${all_platforms}" | 323 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable-
realtime-only ${all_platforms}" |
| 324 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi
c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}" | 324 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi
c --enable-realtime-only --enable-runtime-cpu-detect ${all_platforms}" |
| 325 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne
d ${all_platforms}" | 325 gen_config_files linux/mipsel "--target=mips32-linux-gcc --disable-fast-unaligne
d ${all_platforms}" |
| 326 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt
ime-only ${all_platforms}" |
| 326 gen_config_files win/ia32 "--target=x86-win32-vs7 --enable-realtime-only ${all_p
latforms}" | 327 gen_config_files win/ia32 "--target=x86-win32-vs7 --enable-realtime-only ${all_p
latforms}" |
| 327 gen_config_files win/x64 "--target=x86_64-win64-vs9 --enable-realtime-only ${all
_platforms}" | 328 gen_config_files win/x64 "--target=x86_64-win64-vs9 --enable-realtime-only ${all
_platforms}" |
| 328 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti
me-only ${all_platforms}" | 329 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti
me-only ${all_platforms}" |
| 329 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real
time-only ${all_platforms}" | 330 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real
time-only ${all_platforms}" |
| 330 gen_config_files nacl "--target=generic-gnu --enable-pic --enable-realtime-only
${all_platforms}" | 331 gen_config_files nacl "--target=generic-gnu --enable-pic --enable-realtime-only
${all_platforms}" |
| 331 | 332 |
| 332 echo "Remove temporary directory." | 333 echo "Remove temporary directory." |
| 333 cd $BASE_DIR | 334 cd $BASE_DIR |
| 334 rm -rf $TEMP_DIR | 335 rm -rf $TEMP_DIR |
| 335 | 336 |
| 336 echo "Lint libvpx configuration." | 337 echo "Lint libvpx configuration." |
| 337 lint_config linux/ia32 | 338 lint_config linux/ia32 |
| 338 lint_config linux/x64 | 339 lint_config linux/x64 |
| 339 lint_config linux/arm | 340 lint_config linux/arm |
| 340 lint_config linux/arm-neon | 341 lint_config linux/arm-neon |
| 341 lint_config linux/arm-neon-cpu-detect | 342 lint_config linux/arm-neon-cpu-detect |
| 343 lint_config linux/generic |
| 342 lint_config win/ia32 | 344 lint_config win/ia32 |
| 343 lint_config win/x64 | 345 lint_config win/x64 |
| 344 lint_config mac/ia32 | 346 lint_config mac/ia32 |
| 345 lint_config mac/x64 | 347 lint_config mac/x64 |
| 346 lint_config nacl | 348 lint_config nacl |
| 347 | 349 |
| 348 echo "Create temporary directory." | 350 echo "Create temporary directory." |
| 349 TEMP_DIR="$LIBVPX_SRC_DIR.temp" | 351 TEMP_DIR="$LIBVPX_SRC_DIR.temp" |
| 350 rm -rf $TEMP_DIR | 352 rm -rf $TEMP_DIR |
| 351 cp -R $LIBVPX_SRC_DIR $TEMP_DIR | 353 cp -R $LIBVPX_SRC_DIR $TEMP_DIR |
| 352 cd $TEMP_DIR | 354 cd $TEMP_DIR |
| 353 | 355 |
| 354 gen_rtcd_header linux/ia32 x86 | 356 gen_rtcd_header linux/ia32 x86 |
| 355 gen_rtcd_header linux/x64 x86_64 | 357 gen_rtcd_header linux/x64 x86_64 |
| 356 gen_rtcd_header linux/arm armv6 | 358 gen_rtcd_header linux/arm armv6 |
| 357 gen_rtcd_header linux/arm-neon armv7 | 359 gen_rtcd_header linux/arm-neon armv7 |
| 358 gen_rtcd_header linux/arm-neon-cpu-detect armv7 | 360 gen_rtcd_header linux/arm-neon-cpu-detect armv7 |
| 359 gen_rtcd_header linux/mipsel mipsel | 361 gen_rtcd_header linux/mipsel mipsel |
| 362 gen_rtcd_header linux/generic generic |
| 360 gen_rtcd_header win/ia32 x86 | 363 gen_rtcd_header win/ia32 x86 |
| 361 gen_rtcd_header win/x64 x86_64 | 364 gen_rtcd_header win/x64 x86_64 |
| 362 gen_rtcd_header mac/ia32 x86 | 365 gen_rtcd_header mac/ia32 x86 |
| 363 gen_rtcd_header mac/x64 x86_64 | 366 gen_rtcd_header mac/x64 x86_64 |
| 364 gen_rtcd_header nacl nacl | 367 gen_rtcd_header nacl nacl |
| 365 | 368 |
| 366 echo "Prepare Makefile." | 369 echo "Prepare Makefile." |
| 367 ./configure --target=generic-gnu > /dev/null | 370 ./configure --target=generic-gnu > /dev/null |
| 368 make_clean | 371 make_clean |
| 369 | 372 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 405 make_clean | 408 make_clean |
| 406 make libvpx_srcs.txt target=libs $config > /dev/null | 409 make libvpx_srcs.txt target=libs $config > /dev/null |
| 407 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_mips | 410 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_mips |
| 408 | 411 |
| 409 echo "Generate NaCl source list." | 412 echo "Generate NaCl source list." |
| 410 config=$(print_config_basic nacl) | 413 config=$(print_config_basic nacl) |
| 411 make_clean | 414 make_clean |
| 412 make libvpx_srcs.txt target=libs $config > /dev/null | 415 make libvpx_srcs.txt target=libs $config > /dev/null |
| 413 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_nacl | 416 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_nacl |
| 414 | 417 |
| 418 echo "Generate GENERIC source list." |
| 419 config=$(print_config_basic linux/generic) |
| 420 make_clean |
| 421 make libvpx_srcs.txt target=libs $config > /dev/null |
| 422 convert_srcs_to_gypi libvpx_srcs.txt libvpx_srcs_generic |
| 423 |
| 415 echo "Remove temporary directory." | 424 echo "Remove temporary directory." |
| 416 cd $BASE_DIR | 425 cd $BASE_DIR |
| 417 rm -rf $TEMP_DIR | 426 rm -rf $TEMP_DIR |
| 418 | 427 |
| 419 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? | 428 # TODO(fgalligan): Is "--disable-fast-unaligned" needed on mipsel? |
| 420 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 429 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
| OLD | NEW |