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

Side by Side Diff: BUILD.gn

Issue 2809653003: Introduce mkgrokdump to update tools/v8heapconst.py. (Closed)
Patch Set: address comments 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 | Makefile » ('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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 if (v8_enable_v8_checks == "") { 135 if (v8_enable_v8_checks == "") {
136 v8_enable_v8_checks = is_debug 136 v8_enable_v8_checks = is_debug
137 } 137 }
138 138
139 # Specifies if the target build is a simulator build. Comparing target cpu 139 # Specifies if the target build is a simulator build. Comparing target cpu
140 # with v8 target cpu to not affect simulator builds for making cross-compile 140 # with v8 target cpu to not affect simulator builds for making cross-compile
141 # snapshots. 141 # snapshots.
142 is_target_simulator = target_cpu != v8_target_cpu 142 is_target_simulator = target_cpu != v8_target_cpu
143 143
144 v8_generated_peephole_source = "$target_gen_dir/bytecode-peephole-table.cc" 144 v8_generated_peephole_source = "$target_gen_dir/bytecode-peephole-table.cc"
145 v8_generated_heap_constants = "$target_gen_dir/v8heapconst.py"
Michael Achenbach 2017/04/11 10:56:17 Who's reading this?
Yang 2017/04/12 10:32:38 Removed. I had a run_mkgrokdump target at some poi
145 v8_random_seed = "314159265" 146 v8_random_seed = "314159265"
146 v8_toolset_for_shell = "host" 147 v8_toolset_for_shell = "host"
147 148
148 ############################################################################### 149 ###############################################################################
149 # Configurations 150 # Configurations
150 # 151 #
151 config("internal_config") { 152 config("internal_config") {
152 visibility = [ ":*" ] # Only targets in this file can depend on this. 153 visibility = [ ":*" ] # Only targets in this file can depend on this.
153 154
154 include_dirs = [ "." ] 155 include_dirs = [ "." ]
(...skipping 2504 matching lines...) Expand 10 before | Expand all | Expand 10 after
2659 ":internal_config", 2660 ":internal_config",
2660 ] 2661 ]
2661 2662
2662 deps = [ 2663 deps = [
2663 ":v8_libbase", 2664 ":v8_libbase",
2664 "//build/config/sanitizers:deps", 2665 "//build/config/sanitizers:deps",
2665 "//build/win:default_exe_manifest", 2666 "//build/win:default_exe_manifest",
2666 ] 2667 ]
2667 } 2668 }
2668 2669
2670 v8_executable("mkgrokdump") {
2671 # mkgrokdump is used to create tools/v8heapconst.py.
2672 visibility = [ ":*" ] # Only targets in this file can depend on this.
2673
2674 sources = [
2675 "tools/mkgrokdump.cc",
2676 ]
2677
2678 configs = [
2679 ":external_config",
2680 ":internal_config",
2681 ]
2682
2683 deps = [
2684 ":v8",
2685 ":v8_libbase",
2686 ":v8_libplatform",
2687 "//build/config/sanitizers:deps",
2688 "//build/win:default_exe_manifest",
2689 ]
2690 }
2691
2669 ############################################################################### 2692 ###############################################################################
2670 # Public targets 2693 # Public targets
2671 # 2694 #
2672 2695
2673 want_v8_shell = 2696 want_v8_shell =
2674 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") || 2697 (current_toolchain == host_toolchain && v8_toolset_for_shell == "host") ||
2675 (current_toolchain == v8_snapshot_toolchain && 2698 (current_toolchain == v8_snapshot_toolchain &&
2676 v8_toolset_for_shell == "host") || 2699 v8_toolset_for_shell == "host") ||
2677 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target") 2700 (current_toolchain != host_toolchain && v8_toolset_for_shell == "target")
2678 2701
2679 group("gn_all") { 2702 group("gn_all") {
2680 testonly = true 2703 testonly = true
2681 2704
2682 deps = [ 2705 deps = [
2683 ":d8", 2706 ":d8",
2707 ":mkgrokdump",
2684 ":v8_fuzzers", 2708 ":v8_fuzzers",
2685 ":v8_hello_world", 2709 ":v8_hello_world",
2686 ":v8_parser_shell", 2710 ":v8_parser_shell",
2687 ":v8_sample_process", 2711 ":v8_sample_process",
2688 "test:gn_all", 2712 "test:gn_all",
2689 "tools:gn_all", 2713 "tools:gn_all",
2690 ] 2714 ]
2691 2715
2692 if (want_v8_shell) { 2716 if (want_v8_shell) {
2693 deps += [ ":v8_shell" ] 2717 deps += [ ":v8_shell" ]
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
3246 ] 3270 ]
3247 3271
3248 configs = [ 3272 configs = [
3249 ":external_config", 3273 ":external_config",
3250 ":internal_config_base", 3274 ":internal_config_base",
3251 ] 3275 ]
3252 } 3276 }
3253 3277
3254 v8_fuzzer("wasm_compile_fuzzer") { 3278 v8_fuzzer("wasm_compile_fuzzer") {
3255 } 3279 }
OLDNEW
« no previous file with comments | « no previous file | Makefile » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698