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

Unified Diff: Source/BUILD.gn

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 | « no previous file | Source/bindings/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/BUILD.gn
diff --git a/Source/BUILD.gn b/Source/BUILD.gn
index 309b316f77e24ec1982f42f527d54a79db1fece6..709062c82bdf8fa1dbba61f53f6d4c6a41f909fd 100644
--- a/Source/BUILD.gn
+++ b/Source/BUILD.gn
@@ -10,58 +10,16 @@ if (is_clang) {
# features ---------------------------------------------------------------------
config("features") {
- defines = [
- "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.
- defines += [ "WTF_USE_DYNAMIC_ANNOTATIONS=1" ]
- }
-
- if (use_concatenated_impulse_responses) {
- defines += [ "WTF_USE_CONCATENATED_IMPULSE_RESPONSES=1" ]
- }
-
- if (is_android) {
- defines += [
- "ENABLE_FAST_MOBILE_SCROLLING=1",
- "ENABLE_MEDIA_CAPTURE=1",
- ]
- } else {
- defines += [
- "ENABLE_INPUT_MULTIPLE_FIELDS_UI=1",
- "ENABLE_MEDIA_CAPTURE=0",
- "ENABLE_WEB_AUDIO=1",
- ]
- }
-
- if (use_webaudio_ffmpeg) {
- defines += [ "WTF_USE_WEBAUDIO_FFMPEG=1" ]
- }
-
- if (use_openmax_dl_fft) {
- defines += [
- "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",
- ]
- }
+ defines = feature_defines_list
+}
- if (!is_mac) {
- # Mac OS X has not implemented support for ENABLE(OPENTYPE_VERTICAL) yet.
- defines += [ "ENABLE_OPENTYPE_VERTICAL=1" ]
- }
+# inside_blink -----------------------------------------------------------------
- if (use_default_render_theme) {
- defines += [ "WTF_USE_DEFAULT_RENDER_THEME=1" ]
- }
- if (enable_oilpan) {
- defines += [ "ENABLE_OILPAN=1" ]
- }
+config("inside_blink") {
+ defines = [
+ "BLINK_IMPLEMENTATION=1",
+ "INSIDE_BLINK",
+ ]
}
# config -----------------------------------------------------------------------
@@ -108,3 +66,11 @@ config("config") {
}
}
}
+
+# stubs ------------------------------------------------------------------------
+
+# These set up include paths for targets that haven't been converted yet. They
+# can be removed when the corresponding targets have been converted to GN.
+config("npapi_stub") {
+ include_dirs = [ "//third_party/npapi", "//third_party/npapi/bindings" ]
+}
« no previous file with comments | « no previous file | Source/bindings/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698