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, .gni files and files in the | 7 # This script is used to generate .gypi, .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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
453 | 453 |
454 find_duplicates | 454 find_duplicates |
455 | 455 |
456 echo "Create temporary directory." | 456 echo "Create temporary directory." |
457 TEMP_DIR="$LIBVPX_SRC_DIR.temp" | 457 TEMP_DIR="$LIBVPX_SRC_DIR.temp" |
458 rm -rf $TEMP_DIR | 458 rm -rf $TEMP_DIR |
459 cp -R $LIBVPX_SRC_DIR $TEMP_DIR | 459 cp -R $LIBVPX_SRC_DIR $TEMP_DIR |
460 cd $TEMP_DIR | 460 cd $TEMP_DIR |
461 | 461 |
462 echo "Generate config files." | 462 echo "Generate config files." |
463 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 $DISABLE_AVX --as=yasm" | 463 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 $DISABLE_AVX --as=yasm" |
kjellander_chromium
2016/05/19 08:48:15
Do I have to remove '--enable-vp9-temporal-denoisi
Johann
2016/05/24 20:13:39
you can leave it, it is harmless.
| |
464 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi c --enable-realtime-only ${all_platforms}" | 464 gen_config_files linux/ia32 "--target=x86-linux-gcc --disable-ccache --enable-pi c --enable-realtime-only ${all_platforms}" |
465 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable- pic --enable-realtime-only ${all_platforms}" | 465 gen_config_files linux/x64 "--target=x86_64-linux-gcc --disable-ccache --enable- pic --enable-realtime-only ${all_platforms}" |
466 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt ime-only --disable-install-bins --disable-install-libs --disable-edsp ${all_plat forms}" | 466 gen_config_files linux/arm "--target=armv6-linux-gcc --enable-pic --enable-realt ime-only --disable-install-bins --disable-install-libs --disable-edsp ${all_plat forms}" |
467 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable- realtime-only --disable-edsp ${all_platforms}" | 467 gen_config_files linux/arm-neon "--target=armv7-linux-gcc --enable-pic --enable- realtime-only --disable-edsp ${all_platforms}" |
468 gen_config_files linux/arm-neon-no-vp9 "--target=armv7-linux-gcc --disable-vp9 - -enable-pic --enable-realtime-only --disable-edsp ${all_platforms}" | |
468 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi c --enable-realtime-only --enable-runtime-cpu-detect --disable-edsp ${all_platfo rms}" | 469 gen_config_files linux/arm-neon-cpu-detect "--target=armv7-linux-gcc --enable-pi c --enable-realtime-only --enable-runtime-cpu-detect --disable-edsp ${all_platfo rms}" |
469 gen_config_files linux/arm64 "--force-target=armv8-linux-gcc --enable-pic --enab le-realtime-only --disable-edsp ${all_platforms}" | 470 gen_config_files linux/arm64 "--force-target=armv8-linux-gcc --enable-pic --enab le-realtime-only --disable-edsp ${all_platforms}" |
471 gen_config_files linux/arm64-no-vp9 "--force-target=armv8-linux-gcc --disable-vp 9 --enable-pic --enable-realtime-only --disable-edsp ${all_platforms}" | |
470 gen_config_files linux/mipsel "--target=mips32-linux-gcc ${all_platforms}" | 472 gen_config_files linux/mipsel "--target=mips32-linux-gcc ${all_platforms}" |
471 gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" | 473 gen_config_files linux/mips64el "--target=mips64-linux-gcc ${all_platforms}" |
472 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt ime-only ${all_platforms}" | 474 gen_config_files linux/generic "--target=generic-gnu --enable-pic --enable-realt ime-only ${all_platforms}" |
473 gen_config_files win/ia32 "--target=x86-win32-vs12 --enable-realtime-only ${all_ platforms}" | 475 gen_config_files win/ia32 "--target=x86-win32-vs12 --enable-realtime-only ${all_ platforms}" |
474 gen_config_files win/x64 "--target=x86_64-win64-vs12 --enable-realtime-only ${al l_platforms}" | 476 gen_config_files win/x64 "--target=x86_64-win64-vs12 --enable-realtime-only ${al l_platforms}" |
475 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti me-only ${all_platforms}" | 477 gen_config_files mac/ia32 "--target=x86-darwin9-gcc --enable-pic --enable-realti me-only ${all_platforms}" |
476 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real time-only ${all_platforms}" | 478 gen_config_files mac/x64 "--target=x86_64-darwin9-gcc --enable-pic --enable-real time-only ${all_platforms}" |
477 gen_config_files nacl "--target=generic-gnu --enable-pic --enable-realtime-only ${all_platforms}" | 479 gen_config_files nacl "--target=generic-gnu --enable-pic --enable-realtime-only ${all_platforms}" |
478 | 480 |
479 echo "Remove temporary directory." | 481 echo "Remove temporary directory." |
480 cd $BASE_DIR | 482 cd $BASE_DIR |
481 rm -rf $TEMP_DIR | 483 rm -rf $TEMP_DIR |
482 | 484 |
483 echo "Lint libvpx configuration." | 485 echo "Lint libvpx configuration." |
484 lint_config linux/ia32 | 486 lint_config linux/ia32 |
485 lint_config linux/x64 | 487 lint_config linux/x64 |
486 lint_config linux/arm | 488 lint_config linux/arm |
487 lint_config linux/arm-neon | 489 lint_config linux/arm-neon |
490 lint_config linux/arm-neon-no-vp9 | |
488 lint_config linux/arm-neon-cpu-detect | 491 lint_config linux/arm-neon-cpu-detect |
489 lint_config linux/arm64 | 492 lint_config linux/arm64 |
493 lint_config linux/arm64-no-vp9 | |
490 lint_config linux/mipsel | 494 lint_config linux/mipsel |
491 lint_config linux/mips64el | 495 lint_config linux/mips64el |
492 lint_config linux/generic | 496 lint_config linux/generic |
493 lint_config win/ia32 | 497 lint_config win/ia32 |
494 lint_config win/x64 | 498 lint_config win/x64 |
495 lint_config mac/ia32 | 499 lint_config mac/ia32 |
496 lint_config mac/x64 | 500 lint_config mac/x64 |
497 lint_config nacl | 501 lint_config nacl |
498 | 502 |
499 echo "Create temporary directory." | 503 echo "Create temporary directory." |
500 TEMP_DIR="$LIBVPX_SRC_DIR.temp" | 504 TEMP_DIR="$LIBVPX_SRC_DIR.temp" |
501 rm -rf $TEMP_DIR | 505 rm -rf $TEMP_DIR |
502 cp -R $LIBVPX_SRC_DIR $TEMP_DIR | 506 cp -R $LIBVPX_SRC_DIR $TEMP_DIR |
503 cd $TEMP_DIR | 507 cd $TEMP_DIR |
504 | 508 |
505 gen_rtcd_header linux/ia32 x86 | 509 gen_rtcd_header linux/ia32 x86 |
506 gen_rtcd_header linux/x64 x86_64 | 510 gen_rtcd_header linux/x64 x86_64 |
507 gen_rtcd_header linux/arm armv6 | 511 gen_rtcd_header linux/arm armv6 |
508 gen_rtcd_header linux/arm-neon armv7 | 512 gen_rtcd_header linux/arm-neon armv7 |
513 gen_rtcd_header linux/arm-neon-no-vp9 armv7 | |
509 gen_rtcd_header linux/arm-neon-cpu-detect armv7 | 514 gen_rtcd_header linux/arm-neon-cpu-detect armv7 |
510 gen_rtcd_header linux/arm64 armv8 | 515 gen_rtcd_header linux/arm64 armv8 |
516 gen_rtcd_header linux/arm64-no-vp9 armv8 | |
511 gen_rtcd_header linux/mipsel mipsel | 517 gen_rtcd_header linux/mipsel mipsel |
512 gen_rtcd_header linux/mips64el mips64el | 518 gen_rtcd_header linux/mips64el mips64el |
513 gen_rtcd_header linux/generic generic | 519 gen_rtcd_header linux/generic generic |
514 gen_rtcd_header win/ia32 x86 | 520 gen_rtcd_header win/ia32 x86 |
515 gen_rtcd_header win/x64 x86_64 | 521 gen_rtcd_header win/x64 x86_64 |
516 gen_rtcd_header mac/ia32 x86 | 522 gen_rtcd_header mac/ia32 x86 |
517 gen_rtcd_header mac/x64 x86_64 | 523 gen_rtcd_header mac/x64 x86_64 |
518 gen_rtcd_header nacl nacl | 524 gen_rtcd_header nacl nacl |
519 | 525 |
520 echo "Prepare Makefile." | 526 echo "Prepare Makefile." |
(...skipping 25 matching lines...) Expand all Loading... | |
546 make_clean | 552 make_clean |
547 make libvpx_srcs.txt target=libs $config > /dev/null | 553 make libvpx_srcs.txt target=libs $config > /dev/null |
548 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm | 554 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm |
549 | 555 |
550 echo "Generate ARM NEON source list." | 556 echo "Generate ARM NEON source list." |
551 config=$(print_config linux/arm-neon) | 557 config=$(print_config linux/arm-neon) |
552 make_clean | 558 make_clean |
553 make libvpx_srcs.txt target=libs $config > /dev/null | 559 make libvpx_srcs.txt target=libs $config > /dev/null |
554 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm_neon | 560 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm_neon |
555 | 561 |
562 echo "Generate ARM NEON source list (VP9 disabled)." | |
563 config=$(print_config linux/arm-neon-no-vp9) | |
564 make_clean | |
565 make libvpx_srcs.txt target=libs $config > /dev/null | |
566 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm_neon_no_vp9 | |
567 | |
556 echo "Generate ARM NEON CPU DETECT source list." | 568 echo "Generate ARM NEON CPU DETECT source list." |
557 config=$(print_config linux/arm-neon-cpu-detect) | 569 config=$(print_config linux/arm-neon-cpu-detect) |
558 make_clean | 570 make_clean |
559 make libvpx_srcs.txt target=libs $config > /dev/null | 571 make libvpx_srcs.txt target=libs $config > /dev/null |
560 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm_neon_cpu_detect | 572 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm_neon_cpu_detect |
561 | 573 |
562 echo "Generate ARM64 source list." | 574 echo "Generate ARM64 source list." |
563 config=$(print_config linux/arm64) | 575 config=$(print_config linux/arm64) |
564 make_clean | 576 make_clean |
565 make libvpx_srcs.txt target=libs $config > /dev/null | 577 make libvpx_srcs.txt target=libs $config > /dev/null |
566 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm64 | 578 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm64 |
567 | 579 |
580 echo "Generate ARM64 source list (VP9 disabled)." | |
581 config=$(print_config linux/arm64-no-vp9) | |
582 make_clean | |
583 make libvpx_srcs.txt target=libs $config > /dev/null | |
584 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_arm64_no_vp9 | |
585 | |
568 echo "Generate MIPS source list." | 586 echo "Generate MIPS source list." |
569 config=$(print_config_basic linux/mipsel) | 587 config=$(print_config_basic linux/mipsel) |
570 make_clean | 588 make_clean |
571 make libvpx_srcs.txt target=libs $config > /dev/null | 589 make libvpx_srcs.txt target=libs $config > /dev/null |
572 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_mips | 590 convert_srcs_to_project_files libvpx_srcs.txt libvpx_srcs_mips |
573 | 591 |
574 echo "MIPS64 source list is identical to MIPS source list. No need to generate it." | 592 echo "MIPS64 source list is identical to MIPS source list. No need to generate it." |
575 | 593 |
576 echo "Generate NaCl source list." | 594 echo "Generate NaCl source list." |
577 config=$(print_config_basic nacl) | 595 config=$(print_config_basic nacl) |
(...skipping 16 matching lines...) Expand all Loading... | |
594 gn format --in-place $BASE_DIR/libvpx_srcs.gni | 612 gn format --in-place $BASE_DIR/libvpx_srcs.gni |
595 | 613 |
596 cd $BASE_DIR/$LIBVPX_SRC_DIR | 614 cd $BASE_DIR/$LIBVPX_SRC_DIR |
597 echo | 615 echo |
598 echo "Update README.chromium:" | 616 echo "Update README.chromium:" |
599 git log -1 --format="%cd%nCommit: %H" --date=format:"Date: %A %B %d %Y" | 617 git log -1 --format="%cd%nCommit: %H" --date=format:"Date: %A %B %d %Y" |
600 | 618 |
601 cd $BASE_DIR | 619 cd $BASE_DIR |
602 | 620 |
603 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? | 621 # TODO(fgalligan): Can we turn on "--enable-realtime-only" for mipsel? |
OLD | NEW |