summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorsgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-08 08:31:50 +0000
committersgk@google.com <sgk@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-08 08:31:50 +0000
commit81765d34884ea71ab65d7ac4e5de5eafac4afa62 (patch)
tree65c5fca3eec5f15034f3354606c6eba0307b2d64 /webkit
parent4518521ab6d24c594887ae05bf71f4fd60e04f02 (diff)
downloadchromium_src-81765d34884ea71ab65d7ac4e5de5eafac4afa62.zip
chromium_src-81765d34884ea71ab65d7ac4e5de5eafac4afa62.tar.gz
chromium_src-81765d34884ea71ab65d7ac4e5de5eafac4afa62.tar.bz2
The VS generator handles file copies as AdditionalDependencies,
which means it tries to do the copy before the target is built and we therefore can't attach the copy of npapi_layout_test_plugin.dll to the target that builds it. Work around this problem by attaching the 'copies' setting to 'test_shell_common', which is the one target that depends on the 'npapi_layout_test_plugin' target. Review URL: http://codereview.chromium.org/115120 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15628 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_shell.gyp44
1 files changed, 32 insertions, 12 deletions
diff --git a/webkit/tools/test_shell/test_shell.gyp b/webkit/tools/test_shell/test_shell.gyp
index c060f22..ad29b5d 100644
--- a/webkit/tools/test_shell/test_shell.gyp
+++ b/webkit/tools/test_shell/test_shell.gyp
@@ -141,6 +141,20 @@
'../../../build/temp_gyp/breakpad.gyp:breakpad_handler',
'../../default_plugin/default_plugin.gyp:default_plugin',
],
+ # 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', '_win\\.cc$'],
@@ -289,18 +303,24 @@
'../npapi_layout_test_plugin/npapi_layout_test_plugin.def',
'../npapi_layout_test_plugin/npapi_layout_test_plugin.rc',
],
- }, { # OS == "win"
- # The old VS build would explicitly copy the .dll into the
- # plugins subdirectory like this. It might be possible to
- # use the 'product_dir' setting to build directly into
- # plugins/ (as is done on Linux), but we'd need to verify
- # that nothing breaks first.
- 'copies': [
- {
- 'destination': '<(PRODUCT_DIR)/plugins',
- 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
- },
- ],
+ # TODO(bradnelson):
+ # This copy should really live here, as a post-build step,
+ # but it's currently being implemented via
+ # AdditionalDependencies, which tries to do the copy before
+ # the file is built...
+ #
+ #}, { # OS == "win"
+ # # The old VS build would explicitly copy the .dll into the
+ # # plugins subdirectory like this. It might be possible to
+ # # use the 'product_dir' setting to build directly into
+ # # plugins/ (as is done on Linux), but we'd need to verify
+ # # that nothing breaks first.
+ # 'copies': [
+ # {
+ # 'destination': '<(PRODUCT_DIR)/plugins',
+ # 'files': ['<(PRODUCT_DIR)/npapi_layout_test_plugin.dll'],
+ # },
+ # ],
}],
['OS=="mac"', {
'link_settings': {