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

Side by Side Diff: Source/config.gni

Issue 397733004: Allow assertions to be enabled in Blink Release builds. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/build/features.gypi ('k') | Source/core/accessibility/AXNodeObject.h » ('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/ui.gni") 5 import("//build/config/ui.gni")
6 6
7 if (is_android) { 7 if (is_android) {
8 import("//build/config/android/config.gni") 8 import("//build/config/android/config.gni")
9 } else { 9 } else {
10 # TODO(brettw) remove this once && early-out is checked in. 10 # TODO(brettw) remove this once && early-out is checked in.
11 is_android_webview_build = false 11 is_android_webview_build = false
12 } 12 }
13 if (cpu_arch == "arm") { 13 if (cpu_arch == "arm") {
14 import("//build/config/arm.gni") 14 import("//build/config/arm.gni")
15 } else { 15 } else {
16 # TODO(brettw) remove this once && early-out is checked in. 16 # TODO(brettw) remove this once && early-out is checked in.
17 arm_version = 0 17 arm_version = 0
18 } 18 }
19 19
20 declare_args() { 20 declare_args() {
21 # Enables the Oilpan garbage-collection infrastructure. 21 # Enables the Oilpan garbage-collection infrastructure.
22 enable_oilpan = false 22 enable_oilpan = false
23 23
24 # Set to true to enable the clang plugin that checks the usage of the Blink 24 # Set to true to enable the clang plugin that checks the usage of the Blink
25 # garbage-collection infrastructure during compilation. 25 # garbage-collection infrastructure during compilation.
26 blink_gc_plugin = false 26 blink_gc_plugin = false
27 blink_gc_plugin_dump_graph = false 27 blink_gc_plugin_dump_graph = false
28
29 blink_asserts_always_on = false
28 } 30 }
29 31
30 use_default_render_theme = use_aura 32 use_default_render_theme = use_aura
31 33
32 # Whether Android ARM or x86 build uses OpenMAX DL FFT. Currently only 34 # Whether Android ARM or x86 build uses OpenMAX DL FFT. Currently only
33 # supported on Android ARMv7+, ia32 or x64 without webview. When enabled, this 35 # supported on Android ARMv7+, ia32 or x64 without webview. When enabled, this
34 # will also enable WebAudio support on Android ARM, ia32 and x64. Default is 36 # will also enable WebAudio support on Android ARM, ia32 and x64. Default is
35 # enabled. Whether WebAudio is actually available depends on runtime settings 37 # enabled. Whether WebAudio is actually available depends on runtime settings
36 # and flags. 38 # and flags.
37 use_openmax_dl_fft = is_android && !is_android_webview_build && 39 use_openmax_dl_fft = is_android && !is_android_webview_build &&
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet. 89 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet.
88 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ] 90 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ]
89 } 91 }
90 92
91 if (use_default_render_theme) { 93 if (use_default_render_theme) {
92 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] 94 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ]
93 } 95 }
94 if (enable_oilpan) { 96 if (enable_oilpan) {
95 feature_defines_list += [ "ENABLE_OILPAN=1" ] 97 feature_defines_list += [ "ENABLE_OILPAN=1" ]
96 } 98 }
99 if (blink_asserts_always_on) {
100 feature_defines_list += [ "ENABLE_ASSERT=1" ]
101 }
97 102
98 # feature_defines_string ------------------------------------------------------- 103 # feature_defines_string -------------------------------------------------------
99 104
100 # Convert the list to a space-separated string for passing to scripts. 105 # Convert the list to a space-separated string for passing to scripts.
101 # This would be the equivalent of passing '<(feature_defines)' in GYP. 106 # This would be the equivalent of passing '<(feature_defines)' in GYP.
102 feature_defines_string = exec_script( 107 feature_defines_string = exec_script(
103 "build/gn_list_to_space_separated_string.py", 108 "build/gn_list_to_space_separated_string.py",
104 feature_defines_list, 109 feature_defines_list,
105 "trim string") 110 "trim string")
OLDNEW
« no previous file with comments | « Source/build/features.gypi ('k') | Source/core/accessibility/AXNodeObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698