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

Side by Side Diff: Source/config.gni

Issue 604753003: Removing #ifdefs for WEB_AUDIO compile time flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
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.
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ] 60 feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ]
61 } 61 }
62 62
63 if (use_concatenated_impulse_responses) { 63 if (use_concatenated_impulse_responses) {
64 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ] 64 feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ]
65 } 65 }
66 66
67 if (!is_android) { 67 if (!is_android) {
68 feature_defines_list += [ 68 feature_defines_list += [
69 "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1", 69 "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1",
70 "ENABLE_WEB_AUDIO=1",
71 ] 70 ]
72 } 71 }
73 72
74 if (use_webaudio_ffmpeg) { 73 if (use_webaudio_ffmpeg) {
75 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ] 74 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ]
76 } 75 }
77 76
78 if (use_openmax_dl_fft) { 77 if (use_openmax_dl_fft) {
79 feature_defines_list += [ 78 feature_defines_list += [
80 "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1", 79 "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1",
81 # Enabling the FFT is enough to enable WebAudio support to 80 # Enabling the FFT is enough to enable WebAudio support to
82 # allow most WebAudio features to work on Android. 81 # allow most WebAudio features to work on Android.
83 "ENABLE_WEB_AUDIO=1",
84 ] 82 ]
85 } 83 }
86 84
87 if (!is_mac) { 85 if (!is_mac) {
88 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet. 86 # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet.
89 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ] 87 feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ]
90 } 88 }
91 89
92 if (use_default_render_theme) { 90 if (use_default_render_theme) {
93 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] 91 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ]
94 } 92 }
95 if (enable_oilpan) { 93 if (enable_oilpan) {
96 feature_defines_list += [ "ENABLE_OILPAN=1" ] 94 feature_defines_list += [ "ENABLE_OILPAN=1" ]
97 } 95 }
98 if (blink_asserts_always_on) { 96 if (blink_asserts_always_on) {
99 feature_defines_list += [ "ENABLE_ASSERT=1" ] 97 feature_defines_list += [ "ENABLE_ASSERT=1" ]
100 } 98 }
101 99
102 # feature_defines_string ------------------------------------------------------- 100 # feature_defines_string -------------------------------------------------------
103 101
104 # Convert the list to a space-separated string for passing to scripts. 102 # Convert the list to a space-separated string for passing to scripts.
105 # This would be the equivalent of passing '<(feature_defines)' in GYP. 103 # This would be the equivalent of passing '<(feature_defines)' in GYP.
106 feature_defines_string = exec_script( 104 feature_defines_string = exec_script(
107 "build/gn_list_to_space_separated_string.py", 105 "build/gn_list_to_space_separated_string.py",
108 feature_defines_list, 106 feature_defines_list,
109 "trim string") 107 "trim string")
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698