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

Side by Side Diff: BUILD.gn

Issue 2654663003: Conditionally convert V8 build overrides to declare_args. (Closed)
Patch Set: Fix 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 | 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
(...skipping 12 matching lines...) Expand all
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 # Enable compiler warnings when using V8_DEPRECATE_SOON apis. 32 # Enable compiler warnings when using V8_DEPRECATE_SOON apis.
33 v8_imminent_deprecation_warnings = "" 33 #
34 # TODO(brettw) http://crbug.com/684096 Remove the define condition and the
35 # v8_imminent_deprecation_warnings_default variable when the build_override
36 # conversion is complete. This value should just default to true.
37 if (defined(v8_imminent_deprecation_warnings_default)) {
38 v8_imminent_deprecation_warnings = v8_imminent_deprecation_warnings_default
39 } else {
40 v8_imminent_deprecation_warnings = false
41 }
34 42
35 # Embeds the given script into the snapshot. 43 # Embeds the given script into the snapshot.
36 v8_embed_script = "" 44 v8_embed_script = ""
37 45
38 # Sets -dENABLE_DISASSEMBLER. 46 # Sets -dENABLE_DISASSEMBLER.
39 v8_enable_disassembler = "" 47 v8_enable_disassembler = ""
40 48
41 # Sets -dENABLE_GDB_JIT_INTERFACE. 49 # Sets -dENABLE_GDB_JIT_INTERFACE.
42 v8_enable_gdbjit = "" 50 v8_enable_gdbjit = ""
43 51
(...skipping 25 matching lines...) Expand all
69 v8_no_inline = false 77 v8_no_inline = false
70 78
71 # Override OS page size when generating snapshot 79 # Override OS page size when generating snapshot
72 v8_os_page_size = "0" 80 v8_os_page_size = "0"
73 81
74 # Similar to vfp but on MIPS. 82 # Similar to vfp but on MIPS.
75 v8_can_use_fpu_instructions = true 83 v8_can_use_fpu_instructions = true
76 84
77 # Similar to the ARM hard float ABI but on MIPS. 85 # Similar to the ARM hard float ABI but on MIPS.
78 v8_use_mips_abi_hardfloat = true 86 v8_use_mips_abi_hardfloat = true
79 }
80 87
81 # Set project-specific defaults for some args if not provided in args.gn. The 88 # List of extra files to snapshot. They will be snapshotted in order so
82 # defaults can be set in the respective build_overrides files. 89 # if files export symbols used by later files, they should go first.
83 if (v8_imminent_deprecation_warnings == "") { 90 #
84 if (defined(v8_imminent_deprecation_warnings_default)) { 91 # This default is used by cctests. Projects using V8 will want to override.
85 v8_imminent_deprecation_warnings = v8_imminent_deprecation_warnings_default 92 #
86 } else { 93 # TODO(brettw) http://crbug.com/684096 Remove the define condition when the
87 v8_imminent_deprecation_warnings = false 94 # build_override conversion is complete.
95 if (!defined(v8_extra_library_files)) {
96 v8_extra_library_files = [
Michael Achenbach 2017/01/24 20:16:27 So, the v8_extra_library_files and the var below a
brettw 2017/01/24 20:35:52 Correct, this isn't always the greatest thing (as
97 "//test/cctest/test-extra.js"
98 ]
88 } 99 }
89 } 100
90 if (v8_enable_gdbjit == "") { 101 # Like v8_extra_library_files but for experimental features.
102 #
103 # This default is used by cctests. Projects using V8 will want to override.
104 #
105 # TODO(brettw) http://crbug.com/684096 Remove the define condition when the
106 # build_override conversion is complete.
107 if (!defined(v8_experimental_extra_library_files)) {
108 v8_experimental_extra_library_files = [
109 "//test/cctest/test-experimental-extra.js",
110 ]
111 }
112
91 if (defined(v8_enable_gdbjit_default)) { 113 if (defined(v8_enable_gdbjit_default)) {
92 v8_enable_gdbjit = v8_enable_gdbjit_default 114 v8_enable_gdbjit = v8_enable_gdbjit_default
93 } else { 115 } else {
94 v8_enable_gdbjit = false 116 v8_enable_gdbjit = ((v8_current_cpu == "x86" || v8_current_cpu == "x64" ||
Michael Achenbach 2017/01/24 20:16:28 I think this is different now. We want this to be
brettw 2017/01/24 20:35:52 This is what I meant to address in https://coderev
117 v8_current_cpu == "x87") && (is_linux || is_mac)) ||
118 (v8_current_cpu == "ppc64" && is_linux)
95 } 119 }
96 } 120 }
97 121
98 # Derived defaults. 122 # Derived defaults.
99 if (v8_enable_verify_heap == "") { 123 if (v8_enable_verify_heap == "") {
100 v8_enable_verify_heap = is_debug 124 v8_enable_verify_heap = is_debug
101 } 125 }
102 if (v8_enable_object_print == "") { 126 if (v8_enable_object_print == "") {
103 v8_enable_object_print = is_debug 127 v8_enable_object_print = is_debug
104 } 128 }
(...skipping 2957 matching lines...) Expand 10 before | Expand all | Expand 10 after
3062 ] 3086 ]
3063 3087
3064 configs = [ 3088 configs = [
3065 ":external_config", 3089 ":external_config",
3066 ":internal_config_base", 3090 ":internal_config_base",
3067 ] 3091 ]
3068 } 3092 }
3069 3093
3070 v8_fuzzer("wasm_data_section_fuzzer") { 3094 v8_fuzzer("wasm_data_section_fuzzer") {
3071 } 3095 }
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