OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/android/config.gni") | 5 import("//build/config/android/config.gni") |
6 import("//build/config/arm.gni") | 6 import("//build/config/arm.gni") |
7 import("//build/config/dcheck_always_on.gni") | 7 import("//build/config/dcheck_always_on.gni") |
8 import("//build/config/mips.gni") | 8 import("//build/config/mips.gni") |
9 import("//build/config/sanitizers/sanitizers.gni") | 9 import("//build/config/sanitizers/sanitizers.gni") |
10 | 10 |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 | 469 |
470 if (v8_use_external_startup_data) { | 470 if (v8_use_external_startup_data) { |
471 outputs += [ "$target_gen_dir/libraries.bin" ] | 471 outputs += [ "$target_gen_dir/libraries.bin" ] |
472 args += [ | 472 args += [ |
473 "--startup_blob", | 473 "--startup_blob", |
474 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), | 474 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), |
475 ] | 475 ] |
476 } | 476 } |
477 } | 477 } |
478 | 478 |
479 action("js2c_experimental") { | |
480 visibility = [ ":*" ] # Only targets in this file can depend on this. | |
481 | |
482 script = "tools/js2c.py" | |
483 | |
484 # The script depends on this other script, this rule causes a rebuild if it | |
485 # changes. | |
486 inputs = [ | |
487 "tools/jsmin.py", | |
488 ] | |
489 | |
490 # NOSORT | |
491 sources = [ | |
492 "src/js/macros.py", | |
493 "src/messages.h", | |
494 ] | |
495 | |
496 outputs = [ | |
497 "$target_gen_dir/experimental-libraries.cc", | |
498 ] | |
499 | |
500 args = [ | |
501 rebase_path("$target_gen_dir/experimental-libraries.cc", | |
502 root_build_dir), | |
503 "EXPERIMENTAL", | |
504 ] + rebase_path(sources, root_build_dir) | |
505 | |
506 if (v8_use_external_startup_data) { | |
507 outputs += [ "$target_gen_dir/libraries_experimental.bin" ] | |
508 args += [ | |
509 "--startup_blob", | |
510 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir), | |
511 ] | |
512 } | |
513 } | |
514 | |
515 action("js2c_extras") { | 479 action("js2c_extras") { |
516 visibility = [ ":*" ] # Only targets in this file can depend on this. | 480 visibility = [ ":*" ] # Only targets in this file can depend on this. |
517 | 481 |
518 script = "tools/js2c.py" | 482 script = "tools/js2c.py" |
519 | 483 |
520 # The script depends on this other script, this rule causes a rebuild if it | 484 # The script depends on this other script, this rule causes a rebuild if it |
521 # changes. | 485 # changes. |
522 inputs = [ | 486 inputs = [ |
523 "tools/jsmin.py", | 487 "tools/jsmin.py", |
524 ] | 488 ] |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
615 } | 579 } |
616 } | 580 } |
617 } | 581 } |
618 | 582 |
619 if (v8_use_external_startup_data) { | 583 if (v8_use_external_startup_data) { |
620 action("natives_blob") { | 584 action("natives_blob") { |
621 visibility = [ ":*" ] # Only targets in this file can depend on this. | 585 visibility = [ ":*" ] # Only targets in this file can depend on this. |
622 | 586 |
623 deps = [ | 587 deps = [ |
624 ":js2c", | 588 ":js2c", |
625 ":js2c_experimental", | |
626 ":js2c_experimental_extras", | 589 ":js2c_experimental_extras", |
627 ":js2c_extras", | 590 ":js2c_extras", |
628 ] | 591 ] |
629 | 592 |
630 # NOSORT | 593 # NOSORT |
631 sources = [ | 594 sources = [ |
632 "$target_gen_dir/libraries.bin", | 595 "$target_gen_dir/libraries.bin", |
633 "$target_gen_dir/libraries_experimental.bin", | |
634 "$target_gen_dir/libraries_extras.bin", | 596 "$target_gen_dir/libraries_extras.bin", |
635 "$target_gen_dir/libraries_experimental_extras.bin", | 597 "$target_gen_dir/libraries_experimental_extras.bin", |
636 ] | 598 ] |
637 | 599 |
638 outputs = [ | 600 outputs = [ |
639 "$root_out_dir/natives_blob.bin", | 601 "$root_out_dir/natives_blob.bin", |
640 ] | 602 ] |
641 | 603 |
642 script = "tools/concatenate-files.py" | 604 script = "tools/concatenate-files.py" |
643 | 605 |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
786 ":v8_nosnapshot", | 748 ":v8_nosnapshot", |
787 ] | 749 ] |
788 } | 750 } |
789 } | 751 } |
790 | 752 |
791 v8_source_set("v8_nosnapshot") { | 753 v8_source_set("v8_nosnapshot") { |
792 visibility = [ ":*" ] # Only targets in this file can depend on this. | 754 visibility = [ ":*" ] # Only targets in this file can depend on this. |
793 | 755 |
794 deps = [ | 756 deps = [ |
795 ":js2c", | 757 ":js2c", |
796 ":js2c_experimental", | |
797 ":js2c_experimental_extras", | 758 ":js2c_experimental_extras", |
798 ":js2c_extras", | 759 ":js2c_extras", |
799 ":v8_base", | 760 ":v8_base", |
800 ] | 761 ] |
801 | 762 |
802 sources = [ | 763 sources = [ |
803 "$target_gen_dir/experimental-extras-libraries.cc", | 764 "$target_gen_dir/experimental-extras-libraries.cc", |
804 "$target_gen_dir/experimental-libraries.cc", | |
805 "$target_gen_dir/extras-libraries.cc", | 765 "$target_gen_dir/extras-libraries.cc", |
806 "$target_gen_dir/libraries.cc", | 766 "$target_gen_dir/libraries.cc", |
807 "src/snapshot/snapshot-empty.cc", | 767 "src/snapshot/snapshot-empty.cc", |
808 ] | 768 ] |
809 | 769 |
810 configs = [ ":internal_config" ] | 770 configs = [ ":internal_config" ] |
811 } | 771 } |
812 | 772 |
813 v8_source_set("v8_snapshot") { | 773 v8_source_set("v8_snapshot") { |
814 # Only targets in this file and the top-level visibility target can | 774 # Only targets in this file and the top-level visibility target can |
815 # depend on this. | 775 # depend on this. |
816 visibility = [ | 776 visibility = [ |
817 ":*", | 777 ":*", |
818 "//:gn_visibility", | 778 "//:gn_visibility", |
819 ] | 779 ] |
820 | 780 |
821 deps = [ | 781 deps = [ |
822 ":js2c", | 782 ":js2c", |
823 ":js2c_experimental", | |
824 ":js2c_experimental_extras", | 783 ":js2c_experimental_extras", |
825 ":js2c_extras", | 784 ":js2c_extras", |
826 ":v8_base", | 785 ":v8_base", |
827 ] | 786 ] |
828 public_deps = [ | 787 public_deps = [ |
829 # This should be public so downstream targets can declare the snapshot | 788 # This should be public so downstream targets can declare the snapshot |
830 # output file as their inputs. | 789 # output file as their inputs. |
831 ":run_mksnapshot", | 790 ":run_mksnapshot", |
832 ] | 791 ] |
833 | 792 |
834 sources = [ | 793 sources = [ |
835 "$target_gen_dir/experimental-extras-libraries.cc", | 794 "$target_gen_dir/experimental-extras-libraries.cc", |
836 "$target_gen_dir/experimental-libraries.cc", | |
837 "$target_gen_dir/extras-libraries.cc", | 795 "$target_gen_dir/extras-libraries.cc", |
838 "$target_gen_dir/libraries.cc", | 796 "$target_gen_dir/libraries.cc", |
839 "$target_gen_dir/snapshot.cc", | 797 "$target_gen_dir/snapshot.cc", |
840 ] | 798 ] |
841 | 799 |
842 configs = [ ":internal_config" ] | 800 configs = [ ":internal_config" ] |
843 } | 801 } |
844 | 802 |
845 if (v8_use_external_startup_data) { | 803 if (v8_use_external_startup_data) { |
846 v8_source_set("v8_external_snapshot") { | 804 v8_source_set("v8_external_snapshot") { |
847 visibility = [ ":*" ] # Only targets in this file can depend on this. | 805 visibility = [ ":*" ] # Only targets in this file can depend on this. |
848 | 806 |
849 deps = [ | 807 deps = [ |
850 ":js2c", | 808 ":js2c", |
851 ":js2c_experimental", | |
852 ":js2c_experimental_extras", | 809 ":js2c_experimental_extras", |
853 ":js2c_extras", | 810 ":js2c_extras", |
854 ":v8_base", | 811 ":v8_base", |
855 ] | 812 ] |
856 public_deps = [ | 813 public_deps = [ |
857 ":natives_blob", | 814 ":natives_blob", |
858 ":run_mksnapshot", | 815 ":run_mksnapshot", |
859 ] | 816 ] |
860 | 817 |
861 sources = [ | 818 sources = [ |
(...skipping 2253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3115 ] | 3072 ] |
3116 | 3073 |
3117 configs = [ | 3074 configs = [ |
3118 ":external_config", | 3075 ":external_config", |
3119 ":internal_config_base", | 3076 ":internal_config_base", |
3120 ] | 3077 ] |
3121 } | 3078 } |
3122 | 3079 |
3123 v8_fuzzer("wasm_compile_fuzzer") { | 3080 v8_fuzzer("wasm_compile_fuzzer") { |
3124 } | 3081 } |
OLD | NEW |