summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2013-06-02 22:39:52 +0200
committerPierre Rossi <pierre.rossi@digia.com>2013-06-03 17:52:23 +0200
commit6933621d6967a516f4800f27a71d45f088af3089 (patch)
treecc346a54582b09bc0dd64013e8d3d553e1f326a0 /build
parent3513626dbd2f4d3a4bccf801cae5c9f8f005ba13 (diff)
Allow excluding source files from the chromium build
Use a gypi files for that with target defaults with our file exclusion patterns. Another patch bites the dust !
Diffstat (limited to 'build')
-rw-r--r--build/exclude_chromium_sources.gypi13
-rwxr-xr-xbuild/gyp_blinq3
2 files changed, 16 insertions, 0 deletions
diff --git a/build/exclude_chromium_sources.gypi b/build/exclude_chromium_sources.gypi
new file mode 100644
index 000000000..9d20912b2
--- /dev/null
+++ b/build/exclude_chromium_sources.gypi
@@ -0,0 +1,13 @@
+{
+ 'target_defaults': {
+ # patterns used to exclude chromium files from the build when we have a drop-in replacement
+ 'sources/': [
+ ['exclude', 'shell/shell_gtk\\.cc$'],
+ ['exclude', 'shell/shell_mac\\.mm$'],
+ ['exclude', 'shell/shell_win\\.cc$'],
+ ['exclude', 'browser/renderer_host/render_widget_host_view_gtk\\.(cc|h)$'],
+ ['exclude', 'browser/renderer_host/render_widget_host_view_mac.*\\.(mm|h)$'],
+ ['exclude', 'browser/renderer_host/render_widget_host_view_win.*\\.(cc|h)$'],
+ ],
+ }
+}
diff --git a/build/gyp_blinq b/build/gyp_blinq
index c2b4cd453..a7eff0d6f 100755
--- a/build/gyp_blinq
+++ b/build/gyp_blinq
@@ -47,6 +47,9 @@ def additional_include_files(args=[]):
# Always include common.gypi.
AddInclude(os.path.join(script_dir, 'common.gypi'))
+ # Files to exclude from the chromium build.
+ AddInclude(os.path.join(os.getcwd(), 'exclude_chromium_sources.gypi'))
+
# Optionally add supplemental .gypi files if present.
supplements = glob.glob(os.path.join(chrome_src, '*', 'supplement.gypi'))
for supplement in supplements: