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

Side by Side Diff: BUILD.gn

Issue 2153753002: [gn] Set correct defaults for some gn args (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | build_overrides/v8.gni » ('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
11 if (is_android) { 11 if (is_android) {
12 import("//build/config/android/rules.gni") 12 import("//build/config/android/rules.gni")
13 } 13 }
14 14
15 import("gni/v8.gni") 15 import("gni/v8.gni")
16 import("gni/isolate.gni") 16 import("gni/isolate.gni")
17 import("//build_overrides/v8.gni") 17 import("//build_overrides/v8.gni")
18 18
19 import("snapshot_toolchain.gni") 19 import("snapshot_toolchain.gni")
20 20
21 declare_args() { 21 declare_args() {
22 # Sets -DVERIFY_HEAP. 22 # Sets -DVERIFY_HEAP.
23 v8_enable_verify_heap = false 23 v8_enable_verify_heap = false
24 24
25 # Enable compiler warnings when using V8_DEPRECATED apis. 25 # Enable compiler warnings when using V8_DEPRECATED apis.
26 v8_deprecation_warnings = false 26 v8_deprecation_warnings = false
27 27
28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. 28 # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
29 v8_imminent_deprecation_warnings = false 29 v8_imminent_deprecation_warnings = ""
30 30
31 # Embeds the given script into the snapshot. 31 # Embeds the given script into the snapshot.
32 v8_embed_script = "" 32 v8_embed_script = ""
33 33
34 # Support for backtrace_symbols on linux. 34 # Support for backtrace_symbols on linux.
35 v8_enable_backtrace = false 35 v8_enable_backtrace = false
36 36
37 # Sets -dENABLE_DISASSEMBLER. 37 # Sets -dENABLE_DISASSEMBLER.
38 v8_enable_disassembler = false 38 v8_enable_disassembler = false
39 39
40 # Sets -dENABLE_GDB_JIT_INTERFACE. 40 # Sets -dENABLE_GDB_JIT_INTERFACE.
41 v8_enable_gdbjit = false 41 v8_enable_gdbjit = ""
42 42
43 # Sets -dENABLE_HANDLE_ZAPPING. 43 # Sets -dENABLE_HANDLE_ZAPPING.
44 v8_enable_handle_zapping = true 44 v8_enable_handle_zapping = true
45 45
46 # Enable ECMAScript Internationalization API. Enabling this feature will 46 # Enable ECMAScript Internationalization API. Enabling this feature will
47 # add a dependency on the ICU library. 47 # add a dependency on the ICU library.
48 v8_enable_i18n_support = true 48 v8_enable_i18n_support = true
49 49
50 # Enable slow dchecks. 50 # Enable slow dchecks.
51 v8_enable_slow_dchecks = false 51 v8_enable_slow_dchecks = false
(...skipping 10 matching lines...) Expand all
62 # tools/gen-postmortem-metadata.py for details. 62 # tools/gen-postmortem-metadata.py for details.
63 v8_postmortem_support = false 63 v8_postmortem_support = false
64 64
65 # Similar to vfp but on MIPS. 65 # Similar to vfp but on MIPS.
66 v8_can_use_fpu_instructions = true 66 v8_can_use_fpu_instructions = true
67 67
68 # Similar to the ARM hard float ABI but on MIPS. 68 # Similar to the ARM hard float ABI but on MIPS.
69 v8_use_mips_abi_hardfloat = true 69 v8_use_mips_abi_hardfloat = true
70 } 70 }
71 71
72 # Set project-specific defaults for some args if not provided in args.gn. The
73 # defaults can be set in the respective build_overrides files.
74 if (v8_imminent_deprecation_warnings == "") {
75 if (defined(v8_imminent_deprecation_warnings_default)) {
Michael Achenbach 2016/07/15 11:33:17 Without guarding with the defined check, we'd need
76 v8_imminent_deprecation_warnings = v8_imminent_deprecation_warnings_default
77 } else {
78 v8_imminent_deprecation_warnings = false
79 }
80 }
81 if (v8_enable_gdbjit == "") {
82 if (defined(v8_enable_gdbjit_default)) {
83 v8_enable_gdbjit = v8_enable_gdbjit_default
84 } else {
85 v8_enable_gdbjit = false
86 }
87 }
88
72 v8_random_seed = "314159265" 89 v8_random_seed = "314159265"
73 v8_toolset_for_shell = "host" 90 v8_toolset_for_shell = "host"
74 91
75 ############################################################################### 92 ###############################################################################
76 # Configurations 93 # Configurations
77 # 94 #
78 config("internal_config") { 95 config("internal_config") {
79 visibility = [ ":*" ] # Only targets in this file can depend on this. 96 visibility = [ ":*" ] # Only targets in this file can depend on this.
80 97
81 include_dirs = [ "." ] 98 include_dirs = [ "." ]
(...skipping 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after
2399 2416
2400 deps = [ 2417 deps = [
2401 ":fuzzer_support", 2418 ":fuzzer_support",
2402 ] 2419 ]
2403 2420
2404 configs = [ ":internal_config" ] 2421 configs = [ ":internal_config" ]
2405 } 2422 }
2406 2423
2407 v8_fuzzer("wasm_asmjs_fuzzer") { 2424 v8_fuzzer("wasm_asmjs_fuzzer") {
2408 } 2425 }
OLDNEW
« no previous file with comments | « no previous file | build_overrides/v8.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698