summaryrefslogtreecommitdiffstats
path: root/webkit/webkit.gyp
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-08 21:29:24 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-08 21:29:24 +0000
commit146d7f5b9056a8f6b5a1386917b8f4691f274806 (patch)
treedb3956a29990e98ee470ccef971e619b4d7d253b /webkit/webkit.gyp
parentdb55f8770c85bfee8836fe70233b769a48b176d9 (diff)
downloadchromium_src-146d7f5b9056a8f6b5a1386917b8f4691f274806.zip
chromium_src-146d7f5b9056a8f6b5a1386917b8f4691f274806.tar.gz
chromium_src-146d7f5b9056a8f6b5a1386917b8f4691f274806.tar.bz2
linux: build a fake libxul and libxpcom
This makes some plugins happy. As described in the file comments, this approach is also used by nspluginwrapper. Review URL: http://codereview.chromium.org/202012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25665 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/webkit.gyp')
-rw-r--r--webkit/webkit.gyp30
1 files changed, 28 insertions, 2 deletions
diff --git a/webkit/webkit.gyp b/webkit/webkit.gyp
index 2d3f93c..f1bb332 100644
--- a/webkit/webkit.gyp
+++ b/webkit/webkit.gyp
@@ -1568,7 +1568,7 @@
'../v8/tools/logreader.js',
'../v8/tools/profile.js',
'../v8/tools/profile_view.js',
- '../v8/tools/splaytree.js',
+ '../v8/tools/splaytree.js',
],
},
{
@@ -1581,5 +1581,31 @@
},
],
},
- ],
+ ], # targets
+ 'conditions': [
+ ['OS=="linux"', {
+ # See the comments in libxul_hack.cc for a description of why these
+ # libraries exist.
+ 'targets': [
+ {
+ # We want to build exactly "libxul.so".
+ 'target_name': 'xul',
+ 'product_dir': '<(PRODUCT_DIR)',
+ 'type': 'loadable_module',
+ 'sources': [
+ 'tools/libxul_hack/libxul_hack.cc'
+ ],
+ },
+ {
+ # We want to build exactly "libxpcom.so".
+ 'target_name': 'xpcom',
+ 'product_dir': '<(PRODUCT_DIR)',
+ 'type': 'loadable_module',
+ 'sources': [
+ 'tools/libxul_hack/libxul_hack.cc'
+ ],
+ },
+ ], # targets
+ }],
+ ], # conditions
}