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 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 | 610 |
611 if (v8_use_external_startup_data) { | 611 if (v8_use_external_startup_data) { |
612 outputs += [ "$root_out_dir/snapshot_blob.bin" ] | 612 outputs += [ "$root_out_dir/snapshot_blob.bin" ] |
613 args += [ | 613 args += [ |
614 "--startup_blob", | 614 "--startup_blob", |
615 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), | 615 rebase_path("$root_out_dir/snapshot_blob.bin", root_build_dir), |
616 ] | 616 ] |
617 } | 617 } |
618 } | 618 } |
619 | 619 |
| 620 action("v8_dump_build_config") { |
| 621 script = "tools/testrunner/utils/dump_build_config.py" |
| 622 outputs = [ "$root_out_dir/v8_build_config.json" ] |
| 623 args = [ |
| 624 rebase_path("$root_out_dir/v8_build_config.json", root_build_dir), |
| 625 "dcheck_always_on=$dcheck_always_on", |
| 626 "is_asan=$is_asan", |
| 627 "is_cfi=$is_cfi", |
| 628 "is_component_build=$is_component_build", |
| 629 "is_debug=$is_debug", |
| 630 "is_msan=$is_msan", |
| 631 "is_tsan=$is_tsan", |
| 632 "target_cpu=\"$target_cpu\"", |
| 633 "v8_enable_i18n_support=$v8_enable_i18n_support", |
| 634 "v8_target_cpu=\"$v8_target_cpu\"", |
| 635 "v8_use_snapshot=$v8_use_snapshot", |
| 636 ] |
| 637 } |
| 638 |
| 639 |
620 ############################################################################### | 640 ############################################################################### |
621 # Source Sets (aka static libraries) | 641 # Source Sets (aka static libraries) |
622 # | 642 # |
623 | 643 |
624 source_set("v8_maybe_snapshot") { | 644 source_set("v8_maybe_snapshot") { |
625 if (v8_use_snapshot && v8_use_external_startup_data) { | 645 if (v8_use_snapshot && v8_use_external_startup_data) { |
626 public_deps = [ | 646 public_deps = [ |
627 ":v8_external_snapshot", | 647 ":v8_external_snapshot", |
628 ] | 648 ] |
629 } else if (v8_use_snapshot) { | 649 } else if (v8_use_snapshot) { |
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2091 deps += [ ":d8_run" ] | 2111 deps += [ ":d8_run" ] |
2092 } | 2112 } |
2093 } | 2113 } |
2094 | 2114 |
2095 if (is_component_build) { | 2115 if (is_component_build) { |
2096 v8_component("v8") { | 2116 v8_component("v8") { |
2097 sources = [ | 2117 sources = [ |
2098 "src/v8dll-main.cc", | 2118 "src/v8dll-main.cc", |
2099 ] | 2119 ] |
2100 | 2120 |
| 2121 deps = [ ":v8_dump_build_config" ] |
| 2122 |
2101 public_deps = [ | 2123 public_deps = [ |
2102 ":v8_base", | 2124 ":v8_base", |
2103 ":v8_maybe_snapshot", | 2125 ":v8_maybe_snapshot", |
2104 ] | 2126 ] |
2105 | 2127 |
2106 configs = [ ":internal_config" ] | 2128 configs = [ ":internal_config" ] |
2107 | 2129 |
2108 public_configs = [ ":external_config" ] | 2130 public_configs = [ ":external_config" ] |
2109 } | 2131 } |
2110 } else { | 2132 } else { |
2111 group("v8") { | 2133 group("v8") { |
| 2134 deps = [ ":v8_dump_build_config" ] |
| 2135 |
2112 public_deps = [ | 2136 public_deps = [ |
2113 ":v8_base", | 2137 ":v8_base", |
2114 ":v8_maybe_snapshot", | 2138 ":v8_maybe_snapshot", |
2115 ] | 2139 ] |
2116 public_configs = [ ":external_config" ] | 2140 public_configs = [ ":external_config" ] |
2117 } | 2141 } |
2118 } | 2142 } |
2119 | 2143 |
2120 v8_executable("d8") { | 2144 v8_executable("d8") { |
2121 sources = [ | 2145 sources = [ |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2347 | 2371 |
2348 deps = [ | 2372 deps = [ |
2349 ":fuzzer_support", | 2373 ":fuzzer_support", |
2350 ] | 2374 ] |
2351 | 2375 |
2352 configs = [ ":internal_config" ] | 2376 configs = [ ":internal_config" ] |
2353 } | 2377 } |
2354 | 2378 |
2355 v8_fuzzer("wasm_asmjs_fuzzer") { | 2379 v8_fuzzer("wasm_asmjs_fuzzer") { |
2356 } | 2380 } |
OLD | NEW |