diff options
author | brettw@chromium.org <brettw@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-04-23 06:07:31 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2014-04-23 06:07:31 +0000 |
commit | dfc9ae6d2f6ea1837f1bb9f62d9bed4bd9d14d0a (patch) | |
tree | b522ec6a51578820a15a8aa778ae61952959149b /third_party/WebKit/Source/config.gni | |
parent | 79cd6812a656a9b9a662b6017c49d71e698e3b03 (diff) | |
download | chromium_src-dfc9ae6d2f6ea1837f1bb9f62d9bed4bd9d14d0a.zip chromium_src-dfc9ae6d2f6ea1837f1bb9f62d9bed4bd9d14d0a.tar.gz chromium_src-dfc9ae6d2f6ea1837f1bb9f62d9bed4bd9d14d0a.tar.bz2 |
Add core Blink build configuration and WTF target to GN build.
I merged Source/config.gypi and Source/build/features.gypi into one file Source/config.gni. It wasn't clear what benefit having these separate is, and why features is in build but config is in the root dir.
Removed some unneeded warning disabling from GYP build (unknown pragmas). Remove obsolete comment about goma and clang plugins from GYP build.
I set up most of the feature defines required by WTF, with the exceptions noted with TODO(GYP).
I moved WTF_USE_DYNAMIC_ANNOTATIONS into the blink build file rather than the main build features config. This is not used outside the blink build and the reasons for it being in common.gypi don't apply to GN.
This patch will require a Chrome-side change to actually hook it up. Until that hookup happens, this code is entirely unused.
BUG=
Review URL: https://codereview.chromium.org/244753005
git-svn-id: svn://svn.chromium.org/blink/trunk@172321 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/Source/config.gni')
-rw-r--r-- | third_party/WebKit/Source/config.gni | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/third_party/WebKit/Source/config.gni b/third_party/WebKit/Source/config.gni new file mode 100644 index 0000000..1ef9912 --- /dev/null +++ b/third_party/WebKit/Source/config.gni @@ -0,0 +1,45 @@ +# Copyright 2014 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. + +import("//build/config/ui.gni") + +if (is_android) { + import("//build/config/android/config.gni") +} else { + # TODO(brettw) remove this once && early-out is checked in. + is_android_webview_build = false +} +if (cpu_arch == "arm") { + import("//build/config/arm.gni") +} else { + # TODO(brettw) remove this once && early-out is checked in. + arm_version = 0 +} + +declare_args() { + # Enables the Oilpan garbage-collection infrastructure. + enable_oilpan = false + + # Set to true to enable the clang plugin that checks the usage of the Blink + # garbage-collection infrastructure during compilation. + blink_gc_plugin = false + blink_gc_plugin_dump_graph = false +} + +use_default_render_theme = use_aura + +# Whether Android ARM or x86 build uses OpenMAX DL FFT. Currently only +# supported on Android ARMv7+, ia32 or x64 without webview. When enabled, this +# will also enable WebAudio support on Android ARM, ia32 and x64. Default is +# enabled. Whether WebAudio is actually available depends on runtime settings +# and flags. +use_openmax_dl_fft = is_android && !is_android_webview_build && + (cpu_arch == "x86" || + cpu_arch == "x64" || + (cpu_arch == "arm" && arm_version > 7)) + +# Set this to true to enable use of concatenated impulse responses for the HRTF +# panner in WebAudio. +# TODO(brettw) do we need this or can we assume its always on? +use_concatenated_impulse_responses = true |