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/mips.gni") | 7 import("//build/config/mips.gni") |
8 import("//build/config/sanitizers/sanitizers.gni") | 8 import("//build/config/sanitizers/sanitizers.gni") |
9 | 9 |
10 if (is_android) { | 10 if (is_android) { |
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 } | 305 } |
306 } | 306 } |
307 } | 307 } |
308 | 308 |
309 ############################################################################### | 309 ############################################################################### |
310 # Templates | 310 # Templates |
311 # | 311 # |
312 | 312 |
313 template("v8_source_set") { | 313 template("v8_source_set") { |
314 source_set(target_name) { | 314 source_set(target_name) { |
315 forward_variables_from(invoker, "*", ["configs"]) | 315 forward_variables_from(invoker, "*", [ "configs" ]) |
316 configs += invoker.configs | 316 configs += invoker.configs |
317 configs -= [ "//build/config/compiler:chromium_code" ] | 317 configs -= [ "//build/config/compiler:chromium_code" ] |
318 configs += [ "//build/config/compiler:no_chromium_code" ] | 318 configs += [ "//build/config/compiler:no_chromium_code" ] |
319 configs += [ | 319 configs += [ |
320 ":features", | 320 ":features", |
321 ":toolchain", | 321 ":toolchain", |
322 ] | 322 ] |
323 | 323 |
324 if (!is_debug || v8_optimized_debug) { | 324 if (!is_debug || v8_optimized_debug) { |
325 configs -= [ "//build/config/compiler:default_optimization" ] | 325 configs -= [ "//build/config/compiler:default_optimization" ] |
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
651 ] | 651 ] |
652 | 652 |
653 sources = [ | 653 sources = [ |
654 "$target_gen_dir/experimental-extras-libraries.cc", | 654 "$target_gen_dir/experimental-extras-libraries.cc", |
655 "$target_gen_dir/experimental-libraries.cc", | 655 "$target_gen_dir/experimental-libraries.cc", |
656 "$target_gen_dir/extras-libraries.cc", | 656 "$target_gen_dir/extras-libraries.cc", |
657 "$target_gen_dir/libraries.cc", | 657 "$target_gen_dir/libraries.cc", |
658 "src/snapshot/snapshot-empty.cc", | 658 "src/snapshot/snapshot-empty.cc", |
659 ] | 659 ] |
660 | 660 |
661 configs = [ | 661 configs = [ ":internal_config" ] |
662 ":internal_config", | |
663 ] | |
664 } | 662 } |
665 | 663 |
666 v8_source_set("v8_snapshot") { | 664 v8_source_set("v8_snapshot") { |
667 # Only targets in this file and the top-level visibility target can | 665 # Only targets in this file and the top-level visibility target can |
668 # depend on this. | 666 # depend on this. |
669 visibility = [ | 667 visibility = [ |
670 ":*", | 668 ":*", |
671 "//:gn_visibility", | 669 "//:gn_visibility", |
672 ] | 670 ] |
673 | 671 |
(...skipping 11 matching lines...) Expand all Loading... |
685 ] | 683 ] |
686 | 684 |
687 sources = [ | 685 sources = [ |
688 "$target_gen_dir/experimental-extras-libraries.cc", | 686 "$target_gen_dir/experimental-extras-libraries.cc", |
689 "$target_gen_dir/experimental-libraries.cc", | 687 "$target_gen_dir/experimental-libraries.cc", |
690 "$target_gen_dir/extras-libraries.cc", | 688 "$target_gen_dir/extras-libraries.cc", |
691 "$target_gen_dir/libraries.cc", | 689 "$target_gen_dir/libraries.cc", |
692 "$target_gen_dir/snapshot.cc", | 690 "$target_gen_dir/snapshot.cc", |
693 ] | 691 ] |
694 | 692 |
695 configs = [ | 693 configs = [ ":internal_config" ] |
696 ":internal_config", | |
697 ] | |
698 } | 694 } |
699 | 695 |
700 if (v8_use_external_startup_data) { | 696 if (v8_use_external_startup_data) { |
701 v8_source_set("v8_external_snapshot") { | 697 v8_source_set("v8_external_snapshot") { |
702 visibility = [ ":*" ] # Only targets in this file can depend on this. | 698 visibility = [ ":*" ] # Only targets in this file can depend on this. |
703 | 699 |
704 deps = [ | 700 deps = [ |
705 ":js2c", | 701 ":js2c", |
706 ":js2c_experimental", | 702 ":js2c_experimental", |
707 ":js2c_experimental_extras", | 703 ":js2c_experimental_extras", |
708 ":js2c_extras", | 704 ":js2c_extras", |
709 ":v8_base", | 705 ":v8_base", |
710 ] | 706 ] |
711 public_deps = [ | 707 public_deps = [ |
712 ":natives_blob", | 708 ":natives_blob", |
713 ":run_mksnapshot", | 709 ":run_mksnapshot", |
714 ] | 710 ] |
715 | 711 |
716 sources = [ | 712 sources = [ |
717 "src/snapshot/natives-external.cc", | 713 "src/snapshot/natives-external.cc", |
718 "src/snapshot/snapshot-external.cc", | 714 "src/snapshot/snapshot-external.cc", |
719 ] | 715 ] |
720 | 716 |
721 configs = [ | 717 configs = [ ":internal_config" ] |
722 ":internal_config", | |
723 ] | |
724 } | 718 } |
725 } | 719 } |
726 | 720 |
727 v8_source_set("v8_base") { | 721 v8_source_set("v8_base") { |
728 visibility = [ ":*" ] # Only targets in this file can depend on this. | 722 visibility = [ ":*" ] # Only targets in this file can depend on this. |
729 | 723 |
730 sources = [ | 724 sources = [ |
731 # TODO(fmeawad): This needs to be updated to support standalone V8 builds. | 725 # TODO(fmeawad): This needs to be updated to support standalone V8 builds. |
732 "../base/trace_event/common/trace_event_common.h", | 726 "../base/trace_event/common/trace_event_common.h", |
733 "include/v8-debug.h", | 727 "include/v8-debug.h", |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1479 "src/wasm/encoder.h", | 1473 "src/wasm/encoder.h", |
1480 "src/wasm/leb-helper.h", | 1474 "src/wasm/leb-helper.h", |
1481 "src/wasm/module-decoder.cc", | 1475 "src/wasm/module-decoder.cc", |
1482 "src/wasm/module-decoder.h", | 1476 "src/wasm/module-decoder.h", |
1483 "src/wasm/switch-logic.cc", | 1477 "src/wasm/switch-logic.cc", |
1484 "src/wasm/switch-logic.h", | 1478 "src/wasm/switch-logic.h", |
1485 "src/wasm/wasm-external-refs.cc", | 1479 "src/wasm/wasm-external-refs.cc", |
1486 "src/wasm/wasm-external-refs.h", | 1480 "src/wasm/wasm-external-refs.h", |
1487 "src/wasm/wasm-function-name-table.cc", | 1481 "src/wasm/wasm-function-name-table.cc", |
1488 "src/wasm/wasm-function-name-table.h", | 1482 "src/wasm/wasm-function-name-table.h", |
| 1483 "src/wasm/wasm-interpreter.cc", |
| 1484 "src/wasm/wasm-interpreter.h", |
1489 "src/wasm/wasm-js.cc", | 1485 "src/wasm/wasm-js.cc", |
1490 "src/wasm/wasm-js.h", | 1486 "src/wasm/wasm-js.h", |
1491 "src/wasm/wasm-macro-gen.h", | 1487 "src/wasm/wasm-macro-gen.h", |
1492 "src/wasm/wasm-module.cc", | 1488 "src/wasm/wasm-module.cc", |
1493 "src/wasm/wasm-module.h", | 1489 "src/wasm/wasm-module.h", |
1494 "src/wasm/wasm-opcodes.cc", | 1490 "src/wasm/wasm-opcodes.cc", |
1495 "src/wasm/wasm-opcodes.h", | 1491 "src/wasm/wasm-opcodes.h", |
1496 "src/wasm/wasm-result.cc", | 1492 "src/wasm/wasm-result.cc", |
1497 "src/wasm/wasm-result.h", | 1493 "src/wasm/wasm-result.h", |
1498 "src/zone-allocator.h", | 1494 "src/zone-allocator.h", |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1797 "src/s390/frames-s390.cc", | 1793 "src/s390/frames-s390.cc", |
1798 "src/s390/frames-s390.h", | 1794 "src/s390/frames-s390.h", |
1799 "src/s390/interface-descriptors-s390.cc", | 1795 "src/s390/interface-descriptors-s390.cc", |
1800 "src/s390/macro-assembler-s390.cc", | 1796 "src/s390/macro-assembler-s390.cc", |
1801 "src/s390/macro-assembler-s390.h", | 1797 "src/s390/macro-assembler-s390.h", |
1802 "src/s390/simulator-s390.cc", | 1798 "src/s390/simulator-s390.cc", |
1803 "src/s390/simulator-s390.h", | 1799 "src/s390/simulator-s390.h", |
1804 ] | 1800 ] |
1805 } | 1801 } |
1806 | 1802 |
1807 configs = [ | 1803 configs = [ ":internal_config" ] |
1808 ":internal_config", | |
1809 ] | |
1810 | 1804 |
1811 defines = [] | 1805 defines = [] |
1812 deps = [ | 1806 deps = [ |
1813 ":v8_libbase", | 1807 ":v8_libbase", |
1814 ] | 1808 ] |
1815 | 1809 |
1816 if (is_win) { | 1810 if (is_win) { |
1817 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 1811 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
1818 cflags = [ "/wd4267" ] | 1812 cflags = [ "/wd4267" ] |
1819 } | 1813 } |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1892 "src/base/safe_conversions_impl.h", | 1886 "src/base/safe_conversions_impl.h", |
1893 "src/base/safe_math.h", | 1887 "src/base/safe_math.h", |
1894 "src/base/safe_math_impl.h", | 1888 "src/base/safe_math_impl.h", |
1895 "src/base/smart-pointers.h", | 1889 "src/base/smart-pointers.h", |
1896 "src/base/sys-info.cc", | 1890 "src/base/sys-info.cc", |
1897 "src/base/sys-info.h", | 1891 "src/base/sys-info.h", |
1898 "src/base/utils/random-number-generator.cc", | 1892 "src/base/utils/random-number-generator.cc", |
1899 "src/base/utils/random-number-generator.h", | 1893 "src/base/utils/random-number-generator.h", |
1900 ] | 1894 ] |
1901 | 1895 |
1902 configs = [ | 1896 configs = [ ":internal_config_base" ] |
1903 ":internal_config_base", | |
1904 ] | |
1905 | 1897 |
1906 defines = [] | 1898 defines = [] |
1907 | 1899 |
1908 if (is_posix) { | 1900 if (is_posix) { |
1909 sources += [ "src/base/platform/platform-posix.cc" ] | 1901 sources += [ "src/base/platform/platform-posix.cc" ] |
1910 } | 1902 } |
1911 | 1903 |
1912 if (is_linux) { | 1904 if (is_linux) { |
1913 sources += [ "src/base/platform/platform-linux.cc" ] | 1905 sources += [ "src/base/platform/platform-linux.cc" ] |
1914 | 1906 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1954 sources = [ | 1946 sources = [ |
1955 "include/libplatform/libplatform.h", | 1947 "include/libplatform/libplatform.h", |
1956 "src/libplatform/default-platform.cc", | 1948 "src/libplatform/default-platform.cc", |
1957 "src/libplatform/default-platform.h", | 1949 "src/libplatform/default-platform.h", |
1958 "src/libplatform/task-queue.cc", | 1950 "src/libplatform/task-queue.cc", |
1959 "src/libplatform/task-queue.h", | 1951 "src/libplatform/task-queue.h", |
1960 "src/libplatform/worker-thread.cc", | 1952 "src/libplatform/worker-thread.cc", |
1961 "src/libplatform/worker-thread.h", | 1953 "src/libplatform/worker-thread.h", |
1962 ] | 1954 ] |
1963 | 1955 |
1964 configs = [ | 1956 configs = [ ":internal_config_base" ] |
1965 ":internal_config_base", | |
1966 ] | |
1967 | 1957 |
1968 public_configs = [ | 1958 public_configs = [ ":libplatform_config" ] |
1969 ":libplatform_config" | |
1970 ] | |
1971 | 1959 |
1972 deps = [ | 1960 deps = [ |
1973 ":v8_libbase", | 1961 ":v8_libbase", |
1974 ] | 1962 ] |
1975 } | 1963 } |
1976 | 1964 |
1977 v8_source_set("fuzzer_support") { | 1965 v8_source_set("fuzzer_support") { |
1978 visibility = [ ":*" ] # Only targets in this file can depend on this. | 1966 visibility = [ ":*" ] # Only targets in this file can depend on this. |
1979 | 1967 |
1980 sources = [ | 1968 sources = [ |
1981 "test/fuzzer/fuzzer-support.cc", | 1969 "test/fuzzer/fuzzer-support.cc", |
1982 "test/fuzzer/fuzzer-support.h", | 1970 "test/fuzzer/fuzzer-support.h", |
1983 ] | 1971 ] |
1984 | 1972 |
1985 configs = [ | 1973 configs = [ ":internal_config_base" ] |
1986 ":internal_config_base", | |
1987 ] | |
1988 | 1974 |
1989 deps = [ | 1975 deps = [ |
1990 snapshot_target, | 1976 snapshot_target, |
1991 ] | 1977 ] |
1992 | 1978 |
1993 public_deps = [ | 1979 public_deps = [ |
1994 ":v8_libplatform", | 1980 ":v8_libplatform", |
1995 ] | 1981 ] |
1996 } | 1982 } |
1997 | 1983 |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2138 | 2124 |
2139 v8_source_set("json_fuzzer") { | 2125 v8_source_set("json_fuzzer") { |
2140 sources = [ | 2126 sources = [ |
2141 "test/fuzzer/json.cc", | 2127 "test/fuzzer/json.cc", |
2142 ] | 2128 ] |
2143 | 2129 |
2144 deps = [ | 2130 deps = [ |
2145 ":fuzzer_support", | 2131 ":fuzzer_support", |
2146 ] | 2132 ] |
2147 | 2133 |
2148 configs = [ | 2134 configs = [ ":internal_config" ] |
2149 ":internal_config", | |
2150 ] | |
2151 } | 2135 } |
2152 | 2136 |
2153 v8_source_set("parser_fuzzer") { | 2137 v8_source_set("parser_fuzzer") { |
2154 sources = [ | 2138 sources = [ |
2155 "test/fuzzer/parser.cc", | 2139 "test/fuzzer/parser.cc", |
2156 ] | 2140 ] |
2157 | 2141 |
2158 deps = [ | 2142 deps = [ |
2159 ":fuzzer_support", | 2143 ":fuzzer_support", |
2160 ] | 2144 ] |
2161 | 2145 |
2162 configs = [ | 2146 configs = [ ":internal_config" ] |
2163 ":internal_config", | |
2164 ] | |
2165 } | 2147 } |
2166 | 2148 |
2167 v8_source_set("regexp_fuzzer") { | 2149 v8_source_set("regexp_fuzzer") { |
2168 sources = [ | 2150 sources = [ |
2169 "test/fuzzer/regexp.cc", | 2151 "test/fuzzer/regexp.cc", |
2170 ] | 2152 ] |
2171 | 2153 |
2172 deps = [ | 2154 deps = [ |
2173 ":fuzzer_support", | 2155 ":fuzzer_support", |
2174 ] | 2156 ] |
2175 | 2157 |
2176 configs = [ | 2158 configs = [ ":internal_config" ] |
2177 ":internal_config", | |
2178 ] | |
2179 } | 2159 } |
2180 | 2160 |
2181 v8_source_set("wasm_fuzzer") { | 2161 v8_source_set("wasm_fuzzer") { |
2182 sources = [ | 2162 sources = [ |
2183 "test/fuzzer/wasm.cc", | 2163 "test/fuzzer/wasm.cc", |
2184 ] | 2164 ] |
2185 | 2165 |
2186 deps = [ | 2166 deps = [ |
2187 ":fuzzer_support", | 2167 ":fuzzer_support", |
2188 ] | 2168 ] |
2189 | 2169 |
2190 configs = [ | 2170 configs = [ ":internal_config" ] |
2191 ":internal_config", | |
2192 ] | |
2193 } | 2171 } |
2194 | 2172 |
2195 v8_source_set("wasm_asmjs_fuzzer") { | 2173 v8_source_set("wasm_asmjs_fuzzer") { |
2196 sources = [ | 2174 sources = [ |
2197 "test/fuzzer/wasm-asmjs.cc", | 2175 "test/fuzzer/wasm-asmjs.cc", |
2198 ] | 2176 ] |
2199 | 2177 |
2200 deps = [ | 2178 deps = [ |
2201 ":fuzzer_support", | 2179 ":fuzzer_support", |
2202 ] | 2180 ] |
2203 | 2181 |
2204 configs = [ | 2182 configs = [ ":internal_config" ] |
2205 ":internal_config", | |
2206 ] | |
2207 } | 2183 } |
OLD | NEW |