summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-18 22:02:14 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-18 22:02:14 +0000
commit0e24f381dc05398248c8920d8eab52785a26b9ba (patch)
tree70c78778ec00818d11ecf3a3513b2b2bbabf6411 /webkit
parent78904e96cfdbd62a905bd2d26c3e5c8e6e84cee7 (diff)
downloadchromium_src-0e24f381dc05398248c8920d8eab52785a26b9ba.zip
chromium_src-0e24f381dc05398248c8920d8eab52785a26b9ba.tar.gz
chromium_src-0e24f381dc05398248c8920d8eab52785a26b9ba.tar.bz2
Step 1 in getting rid of duplicate warning in make build.
The plan is to make a target just for the copy and have both test_shell and DRT use it. This change creates the target and has test_shell use it. Step 2 is to have DRT to use it. Step 3 is to roll deps so we don't get the warning anymore. BUG=47256 Review URL: http://codereview.chromium.org/2825055 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52869 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.gypi33
-rw-r--r--webkit/tools/test_shell/test_shell.gypi31
2 files changed, 34 insertions, 30 deletions
diff --git a/webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.gypi b/webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.gypi
index b329bed..3e20342 100644
--- a/webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.gypi
+++ b/webkit/tools/npapi_layout_test_plugin/npapi_layout_test_plugin.gypi
@@ -89,6 +89,39 @@
}],
],
},
+ {
+ 'target_name': 'copy_npapi_layout_test_plugin',
+ 'type': 'none',
+ 'dependencies': [
+ 'npapi_layout_test_plugin',
+ ],
+ 'conditions': [
+ ['OS=="win"', {
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)/plugins',
+ 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
+ },
+ ],
+ }],
+ ['OS=="mac"', {
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/PlugIns/',
+ 'files': ['<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/'],
+ },
+ ]
+ }],
+ ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
+ 'copies': [
+ {
+ 'destination': '<(PRODUCT_DIR)/plugins',
+ 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'],
+ },
+ ],
+ }],
+ ],
+ },
],
}
diff --git a/webkit/tools/test_shell/test_shell.gypi b/webkit/tools/test_shell/test_shell.gypi
index 8c64029..2617692 100644
--- a/webkit/tools/test_shell/test_shell.gypi
+++ b/webkit/tools/test_shell/test_shell.gypi
@@ -42,7 +42,6 @@
'<(DEPTH)/webkit/support/webkit_support.gyp:appcache',
'<(DEPTH)/webkit/support/webkit_support.gyp:database',
'<(DEPTH)/webkit/support/webkit_support.gyp:glue',
- '<(DEPTH)/webkit/support/webkit_support.gyp:npapi_layout_test_plugin',
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_resources',
'<(DEPTH)/webkit/support/webkit_support.gyp:webkit_support',
],
@@ -137,15 +136,6 @@
# for: test_shell_gtk.cc
'cflags': ['-Wno-multichar'],
}],
- ['OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
- # See below TODO in the Windows branch.
- 'copies': [
- {
- 'destination': '<(PRODUCT_DIR)/plugins',
- 'files': ['<(PRODUCT_DIR)/libnpapi_layout_test_plugin.so'],
- },
- ],
- }],
['OS=="win"', {
'msvs_disabled_warnings': [ 4800 ],
'link_settings': {
@@ -160,20 +150,6 @@
'dependencies': [
'<(DEPTH)/breakpad/breakpad.gyp:breakpad_handler',
],
- # TODO(bradnelson):
- # This should really be done in the 'npapi_layout_test_plugin'
- # target, but the current VS generator handles 'copies'
- # settings as AdditionalDependencies, which means that
- # when it's over there, it tries to do the copy *before*
- # the file is built, instead of after. We work around this
- # by attaching the copy here, since it depends on that
- # target.
- 'copies': [
- {
- 'destination': '<(PRODUCT_DIR)/plugins',
- 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
- },
- ],
}, { # else: OS!=win
'sources/': [
['exclude', '_webtheme(control|engine)\.(cc|h)$'],
@@ -238,6 +214,7 @@
'<(DEPTH)/net/net.gyp:net_test_support',
'<(DEPTH)/skia/skia.gyp:skia',
'<(DEPTH)/tools/imagediff/image_diff.gyp:image_diff',
+ '<(DEPTH)/webkit/support/webkit_support.gyp:copy_npapi_layout_test_plugin',
],
'defines': [
# Technically not a unit test but require functions available only to
@@ -331,12 +308,6 @@
},
],
'copies': [
- {
- 'destination': '<(PRODUCT_DIR)/TestShell.app/Contents/PlugIns/',
- 'files': [
- '<(PRODUCT_DIR)/TestNetscapePlugIn.plugin/',
- ],
- },
# TODO(ajwong): This, and the parallel chromium stanza below
# really should find a way to share file paths with
# ffmpeg.gyp so they don't diverge. (BUG=23602)