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

Side by Side Diff: gni/v8.gni

Issue 2405303002: [inspector] expose js_protocol.json file location in BUILD file (Closed)
Patch Set: Created 4 years, 2 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 the V8 project authors. All rights reserved. 1 # Copyright 2016 the V8 project 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/sanitizers/sanitizers.gni") 5 import("//build/config/sanitizers/sanitizers.gni")
6 import("//build/config/v8_target_cpu.gni") 6 import("//build/config/v8_target_cpu.gni")
7 7
8 declare_args() { 8 declare_args() {
9 # Indicate if valgrind was fetched as a custom deps to make it available on 9 # Indicate if valgrind was fetched as a custom deps to make it available on
10 # swarming. 10 # swarming.
(...skipping 20 matching lines...) Expand all
31 if (v8_use_external_startup_data == "") { 31 if (v8_use_external_startup_data == "") {
32 # If not specified as a gn arg, use external startup data by default if 32 # If not specified as a gn arg, use external startup data by default if
33 # a snapshot is used and if we're not on ios. 33 # a snapshot is used and if we're not on ios.
34 v8_use_external_startup_data = v8_use_snapshot && !is_ios 34 v8_use_external_startup_data = v8_use_snapshot && !is_ios
35 } 35 }
36 36
37 if (v8_enable_backtrace == "") { 37 if (v8_enable_backtrace == "") {
38 v8_enable_backtrace = is_debug && !v8_optimized_debug 38 v8_enable_backtrace = is_debug && !v8_optimized_debug
39 } 39 }
40 40
41 ###############################################################################
42 # Templates
43 #
44
45 # Points to // in v8 stand-alone or to //v8/ in chromium. We need absolute 41 # Points to // in v8 stand-alone or to //v8/ in chromium. We need absolute
46 # paths for all configs in templates as they are shared in different 42 # paths for all configs in templates as they are shared in different
47 # subdirectories. 43 # subdirectories.
48 v8_path_prefix = get_path_info("../", "abspath") 44 v8_path_prefix = get_path_info("../", "abspath")
49 45
46 v8_inspector_js_protocol = v8_path_prefix + "/src/inspector/js_protocol.json"
47
48 ###############################################################################
49 # Templates
50 #
51
50 # Common configs to remove or add in all v8 targets. 52 # Common configs to remove or add in all v8 targets.
51 v8_remove_configs = [ "//build/config/compiler:chromium_code" ] 53 v8_remove_configs = [ "//build/config/compiler:chromium_code" ]
52 v8_add_configs = [ 54 v8_add_configs = [
53 "//build/config/compiler:no_chromium_code", 55 "//build/config/compiler:no_chromium_code",
54 v8_path_prefix + ":features", 56 v8_path_prefix + ":features",
55 v8_path_prefix + ":toolchain", 57 v8_path_prefix + ":toolchain",
56 ] 58 ]
57 59
58 if (is_debug && !v8_optimized_debug) { 60 if (is_debug && !v8_optimized_debug) {
59 v8_remove_configs += [ "//build/config/compiler:default_optimization" ] 61 v8_remove_configs += [ "//build/config/compiler:default_optimization" ]
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 101 }
100 102
101 template("v8_component") { 103 template("v8_component") {
102 component(target_name) { 104 component(target_name) {
103 forward_variables_from(invoker, "*", [ "configs" ]) 105 forward_variables_from(invoker, "*", [ "configs" ])
104 configs += invoker.configs 106 configs += invoker.configs
105 configs -= v8_remove_configs 107 configs -= v8_remove_configs
106 configs += v8_add_configs 108 configs += v8_add_configs
107 } 109 }
108 } 110 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698