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 import("//third_party/WebKit/public/features.gni") | 6 import("//third_party/WebKit/public/features.gni") |
7 | 7 |
8 if (is_android) { | 8 if (is_android) { |
9 import("//build/config/android/config.gni") | 9 import("//build/config/android/config.gni") |
10 } else { | 10 } else { |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1", | 78 "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1", |
79 # Enabling the FFT is enough to enable WebAudio support to | 79 # Enabling the FFT is enough to enable WebAudio support to |
80 # allow most WebAudio features to work on Android. | 80 # allow most WebAudio features to work on Android. |
81 "ENABLE_WEB_AUDIO=1", | 81 "ENABLE_WEB_AUDIO=1", |
82 ] | 82 ] |
83 } | 83 } |
84 | 84 |
85 if (use_default_render_theme) { | 85 if (use_default_render_theme) { |
86 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] | 86 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] |
87 } | 87 } |
88 if (enable_oilpan) { | |
89 feature_defines_list += [ "ENABLE_OILPAN=1" ] | |
90 } | |
91 if (blink_asserts_always_on) { | 88 if (blink_asserts_always_on) { |
92 feature_defines_list += [ "ENABLE_ASSERT=1" ] | 89 feature_defines_list += [ "ENABLE_ASSERT=1" ] |
93 } | 90 } |
94 | 91 |
95 # feature_defines_string ------------------------------------------------------- | 92 # feature_defines_string ------------------------------------------------------- |
96 | 93 |
97 # Convert the list to a space-separated string for passing to scripts. | 94 # Convert the list to a space-separated string for passing to scripts. |
98 # This would be the equivalent of passing '<(feature_defines)' in GYP. | 95 # This would be the equivalent of passing '<(feature_defines)' in GYP. |
99 feature_defines_string = exec_script( | 96 feature_defines_string = exec_script( |
100 "build/gn_list_to_space_separated_string.py", | 97 "build/gn_list_to_space_separated_string.py", |
101 feature_defines_list, | 98 feature_defines_list, |
102 "trim string") | 99 "trim string") |
OLD | NEW |