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

Side by Side Diff: BUILD.gn

Issue 2760233005: [snapshot] Move builtins generation into mksnapshot (Closed)
Patch Set: fix GYP builds Created 3 years, 8 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 | gypfiles/features.gypi » ('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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 public_deps = [ 802 public_deps = [
803 ":v8_external_snapshot", 803 ":v8_external_snapshot",
804 ] 804 ]
805 } else if (v8_use_snapshot) { 805 } else if (v8_use_snapshot) {
806 public_deps = [ 806 public_deps = [
807 ":v8_snapshot", 807 ":v8_snapshot",
808 ] 808 ]
809 } else { 809 } else {
810 # Ignore v8_use_external_startup_data setting if no snapshot is used. 810 # Ignore v8_use_external_startup_data setting if no snapshot is used.
811 public_deps = [ 811 public_deps = [
812 ":v8_builtins_setup",
812 ":v8_nosnapshot", 813 ":v8_nosnapshot",
813 ] 814 ]
814 } 815 }
815 } 816 }
816 817
817 v8_source_set("v8_nosnapshot") { 818 v8_source_set("v8_nosnapshot") {
818 visibility = [ ":*" ] # Only targets in this file can depend on this. 819 visibility = [ ":*" ] # Only targets in this file can depend on this.
819 820
820 deps = [ 821 deps = [
821 ":js2c", 822 ":js2c",
822 ":js2c_experimental_extras", 823 ":js2c_experimental_extras",
823 ":js2c_extras", 824 ":js2c_extras",
824 ":v8_base", 825 ":v8_base",
825 ":v8_builtins_generators",
826 ] 826 ]
827 827
828 sources = [ 828 sources = [
829 "$target_gen_dir/experimental-extras-libraries.cc", 829 "$target_gen_dir/experimental-extras-libraries.cc",
830 "$target_gen_dir/extras-libraries.cc", 830 "$target_gen_dir/extras-libraries.cc",
831 "$target_gen_dir/libraries.cc", 831 "$target_gen_dir/libraries.cc",
832 "src/snapshot/snapshot-empty.cc", 832 "src/snapshot/snapshot-empty.cc",
833 ] 833 ]
834 834
835 configs = [ ":internal_config" ] 835 configs = [ ":internal_config" ]
836 } 836 }
837 837
838 v8_source_set("v8_snapshot") { 838 v8_source_set("v8_snapshot") {
839 # Only targets in this file and the top-level visibility target can 839 # Only targets in this file and the top-level visibility target can
840 # depend on this. 840 # depend on this.
841 visibility = [ 841 visibility = [
842 ":*", 842 ":*",
843 "//:gn_visibility", 843 "//:gn_visibility",
844 ] 844 ]
845 845
846 deps = [ 846 deps = [
847 ":js2c", 847 ":js2c",
848 ":js2c_experimental_extras", 848 ":js2c_experimental_extras",
849 ":js2c_extras", 849 ":js2c_extras",
850 ":v8_base", 850 ":v8_base",
851 ":v8_builtins_generators",
852 ] 851 ]
853 public_deps = [ 852 public_deps = [
854 # This should be public so downstream targets can declare the snapshot 853 # This should be public so downstream targets can declare the snapshot
855 # output file as their inputs. 854 # output file as their inputs.
856 ":run_mksnapshot", 855 ":run_mksnapshot",
857 ] 856 ]
858 857
859 sources = [ 858 sources = [
860 "$target_gen_dir/experimental-extras-libraries.cc", 859 "$target_gen_dir/experimental-extras-libraries.cc",
861 "$target_gen_dir/extras-libraries.cc", 860 "$target_gen_dir/extras-libraries.cc",
862 "$target_gen_dir/libraries.cc", 861 "$target_gen_dir/libraries.cc",
863 "$target_gen_dir/snapshot.cc", 862 "$target_gen_dir/snapshot.cc",
863 "src/setup-isolate-deserialize.cc",
864 ] 864 ]
865 865
866 configs = [ ":internal_config" ] 866 configs = [ ":internal_config" ]
867 } 867 }
868 868
869 if (v8_use_external_startup_data) { 869 if (v8_use_external_startup_data) {
870 v8_source_set("v8_external_snapshot") { 870 v8_source_set("v8_external_snapshot") {
871 visibility = [ ":*" ] # Only targets in this file can depend on this. 871 visibility = [ ":*" ] # Only targets in this file can depend on this.
872 872
873 deps = [ 873 deps = [
874 ":js2c", 874 ":js2c",
875 ":js2c_experimental_extras", 875 ":js2c_experimental_extras",
876 ":js2c_extras", 876 ":js2c_extras",
877 ":v8_base", 877 ":v8_base",
878 ":v8_builtins_generators",
879 ] 878 ]
880 public_deps = [ 879 public_deps = [
881 ":natives_blob", 880 ":natives_blob",
882 ":run_mksnapshot", 881 ":run_mksnapshot",
883 ] 882 ]
884 883
885 sources = [ 884 sources = [
885 "src/setup-isolate-deserialize.cc",
886 "src/snapshot/natives-external.cc", 886 "src/snapshot/natives-external.cc",
887 "src/snapshot/snapshot-external.cc", 887 "src/snapshot/snapshot-external.cc",
888 ] 888 ]
889 889
890 configs = [ ":internal_config" ] 890 configs = [ ":internal_config" ]
891 } 891 }
892 } 892 }
893 893
894 v8_source_set("v8_builtins_generators") { 894 v8_source_set("v8_builtins_generators") {
895 visibility = [ ":*" ] # Only targets in this file can depend on this. 895 visibility = [
896 ":*",
897 "test/cctest:*",
898 "test/unittests:*",
899 ]
896 900
897 deps = [ 901 deps = [
898 ":v8_base", 902 ":v8_base",
899 ] 903 ]
900 904
901 sources = [ 905 sources = [
902 ### gcmole(all) ### 906 ### gcmole(all) ###
903 "src/builtins/builtins-arguments-gen.cc", 907 "src/builtins/builtins-arguments-gen.cc",
904 "src/builtins/builtins-arguments-gen.h", 908 "src/builtins/builtins-arguments-gen.h",
905 "src/builtins/builtins-array-gen.cc", 909 "src/builtins/builtins-array-gen.cc",
906 "src/builtins/builtins-async-function-gen.cc", 910 "src/builtins/builtins-async-function-gen.cc",
907 "src/builtins/builtins-async-gen.cc", 911 "src/builtins/builtins-async-gen.cc",
908 "src/builtins/builtins-async-gen.h", 912 "src/builtins/builtins-async-gen.h",
909 "src/builtins/builtins-async-generator-gen.cc", 913 "src/builtins/builtins-async-generator-gen.cc",
910 "src/builtins/builtins-async-iterator-gen.cc", 914 "src/builtins/builtins-async-iterator-gen.cc",
911 "src/builtins/builtins-boolean-gen.cc", 915 "src/builtins/builtins-boolean-gen.cc",
916 "src/builtins/builtins-call-gen.cc",
912 "src/builtins/builtins-constructor-gen.cc", 917 "src/builtins/builtins-constructor-gen.cc",
913 "src/builtins/builtins-constructor-gen.h", 918 "src/builtins/builtins-constructor-gen.h",
914 "src/builtins/builtins-constructor.h", 919 "src/builtins/builtins-constructor.h",
915 "src/builtins/builtins-conversion-gen.cc", 920 "src/builtins/builtins-conversion-gen.cc",
916 "src/builtins/builtins-date-gen.cc", 921 "src/builtins/builtins-date-gen.cc",
917 "src/builtins/builtins-forin-gen.cc", 922 "src/builtins/builtins-forin-gen.cc",
918 "src/builtins/builtins-forin-gen.h", 923 "src/builtins/builtins-forin-gen.h",
919 "src/builtins/builtins-function-gen.cc", 924 "src/builtins/builtins-function-gen.cc",
920 "src/builtins/builtins-generator-gen.cc", 925 "src/builtins/builtins-generator-gen.cc",
921 "src/builtins/builtins-global-gen.cc", 926 "src/builtins/builtins-global-gen.cc",
922 "src/builtins/builtins-handler-gen.cc", 927 "src/builtins/builtins-handler-gen.cc",
923 "src/builtins/builtins-ic-gen.cc", 928 "src/builtins/builtins-ic-gen.cc",
924 "src/builtins/builtins-internal-gen.cc", 929 "src/builtins/builtins-internal-gen.cc",
930 "src/builtins/builtins-interpreter-gen.cc",
925 "src/builtins/builtins-math-gen.cc", 931 "src/builtins/builtins-math-gen.cc",
926 "src/builtins/builtins-number-gen.cc", 932 "src/builtins/builtins-number-gen.cc",
927 "src/builtins/builtins-object-gen.cc", 933 "src/builtins/builtins-object-gen.cc",
928 "src/builtins/builtins-promise-gen.cc", 934 "src/builtins/builtins-promise-gen.cc",
929 "src/builtins/builtins-promise-gen.h", 935 "src/builtins/builtins-promise-gen.h",
930 "src/builtins/builtins-regexp-gen.cc", 936 "src/builtins/builtins-regexp-gen.cc",
931 "src/builtins/builtins-regexp-gen.h", 937 "src/builtins/builtins-regexp-gen.h",
932 "src/builtins/builtins-sharedarraybuffer-gen.cc", 938 "src/builtins/builtins-sharedarraybuffer-gen.cc",
933 "src/builtins/builtins-string-gen.cc", 939 "src/builtins/builtins-string-gen.cc",
934 "src/builtins/builtins-symbol-gen.cc", 940 "src/builtins/builtins-symbol-gen.cc",
935 "src/builtins/builtins-typedarray-gen.cc", 941 "src/builtins/builtins-typedarray-gen.cc",
936 "src/builtins/builtins-utils-gen.h", 942 "src/builtins/builtins-utils-gen.h",
937 "src/builtins/builtins-wasm-gen.cc", 943 "src/builtins/builtins-wasm-gen.cc",
944 "src/builtins/setup-builtins-internal.cc",
938 "src/ic/accessor-assembler.cc", 945 "src/ic/accessor-assembler.cc",
939 "src/ic/accessor-assembler.h", 946 "src/ic/accessor-assembler.h",
940 "src/ic/binary-op-assembler.cc", 947 "src/ic/binary-op-assembler.cc",
941 "src/ic/binary-op-assembler.h", 948 "src/ic/binary-op-assembler.h",
942 "src/ic/keyed-store-generic.cc", 949 "src/ic/keyed-store-generic.cc",
943 "src/ic/keyed-store-generic.h", 950 "src/ic/keyed-store-generic.h",
944 "src/interpreter/interpreter-assembler.cc", 951 "src/interpreter/interpreter-assembler.cc",
945 "src/interpreter/interpreter-assembler.h", 952 "src/interpreter/interpreter-assembler.h",
946 "src/interpreter/interpreter-generator.cc", 953 "src/interpreter/interpreter-generator.cc",
947 "src/interpreter/interpreter-generator.h", 954 "src/interpreter/interpreter-generator.h",
948 "src/interpreter/interpreter-intrinsics-generator.cc", 955 "src/interpreter/interpreter-intrinsics-generator.cc",
949 "src/interpreter/interpreter-intrinsics-generator.h", 956 "src/interpreter/interpreter-intrinsics-generator.h",
957 "src/interpreter/setup-interpreter-internal.cc",
958 "src/interpreter/setup-interpreter.h",
950 ] 959 ]
951 960
952 if (v8_current_cpu == "x86") { 961 if (v8_current_cpu == "x86") {
953 sources += [ 962 sources += [
954 ### gcmole(arch:ia32) ### 963 ### gcmole(arch:ia32) ###
955 "src/builtins/ia32/builtins-ia32.cc", 964 "src/builtins/ia32/builtins-ia32.cc",
956 ] 965 ]
957 } else if (v8_current_cpu == "x64") { 966 } else if (v8_current_cpu == "x64") {
958 sources += [ 967 sources += [
959 ### gcmole(arch:x64) ### 968 ### gcmole(arch:x64) ###
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
992 } else if (v8_current_cpu == "x87") { 1001 } else if (v8_current_cpu == "x87") {
993 sources += [ 1002 sources += [
994 ### gcmole(arch:x87) ### 1003 ### gcmole(arch:x87) ###
995 "src/builtins/x87/builtins-x87.cc", 1004 "src/builtins/x87/builtins-x87.cc",
996 ] 1005 ]
997 } 1006 }
998 1007
999 configs = [ ":internal_config" ] 1008 configs = [ ":internal_config" ]
1000 } 1009 }
1001 1010
1011 v8_source_set("v8_builtins_setup") {
1012 visibility = [ ":*" ] # Only targets in this file can depend on this.
1013
1014 deps = [
1015 ":v8_builtins_generators",
1016 ]
1017
1018 sources = [
1019 ### gcmole(all) ###
1020 "src/setup-isolate-full.cc",
1021 ]
1022
1023 configs = [ ":internal_config" ]
1024 }
1025
1002 # This is split out to be a non-code containing target that the Chromium browser 1026 # This is split out to be a non-code containing target that the Chromium browser
1003 # DLL can depend upon to get only a version string. 1027 # DLL can depend upon to get only a version string.
1004 v8_header_set("v8_version") { 1028 v8_header_set("v8_version") {
1005 configs = [ ":internal_config" ] 1029 configs = [ ":internal_config" ]
1006 1030
1007 sources = [ 1031 sources = [
1008 "include/v8-version-string.h", 1032 "include/v8-version-string.h",
1009 "include/v8-version.h", 1033 "include/v8-version.h",
1010 ] 1034 ]
1011 } 1035 }
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
1840 "src/runtime/runtime-strings.cc", 1864 "src/runtime/runtime-strings.cc",
1841 "src/runtime/runtime-symbol.cc", 1865 "src/runtime/runtime-symbol.cc",
1842 "src/runtime/runtime-test.cc", 1866 "src/runtime/runtime-test.cc",
1843 "src/runtime/runtime-typedarray.cc", 1867 "src/runtime/runtime-typedarray.cc",
1844 "src/runtime/runtime-utils.h", 1868 "src/runtime/runtime-utils.h",
1845 "src/runtime/runtime-wasm.cc", 1869 "src/runtime/runtime-wasm.cc",
1846 "src/runtime/runtime.cc", 1870 "src/runtime/runtime.cc",
1847 "src/runtime/runtime.h", 1871 "src/runtime/runtime.h",
1848 "src/safepoint-table.cc", 1872 "src/safepoint-table.cc",
1849 "src/safepoint-table.h", 1873 "src/safepoint-table.h",
1874 "src/setup-isolate.h",
1850 "src/signature.h", 1875 "src/signature.h",
1851 "src/simulator.h", 1876 "src/simulator.h",
1852 "src/small-pointer-list.h", 1877 "src/small-pointer-list.h",
1853 "src/snapshot/code-serializer.cc", 1878 "src/snapshot/code-serializer.cc",
1854 "src/snapshot/code-serializer.h", 1879 "src/snapshot/code-serializer.h",
1855 "src/snapshot/deserializer.cc", 1880 "src/snapshot/deserializer.cc",
1856 "src/snapshot/deserializer.h", 1881 "src/snapshot/deserializer.h",
1857 "src/snapshot/natives-common.cc", 1882 "src/snapshot/natives-common.cc",
1858 "src/snapshot/natives.h", 1883 "src/snapshot/natives.h",
1859 "src/snapshot/partial-serializer.cc", 1884 "src/snapshot/partial-serializer.cc",
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after
2596 visibility = [ ":*" ] # Only targets in this file can depend on this. 2621 visibility = [ ":*" ] # Only targets in this file can depend on this.
2597 2622
2598 sources = [ 2623 sources = [
2599 "src/snapshot/mksnapshot.cc", 2624 "src/snapshot/mksnapshot.cc",
2600 ] 2625 ]
2601 2626
2602 configs = [ ":internal_config" ] 2627 configs = [ ":internal_config" ]
2603 2628
2604 deps = [ 2629 deps = [
2605 ":v8_base", 2630 ":v8_base",
2631 ":v8_builtins_setup",
2606 ":v8_libbase", 2632 ":v8_libbase",
2607 ":v8_libplatform", 2633 ":v8_libplatform",
2608 ":v8_nosnapshot", 2634 ":v8_nosnapshot",
2609 "//build/config/sanitizers:deps", 2635 "//build/config/sanitizers:deps",
2610 "//build/win:default_exe_manifest", 2636 "//build/win:default_exe_manifest",
2611 ] 2637 ]
2612 } 2638 }
2613 } 2639 }
2614 2640
2615 v8_executable("mkpeephole") { 2641 v8_executable("mkpeephole") {
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
3220 ] 3246 ]
3221 3247
3222 configs = [ 3248 configs = [
3223 ":external_config", 3249 ":external_config",
3224 ":internal_config_base", 3250 ":internal_config_base",
3225 ] 3251 ]
3226 } 3252 }
3227 3253
3228 v8_fuzzer("wasm_compile_fuzzer") { 3254 v8_fuzzer("wasm_compile_fuzzer") {
3229 } 3255 }
OLDNEW
« no previous file with comments | « no previous file | gypfiles/features.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698