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

Unified Diff: Source/config.gni

Issue 298703005: First pass on blink compiling for GN build (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comments Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/build/scripts/scripts.gni ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/config.gni
diff --git a/Source/config.gni b/Source/config.gni
index e16ff0887293559637b9e3a129174c89f199c446..2e75eae0e04e7f52b95a340eca90eb80e1ae71a2 100644
--- a/Source/config.gni
+++ b/Source/config.gni
@@ -45,3 +45,67 @@ use_webaudio_ffmpeg = !is_mac && !is_android
# panner in WebAudio.
# TODO(brettw) do we need this or can we assume its always on?
use_concatenated_impulse_responses = true
+
+# feature_defines_list ---------------------------------------------------------
+
+feature_defines_list = [
+ "ENABLE_CUSTOM_SCHEME_HANDLER=0",
+ "ENABLE_SVG_FONTS=1",
+]
+
+if (is_debug) {
+ # TODO(GYP) this should also be set when release_valgrind_build is set,
+ # but we don't have that flag in the GN build yet.
+ feature_defines_list += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ]
+}
+
+if (use_concatenated_impulse_responses) {
+ feature_defines_list += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ]
+}
+
+if (is_android) {
+ feature_defines_list += [
+ "ENABLE_FAST_MOBILE_SCROLLING=1",
+ "ENABLE_MEDIA_CAPTURE=1",
+ ]
+} else {
+ feature_defines_list += [
+ "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1",
+ "ENABLE_MEDIA_CAPTURE=0",
+ "ENABLE_WEB_AUDIO=1",
+ ]
+}
+
+if (use_webaudio_ffmpeg) {
+ feature_defines_list += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ]
+}
+
+if (use_openmax_dl_fft) {
+ feature_defines_list += [
+ "WTF_USE_WEBAUDIO_OPENMAX_DL_FFT=1",
+ # Enabling the FFT is enough to enable WebAudio support to
+ # allow most WebAudio features to work on Android.
+ "ENABLE_WEB_AUDIO=1",
+ ]
+}
+
+if (!is_mac) {
+ # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet.
+ feature_defines_list += [ "ENABLE_OPENTYPE_VERTICAL=1" ]
+}
+
+if (use_default_render_theme) {
+ feature_defines_list += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ]
+}
+if (enable_oilpan) {
+ feature_defines_list += [ "ENABLE_OILPAN=1" ]
+}
+
+# feature_defines_string -------------------------------------------------------
+
+# Convert the list to a space-separated string for passing to scripts.
+# This would be the equivalent of passing '<(feature_defines)' in GYP.
+feature_defines_string = exec_script(
+ "build/gn_list_to_space_separated_string.py",
+ feature_defines_list,
+ "trim string")
« no previous file with comments | « Source/build/scripts/scripts.gni ('k') | Source/core/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698