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

Side by Side Diff: BUILD.gn

Issue 2619213002: [build] Introduce an embedder version string (Closed)
Patch Set: 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') | src/version.cc » ('J')
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 = false 24 v8_enable_verify_heap = false
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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 if (v8_use_external_startup_data) { 170 if (v8_use_external_startup_data) {
168 defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ] 171 defines = [ "V8_USE_EXTERNAL_STARTUP_DATA" ]
169 } 172 }
170 } 173 }
171 174
172 config("features") { 175 config("features") {
173 visibility = [ ":*" ] # Only targets in this file can depend on this. 176 visibility = [ ":*" ] # Only targets in this file can depend on this.
174 177
175 defines = [] 178 defines = []
176 179
180 if (v8_embedder_string != "") {
181 defines += [ "V8_EMBEDDER_STRING=\"$v8_embedder_string\"" ]
182 }
183
177 if (v8_enable_disassembler) { 184 if (v8_enable_disassembler) {
178 defines += [ "ENABLE_DISASSEMBLER" ] 185 defines += [ "ENABLE_DISASSEMBLER" ]
179 } 186 }
180 if (v8_enable_gdbjit) { 187 if (v8_enable_gdbjit) {
181 defines += [ "ENABLE_GDB_JIT_INTERFACE" ] 188 defines += [ "ENABLE_GDB_JIT_INTERFACE" ]
182 } 189 }
183 if (v8_object_print) { 190 if (v8_object_print) {
184 defines += [ "OBJECT_PRINT" ] 191 defines += [ "OBJECT_PRINT" ]
185 } 192 }
186 if (v8_enable_verify_heap) { 193 if (v8_enable_verify_heap) {
(...skipping 2825 matching lines...) Expand 10 before | Expand all | Expand 10 after
3012 ] 3019 ]
3013 3020
3014 configs = [ 3021 configs = [
3015 ":external_config", 3022 ":external_config",
3016 ":internal_config_base", 3023 ":internal_config_base",
3017 ] 3024 ]
3018 } 3025 }
3019 3026
3020 v8_fuzzer("wasm_data_section_fuzzer") { 3027 v8_fuzzer("wasm_data_section_fuzzer") {
3021 } 3028 }
OLDNEW
« no previous file with comments | « no previous file | gypfiles/features.gypi » ('j') | src/version.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698