| 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 609 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 620 ] | 620 ] |
| 621 } | 621 } |
| 622 } | 622 } |
| 623 | 623 |
| 624 ############################################################################### | 624 ############################################################################### |
| 625 # Source Sets (aka static libraries) | 625 # Source Sets (aka static libraries) |
| 626 # | 626 # |
| 627 | 627 |
| 628 source_set("v8_maybe_snapshot") { | 628 source_set("v8_maybe_snapshot") { |
| 629 if (v8_use_snapshot && v8_use_external_startup_data) { | 629 if (v8_use_snapshot && v8_use_external_startup_data) { |
| 630 public_deps = [ ":v8_external_snapshot" ] | 630 public_deps = [ |
| 631 ":v8_external_snapshot", |
| 632 ] |
| 631 } else if (v8_use_snapshot) { | 633 } else if (v8_use_snapshot) { |
| 632 public_deps = [ ":v8_snapshot" ] | 634 public_deps = [ |
| 635 ":v8_snapshot", |
| 636 ] |
| 633 } else { | 637 } else { |
| 634 assert(!v8_use_external_startup_data) | 638 assert(!v8_use_external_startup_data) |
| 635 public_deps = [ ":v8_nosnapshot" ] | 639 public_deps = [ |
| 640 ":v8_nosnapshot", |
| 641 ] |
| 636 } | 642 } |
| 637 } | 643 } |
| 638 | 644 |
| 639 v8_source_set("v8_nosnapshot") { | 645 v8_source_set("v8_nosnapshot") { |
| 640 visibility = [ ":*" ] # Only targets in this file can depend on this. | 646 visibility = [ ":*" ] # Only targets in this file can depend on this. |
| 641 | 647 |
| 642 deps = [ | 648 deps = [ |
| 643 ":js2c", | 649 ":js2c", |
| 644 ":js2c_experimental", | 650 ":js2c_experimental", |
| 645 ":js2c_experimental_extras", | 651 ":js2c_experimental_extras", |
| (...skipping 1218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1864 "src/base/atomicops_internals_x86_gcc.cc", | 1870 "src/base/atomicops_internals_x86_gcc.cc", |
| 1865 "src/base/atomicops_internals_x86_gcc.h", | 1871 "src/base/atomicops_internals_x86_gcc.h", |
| 1866 "src/base/atomicops_internals_x86_msvc.h", | 1872 "src/base/atomicops_internals_x86_msvc.h", |
| 1867 "src/base/bits.cc", | 1873 "src/base/bits.cc", |
| 1868 "src/base/bits.h", | 1874 "src/base/bits.h", |
| 1869 "src/base/build_config.h", | 1875 "src/base/build_config.h", |
| 1870 "src/base/cpu.cc", | 1876 "src/base/cpu.cc", |
| 1871 "src/base/cpu.h", | 1877 "src/base/cpu.h", |
| 1872 "src/base/division-by-constant.cc", | 1878 "src/base/division-by-constant.cc", |
| 1873 "src/base/division-by-constant.h", | 1879 "src/base/division-by-constant.h", |
| 1880 "src/base/file-utils.cc", |
| 1881 "src/base/file-utils.h", |
| 1874 "src/base/flags.h", | 1882 "src/base/flags.h", |
| 1875 "src/base/format-macros.h", | 1883 "src/base/format-macros.h", |
| 1876 "src/base/functional.cc", | 1884 "src/base/functional.cc", |
| 1877 "src/base/functional.h", | 1885 "src/base/functional.h", |
| 1878 "src/base/iterator.h", | 1886 "src/base/iterator.h", |
| 1879 "src/base/lazy-instance.h", | 1887 "src/base/lazy-instance.h", |
| 1880 "src/base/logging.cc", | 1888 "src/base/logging.cc", |
| 1881 "src/base/logging.h", | 1889 "src/base/logging.h", |
| 1882 "src/base/macros.h", | 1890 "src/base/macros.h", |
| 1883 "src/base/once.cc", | 1891 "src/base/once.cc", |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2043 "//build/config/sanitizers:deps", | 2051 "//build/config/sanitizers:deps", |
| 2044 "//build/win:default_exe_manifest", | 2052 "//build/win:default_exe_manifest", |
| 2045 ] | 2053 ] |
| 2046 } | 2054 } |
| 2047 } | 2055 } |
| 2048 | 2056 |
| 2049 ############################################################################### | 2057 ############################################################################### |
| 2050 # Public targets | 2058 # Public targets |
| 2051 # | 2059 # |
| 2052 | 2060 |
| 2053 want_v8_shell = ( | 2061 want_v8_shell = |
| 2054 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || | 2062 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || |
| 2055 (current_toolchain == v8_snapshot_toolchain && | 2063 (current_toolchain == v8_snapshot_toolchain && |
| 2056 v8_toolset_for_shell == "host") || | 2064 v8_toolset_for_shell == "host") || |
| 2057 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")) | 2065 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target") |
| 2058 | 2066 |
| 2059 group("gn_all") { | 2067 group("gn_all") { |
| 2060 testonly = true | 2068 testonly = true |
| 2061 | 2069 |
| 2062 deps = [ | 2070 deps = [ |
| 2063 ":d8", | 2071 ":d8", |
| 2064 ":v8_simple_json_fuzzer", | 2072 ":v8_simple_json_fuzzer", |
| 2065 ":v8_simple_parser_fuzzer", | 2073 ":v8_simple_parser_fuzzer", |
| 2066 ":v8_simple_regexp_fuzzer", | 2074 ":v8_simple_regexp_fuzzer", |
| 2075 ":v8_simple_wasm_asmjs_fuzzer", |
| 2067 ":v8_simple_wasm_fuzzer", | 2076 ":v8_simple_wasm_fuzzer", |
| 2068 ":v8_simple_wasm_asmjs_fuzzer", | |
| 2069 "test:gn_all", | 2077 "test:gn_all", |
| 2070 "tools:gn_all", | 2078 "tools:gn_all", |
| 2071 ] | 2079 ] |
| 2072 | 2080 |
| 2073 if (want_v8_shell) { | 2081 if (want_v8_shell) { |
| 2074 deps += [ | 2082 deps += [ ":v8_shell" ] |
| 2075 ":v8_shell", | |
| 2076 ] | |
| 2077 } | 2083 } |
| 2078 | 2084 |
| 2079 if (v8_test_isolation_mode != "noop") { | 2085 if (v8_test_isolation_mode != "noop") { |
| 2080 deps += [ | 2086 deps += [ ":d8_run" ] |
| 2081 ":d8_run", | |
| 2082 ] | |
| 2083 } | 2087 } |
| 2084 } | 2088 } |
| 2085 | 2089 |
| 2086 if (is_component_build) { | 2090 if (is_component_build) { |
| 2087 component("v8") { | 2091 component("v8") { |
| 2088 sources = [ | 2092 sources = [ |
| 2089 "src/v8dll-main.cc", | 2093 "src/v8dll-main.cc", |
| 2090 ] | 2094 ] |
| 2091 | 2095 |
| 2092 public_deps = [ | 2096 public_deps = [ |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2212 "test/fuzzer/json.cc", | 2216 "test/fuzzer/json.cc", |
| 2213 ] | 2217 ] |
| 2214 | 2218 |
| 2215 deps = [ | 2219 deps = [ |
| 2216 ":fuzzer_support", | 2220 ":fuzzer_support", |
| 2217 ] | 2221 ] |
| 2218 | 2222 |
| 2219 configs = [ ":internal_config" ] | 2223 configs = [ ":internal_config" ] |
| 2220 } | 2224 } |
| 2221 | 2225 |
| 2222 v8_fuzzer("json_fuzzer") {} | 2226 v8_fuzzer("json_fuzzer") { |
| 2227 } |
| 2223 | 2228 |
| 2224 v8_source_set("parser_fuzzer") { | 2229 v8_source_set("parser_fuzzer") { |
| 2225 sources = [ | 2230 sources = [ |
| 2226 "test/fuzzer/parser.cc", | 2231 "test/fuzzer/parser.cc", |
| 2227 ] | 2232 ] |
| 2228 | 2233 |
| 2229 deps = [ | 2234 deps = [ |
| 2230 ":fuzzer_support", | 2235 ":fuzzer_support", |
| 2231 ] | 2236 ] |
| 2232 | 2237 |
| 2233 configs = [ ":internal_config" ] | 2238 configs = [ ":internal_config" ] |
| 2234 } | 2239 } |
| 2235 | 2240 |
| 2236 v8_fuzzer("parser_fuzzer") {} | 2241 v8_fuzzer("parser_fuzzer") { |
| 2242 } |
| 2237 | 2243 |
| 2238 v8_source_set("regexp_fuzzer") { | 2244 v8_source_set("regexp_fuzzer") { |
| 2239 sources = [ | 2245 sources = [ |
| 2240 "test/fuzzer/regexp.cc", | 2246 "test/fuzzer/regexp.cc", |
| 2241 ] | 2247 ] |
| 2242 | 2248 |
| 2243 deps = [ | 2249 deps = [ |
| 2244 ":fuzzer_support", | 2250 ":fuzzer_support", |
| 2245 ] | 2251 ] |
| 2246 | 2252 |
| 2247 configs = [ ":internal_config" ] | 2253 configs = [ ":internal_config" ] |
| 2248 } | 2254 } |
| 2249 | 2255 |
| 2250 v8_fuzzer("regexp_fuzzer") {} | 2256 v8_fuzzer("regexp_fuzzer") { |
| 2257 } |
| 2251 | 2258 |
| 2252 v8_source_set("wasm_fuzzer") { | 2259 v8_source_set("wasm_fuzzer") { |
| 2253 sources = [ | 2260 sources = [ |
| 2254 "test/fuzzer/wasm.cc", | 2261 "test/fuzzer/wasm.cc", |
| 2255 ] | 2262 ] |
| 2256 | 2263 |
| 2257 deps = [ | 2264 deps = [ |
| 2258 ":fuzzer_support", | 2265 ":fuzzer_support", |
| 2259 ] | 2266 ] |
| 2260 | 2267 |
| 2261 configs = [ ":internal_config" ] | 2268 configs = [ ":internal_config" ] |
| 2262 } | 2269 } |
| 2263 | 2270 |
| 2264 v8_fuzzer("wasm_fuzzer") {} | 2271 v8_fuzzer("wasm_fuzzer") { |
| 2272 } |
| 2265 | 2273 |
| 2266 v8_source_set("wasm_asmjs_fuzzer") { | 2274 v8_source_set("wasm_asmjs_fuzzer") { |
| 2267 sources = [ | 2275 sources = [ |
| 2268 "test/fuzzer/wasm-asmjs.cc", | 2276 "test/fuzzer/wasm-asmjs.cc", |
| 2269 ] | 2277 ] |
| 2270 | 2278 |
| 2271 deps = [ | 2279 deps = [ |
| 2272 ":fuzzer_support", | 2280 ":fuzzer_support", |
| 2273 ] | 2281 ] |
| 2274 | 2282 |
| 2275 configs = [ ":internal_config" ] | 2283 configs = [ ":internal_config" ] |
| 2276 } | 2284 } |
| 2277 | 2285 |
| 2278 v8_fuzzer("wasm_asmjs_fuzzer") {} | 2286 v8_fuzzer("wasm_asmjs_fuzzer") { |
| 2287 } |
| OLD | NEW |