| OLD | NEW |
| 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 Loading... |
| 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") |
| OLD | NEW |