Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Side by Side Diff: BUILD.gn

Issue 2732213005: Revert "This is a speculative chain of reverts to improve a Chrome" (Closed)
Patch Set: merge Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/bootstrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 516
517 if (v8_use_external_startup_data) { 517 if (v8_use_external_startup_data) {
518 outputs += [ "$target_gen_dir/libraries.bin" ] 518 outputs += [ "$target_gen_dir/libraries.bin" ]
519 args += [ 519 args += [
520 "--startup_blob", 520 "--startup_blob",
521 rebase_path("$target_gen_dir/libraries.bin", root_build_dir), 521 rebase_path("$target_gen_dir/libraries.bin", root_build_dir),
522 ] 522 ]
523 } 523 }
524 } 524 }
525 525
526 action("js2c_experimental") {
527 visibility = [ ":*" ] # Only targets in this file can depend on this.
528
529 script = "tools/js2c.py"
530
531 # The script depends on this other script, this rule causes a rebuild if it
532 # changes.
533 inputs = [
534 "tools/jsmin.py",
535 ]
536
537 # NOSORT
538 sources = [
539 "src/js/macros.py",
540 "src/messages.h",
541 "src/js/harmony-atomics.js",
542 ]
543
544 outputs = [
545 "$target_gen_dir/experimental-libraries.cc",
546 ]
547
548 args = [
549 rebase_path("$target_gen_dir/experimental-libraries.cc",
550 root_build_dir),
551 "EXPERIMENTAL",
552 ] + rebase_path(sources, root_build_dir)
553
554 if (v8_use_external_startup_data) {
555 outputs += [ "$target_gen_dir/libraries_experimental.bin" ]
556 args += [
557 "--startup_blob",
558 rebase_path("$target_gen_dir/libraries_experimental.bin", root_build_dir),
559 ]
560 }
561 }
562
563 action("js2c_extras") { 526 action("js2c_extras") {
564 visibility = [ ":*" ] # Only targets in this file can depend on this. 527 visibility = [ ":*" ] # Only targets in this file can depend on this.
565 528
566 script = "tools/js2c.py" 529 script = "tools/js2c.py"
567 530
568 # The script depends on this other script, this rule causes a rebuild if it 531 # The script depends on this other script, this rule causes a rebuild if it
569 # changes. 532 # changes.
570 inputs = [ 533 inputs = [
571 "tools/jsmin.py", 534 "tools/jsmin.py",
572 ] 535 ]
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 } 626 }
664 } 627 }
665 } 628 }
666 629
667 if (v8_use_external_startup_data) { 630 if (v8_use_external_startup_data) {
668 action("natives_blob") { 631 action("natives_blob") {
669 visibility = [ ":*" ] # Only targets in this file can depend on this. 632 visibility = [ ":*" ] # Only targets in this file can depend on this.
670 633
671 deps = [ 634 deps = [
672 ":js2c", 635 ":js2c",
673 ":js2c_experimental",
674 ":js2c_experimental_extras", 636 ":js2c_experimental_extras",
675 ":js2c_extras", 637 ":js2c_extras",
676 ] 638 ]
677 639
678 # NOSORT 640 # NOSORT
679 sources = [ 641 sources = [
680 "$target_gen_dir/libraries.bin", 642 "$target_gen_dir/libraries.bin",
681 "$target_gen_dir/libraries_experimental.bin",
682 "$target_gen_dir/libraries_extras.bin", 643 "$target_gen_dir/libraries_extras.bin",
683 "$target_gen_dir/libraries_experimental_extras.bin", 644 "$target_gen_dir/libraries_experimental_extras.bin",
684 ] 645 ]
685 646
686 outputs = [ 647 outputs = [
687 "$root_out_dir/natives_blob.bin", 648 "$root_out_dir/natives_blob.bin",
688 ] 649 ]
689 650
690 script = "tools/concatenate-files.py" 651 script = "tools/concatenate-files.py"
691 652
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
834 ":v8_nosnapshot", 795 ":v8_nosnapshot",
835 ] 796 ]
836 } 797 }
837 } 798 }
838 799
839 v8_source_set("v8_nosnapshot") { 800 v8_source_set("v8_nosnapshot") {
840 visibility = [ ":*" ] # Only targets in this file can depend on this. 801 visibility = [ ":*" ] # Only targets in this file can depend on this.
841 802
842 deps = [ 803 deps = [
843 ":js2c", 804 ":js2c",
844 ":js2c_experimental",
845 ":js2c_experimental_extras", 805 ":js2c_experimental_extras",
846 ":js2c_extras", 806 ":js2c_extras",
847 ":v8_base", 807 ":v8_base",
848 ] 808 ]
849 809
850 sources = [ 810 sources = [
851 "$target_gen_dir/experimental-extras-libraries.cc", 811 "$target_gen_dir/experimental-extras-libraries.cc",
852 "$target_gen_dir/experimental-libraries.cc",
853 "$target_gen_dir/extras-libraries.cc", 812 "$target_gen_dir/extras-libraries.cc",
854 "$target_gen_dir/libraries.cc", 813 "$target_gen_dir/libraries.cc",
855 "src/snapshot/snapshot-empty.cc", 814 "src/snapshot/snapshot-empty.cc",
856 ] 815 ]
857 816
858 configs = [ ":internal_config" ] 817 configs = [ ":internal_config" ]
859 } 818 }
860 819
861 v8_source_set("v8_snapshot") { 820 v8_source_set("v8_snapshot") {
862 # Only targets in this file and the top-level visibility target can 821 # Only targets in this file and the top-level visibility target can
863 # depend on this. 822 # depend on this.
864 visibility = [ 823 visibility = [
865 ":*", 824 ":*",
866 "//:gn_visibility", 825 "//:gn_visibility",
867 ] 826 ]
868 827
869 deps = [ 828 deps = [
870 ":js2c", 829 ":js2c",
871 ":js2c_experimental",
872 ":js2c_experimental_extras", 830 ":js2c_experimental_extras",
873 ":js2c_extras", 831 ":js2c_extras",
874 ":v8_base", 832 ":v8_base",
875 ] 833 ]
876 public_deps = [ 834 public_deps = [
877 # This should be public so downstream targets can declare the snapshot 835 # This should be public so downstream targets can declare the snapshot
878 # output file as their inputs. 836 # output file as their inputs.
879 ":run_mksnapshot", 837 ":run_mksnapshot",
880 ] 838 ]
881 839
882 sources = [ 840 sources = [
883 "$target_gen_dir/experimental-extras-libraries.cc", 841 "$target_gen_dir/experimental-extras-libraries.cc",
884 "$target_gen_dir/experimental-libraries.cc",
885 "$target_gen_dir/extras-libraries.cc", 842 "$target_gen_dir/extras-libraries.cc",
886 "$target_gen_dir/libraries.cc", 843 "$target_gen_dir/libraries.cc",
887 "$target_gen_dir/snapshot.cc", 844 "$target_gen_dir/snapshot.cc",
888 ] 845 ]
889 846
890 configs = [ ":internal_config" ] 847 configs = [ ":internal_config" ]
891 } 848 }
892 849
893 if (v8_use_external_startup_data) { 850 if (v8_use_external_startup_data) {
894 v8_source_set("v8_external_snapshot") { 851 v8_source_set("v8_external_snapshot") {
895 visibility = [ ":*" ] # Only targets in this file can depend on this. 852 visibility = [ ":*" ] # Only targets in this file can depend on this.
896 853
897 deps = [ 854 deps = [
898 ":js2c", 855 ":js2c",
899 ":js2c_experimental",
900 ":js2c_experimental_extras", 856 ":js2c_experimental_extras",
901 ":js2c_extras", 857 ":js2c_extras",
902 ":v8_base", 858 ":v8_base",
903 ] 859 ]
904 public_deps = [ 860 public_deps = [
905 ":natives_blob", 861 ":natives_blob",
906 ":run_mksnapshot", 862 ":run_mksnapshot",
907 ] 863 ]
908 864
909 sources = [ 865 sources = [
(...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after
3174 ] 3130 ]
3175 3131
3176 configs = [ 3132 configs = [
3177 ":external_config", 3133 ":external_config",
3178 ":internal_config_base", 3134 ":internal_config_base",
3179 ] 3135 ]
3180 } 3136 }
3181 3137
3182 v8_fuzzer("wasm_compile_fuzzer") { 3138 v8_fuzzer("wasm_compile_fuzzer") {
3183 } 3139 }
OLDNEW
« no previous file with comments | « no previous file | src/bootstrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698