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

Side by Side Diff: BUILD.gn

Issue 2619213002: [build] Introduce an embedder version string (Closed)
Patch Set: rebased Created 3 years, 11 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 | gypfiles/features.gypi » ('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 11 matching lines...) Expand all
22 22
23 # Sets -DVERIFY_HEAP. 23 # Sets -DVERIFY_HEAP.
24 v8_enable_verify_heap = "" 24 v8_enable_verify_heap = ""
25 25
26 # Sets -DVERIFY_PREDICTABLE 26 # Sets -DVERIFY_PREDICTABLE
27 v8_enable_verify_predictable = false 27 v8_enable_verify_predictable = false
28 28
29 # Enable compiler warnings when using V8_DEPRECATED apis. 29 # Enable compiler warnings when using V8_DEPRECATED apis.
30 v8_deprecation_warnings = false 30 v8_deprecation_warnings = false
31 31
32 # Allow the embedder to add a custom suffix to the version string.
33 v8_embedder_string = ""
34
32 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. 35 # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
33 v8_imminent_deprecation_warnings = "" 36 v8_imminent_deprecation_warnings = ""
34 37
35 # Embeds the given script into the snapshot. 38 # Embeds the given script into the snapshot.
36 v8_embed_script = "" 39 v8_embed_script = ""
37 40
38 # Sets -dENABLE_DISASSEMBLER. 41 # Sets -dENABLE_DISASSEMBLER.
39 v8_enable_disassembler = "" 42 v8_enable_disassembler = ""
40 43
41 # Sets -dENABLE_GDB_JIT_INTERFACE. 44 # Sets -dENABLE_GDB_JIT_INTERFACE.
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 if (v8_use_external_startup_data) { 185 if (v8_use_external_startup_data) {
183 defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ] 186 defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
184 } 187 }
185 } 188 }
186 189
187 config("features") { 190 config("features") {
188 visibility = [ ":*" ] # Only targets in this file can depend on this. 191 visibility = [ ":*" ] # Only targets in this file can depend on this.
189 192
190 defines = [] 193 defines = []
191 194
195 if (v8_embedder_string != "") {
196 defines += [ "V8_EMBEDDER_STRING=\"$v8_embedder_string\"" ]
197 }
198
192 if (v8_enable_disassembler) { 199 if (v8_enable_disassembler) {
193 defines += [ "ENABLE_DISASSEMBLER" ] 200 defines += [ "ENABLE_DISASSEMBLER" ]
194 } 201 }
195 if (v8_enable_gdbjit) { 202 if (v8_enable_gdbjit) {
196 defines += [ "ENABLE_GDB_JIT_INTERFACE" ] 203 defines += [ "ENABLE_GDB_JIT_INTERFACE" ]
197 } 204 }
198 if (v8_enable_object_print) { 205 if (v8_enable_object_print) {
199 defines += [ "OBJECT_PRINT" ] 206 defines += [ "OBJECT_PRINT" ]
200 } 207 }
201 if (v8_enable_verify_heap) { 208 if (v8_enable_verify_heap) {
(...skipping 2860 matching lines...) Expand 10 before | Expand all | Expand 10 after
3062 ] 3069 ]
3063 3070
3064 configs = [ 3071 configs = [
3065 ":external_config", 3072 ":external_config",
3066 ":internal_config_base", 3073 ":internal_config_base",
3067 ] 3074 ]
3068 } 3075 }
3069 3076
3070 v8_fuzzer("wasm_data_section_fuzzer") { 3077 v8_fuzzer("wasm_data_section_fuzzer") {
3071 } 3078 }
OLDNEW
« no previous file with comments | « no previous file | gypfiles/features.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698