Chromium Code Reviews

Side by Side Diff: third_party/WebKit/Source/config.gni

Issue 1557363002: Remove the WEB_AUDIO compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 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 } 10 }
(...skipping 46 matching lines...)
57 } 57 }
58 58
59 if (!is_android || use_aura) { 59 if (!is_android || use_aura) {
60 feature_defines_list += [ "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1" ] 60 feature_defines_list += [ "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1" ]
61 } 61 }
62 62
63 if (is_android) { 63 if (is_android) {
64 feature_defines_list += [ "WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION=1" ] 64 feature_defines_list += [ "WTF_USE_LOW_QUALITY_IMAGE_INTERPOLATION=1" ]
65 } else { 65 } else {
66 feature_defines_list += [ 66 feature_defines_list += [
67 "ENABLE_WEB_AUDIO=1",
68 "WTF_USE_ICCJPEG=1", 67 "WTF_USE_ICCJPEG=1",
69 "WTF_USE_QCMSLIB=1", 68 "WTF_USE_QCMSLIB=1",
70 ] 69 ]
71 } 70 }
72 71
73 if (is_mac) { 72 if (is_mac) {
74 feature_defines_list += [ "WTF_USE_NEW_THEME=1" ] 73 feature_defines_list += [ "WTF_USE_NEW_THEME=1" ]
75 } 74 }
76 75
77 if (use_webaudio_ffmpeg) { 76 if (use_webaudio_ffmpeg) {
78 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ] 77 feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ]
79 } 78 }
80 79
81 if (use_openmax_dl_fft) { 80 if (use_openmax_dl_fft) {
82 feature_defines_list += [ 81 feature_defines_list += [ "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1" ]
83 "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1",
84
85 # Enabling the FFT is enough to enable WebAudio support to
86 # allow most WebAudio features to work on Android.
87 "ENABLE_WEB_AUDIO=1",
88 ]
89 } 82 }
90 83
91 if (use_default_render_theme) { 84 if (use_default_render_theme) {
92 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ] 85 feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ]
93 } 86 }
94 if (enable_oilpan) { 87 if (enable_oilpan) {
95 feature_defines_list += [ "ENABLE_OILPAN=1" ] 88 feature_defines_list += [ "ENABLE_OILPAN=1" ]
96 } 89 }
97 if (blink_asserts_off_in_release && !is_debug) { 90 if (blink_asserts_off_in_release && !is_debug) {
98 feature_defines_list += [ "ENABLE_ASSERT=0" ] 91 feature_defines_list += [ "ENABLE_ASSERT=0" ]
99 } 92 }
100 93
101 # feature_defines_string ------------------------------------------------------- 94 # feature_defines_string -------------------------------------------------------
102 95
103 # Convert the list to a space-separated string for passing to scripts. 96 # Convert the list to a space-separated string for passing to scripts.
104 # This would be the equivalent of passing '<(feature_defines)' in GYP. 97 # This would be the equivalent of passing '<(feature_defines)' in GYP.
105 feature_defines_string = 98 feature_defines_string =
106 exec_script("build/gn_list_to_space_separated_string.py", 99 exec_script("build/gn_list_to_space_separated_string.py",
107 feature_defines_list, 100 feature_defines_list,
108 "trim string") 101 "trim string")
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/features.gypi ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.h » ('j') | no next file with comments »

Powered by Google App Engine