summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortschmelcher@chromium.org <tschmelcher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-13 19:49:00 +0000
committertschmelcher@chromium.org <tschmelcher@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-13 19:49:00 +0000
commit14b983450183cf34e1e45207ccdde3da286f1ef0 (patch)
tree1380791616c33268069bca8248221e96c5aef771
parentcbea2bd48773efb675f235cc1f04600d0621b30a (diff)
downloadchromium_src-14b983450183cf34e1e45207ccdde3da286f1ef0.zip
chromium_src-14b983450183cf34e1e45207ccdde3da286f1ef0.tar.gz
chromium_src-14b983450183cf34e1e45207ccdde3da286f1ef0.tar.bz2
Windows: Change the generation of the various templated metadata files to place them in SHARED_INTERMEDIATE_DIR (build\Debug\obj\global_intermediate) rather than generating them in-place. In-place generation was problematic because the MSVS GYP back-end is bad at re-generating files whose rules have changed (e.g., due to a change in a branding variable), so it is good practice to put all output under build\<mode> so that deleting those directories always ensures a clean build.
TEST=built on Windows and installed and tested some samples BUG=none Review URL: http://codereview.chromium.org/2976006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@52205 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--o3d/plugin/plugin.gyp36
1 files changed, 23 insertions, 13 deletions
diff --git a/o3d/plugin/plugin.gyp b/o3d/plugin/plugin.gyp
index 9914c10..0f6f6b7 100644
--- a/o3d/plugin/plugin.gyp
+++ b/o3d/plugin/plugin.gyp
@@ -337,12 +337,16 @@
'dependencies': [
'../breakpad/breakpad.gyp:o3dBreakpad',
],
+ 'include_dirs': [
+ # So that o3dPlugin.rc can find resource.h.
+ 'win',
+ ],
'sources': [
'win/config.cc',
'win/logger_main.cc',
'win/main_win.cc',
- 'win/o3dPlugin.def',
- 'win/o3dPlugin.rc',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/o3dPlugin.def',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/o3dPlugin.rc',
'win/plugin_logging-win32.cc',
'win/resource.h',
'win/update_lock.cc',
@@ -514,12 +518,16 @@
'dependencies': [
'../breakpad/breakpad.gyp:o3dBreakpad',
],
+ 'include_dirs': [
+ # So that o3dPlugin.rc can find resource.h.
+ 'win',
+ ],
'sources': [
'win/config.cc',
'win/logger_main.cc',
'win/main_win.cc',
- 'win/o3dPlugin.def',
- 'win/o3dPlugin.rc',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/o3dPlugin.def',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/o3dPlugin.rc',
'win/plugin_logging-win32.cc',
'win/resource.h',
'win/update_lock.cc',
@@ -597,7 +605,7 @@
'win/o3dPlugin.rc_template',
],
'outputs': [
- 'win/o3dPlugin.rc'
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/o3dPlugin.rc'
],
'action': ['python',
'version_info.py',
@@ -606,7 +614,7 @@
'--set_npapi_filename=<(plugin_npapi_filename)',
'--set_npapi_mimetype=<(plugin_npapi_mimetype)',
'win/o3dPlugin.rc_template',
- 'win/o3dPlugin.rc'],
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/o3dPlugin.rc'],
},
],
['OS=="mac"',
@@ -660,13 +668,13 @@
'win/o3dPlugin.def_template',
],
'outputs': [
- 'win/o3dPlugin.def',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/o3dPlugin.def',
],
'action': ['python',
'version_info.py',
'--set_npapi_filename=<(plugin_npapi_filename)',
'win/o3dPlugin.def_template',
- 'win/o3dPlugin.def'],
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/o3dPlugin.def'],
},
],
},
@@ -690,7 +698,7 @@
'npapi_host_control/win/host_control.rgs_template',
],
'outputs': [
- 'npapi_host_control/win/host_control.rgs',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/host_control.rgs',
],
'action': ['python',
'version_info.py',
@@ -702,7 +710,7 @@
'<(plugin_activex_hostcontrol_name)',
'--set_activex_typelib_name=<(plugin_activex_typelib_name)',
'npapi_host_control/win/host_control.rgs_template',
- 'npapi_host_control/win/host_control.rgs',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/host_control.rgs',
],
},
],
@@ -718,7 +726,7 @@
'npapi_host_control/win/npapi_host_control.idl_template',
],
'outputs': [
- 'npapi_host_control/win/npapi_host_control.idl',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/npapi_host_control.idl',
],
'action': ['python',
'version_info.py',
@@ -730,7 +738,7 @@
'<(plugin_activex_hostcontrol_name)',
'--set_activex_typelib_name=<(plugin_activex_typelib_name)',
'npapi_host_control/win/npapi_host_control.idl_template',
- 'npapi_host_control/win/npapi_host_control.idl',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/npapi_host_control.idl',
],
},
],
@@ -744,6 +752,8 @@
],
'include_dirs': [
'<(INTERMEDIATE_DIR)',
+ # So that npapi_host_control.rc can find host_control.rgs.
+ '<(SHARED_INTERMEDIATE_DIR)/plugin',
],
'sources': [
'<(INTERMEDIATE_DIR)/npapi_host_control_i.c',
@@ -759,7 +769,7 @@
'npapi_host_control/win/np_plugin_proxy.cc',
'npapi_host_control/win/np_plugin_proxy.h',
'npapi_host_control/win/npapi_host_control.cc',
- 'npapi_host_control/win/npapi_host_control.idl',
+ '<(SHARED_INTERMEDIATE_DIR)/plugin/npapi_host_control.idl',
'npapi_host_control/win/npapi_host_control.rc',
'npapi_host_control/win/precompile.h',
'npapi_host_control/win/resource.h',