Index: remoting/remoting.gyp |
diff --git a/remoting/remoting.gyp b/remoting/remoting.gyp |
index c93e3fcf6061a7dc10576d6a050f875bc180e1cb..da6dae31ce96424e06916767a24a20dea807d285 100644 |
--- a/remoting/remoting.gyp |
+++ b/remoting/remoting.gyp |
@@ -686,58 +686,24 @@ |
'<(PRODUCT_DIR)/remoting_service.exe', |
'<(platformsdk_path)/redist/x86/sas.dll', |
'resources/chromoting.ico', |
- ], |
- 'outputs': [ |
- '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).wixobj', |
- ], |
- 'process_outputs_as_sources': 1, |
- 'msvs_cygwin_shell': 0, |
- 'action': [ |
- '<(wix_path)\\candle', |
- '-ext', '<(wix_path)\\WixFirewallExtension.dll', |
- '-ext', '<(wix_path)\\WixUIExtension.dll', |
- '-ext', '<(wix_path)\\WixUtilExtension.dll', |
- '-dVersion=<(version_full)', |
- '-dFileSource=<(PRODUCT_DIR).', |
- '-dIconPath=resources/chromoting.ico', |
- '-dSasDllPath=<(platformsdk_path)/redist/x86/sas.dll', |
- '<@(_wix_defines)', |
- '-out', '<@(_outputs)', |
- '<(RULE_INPUT_PATH)', |
- ], |
- 'message': 'Generating <@(_outputs)', |
- }, |
- { |
- 'rule_name': 'light', |
- 'extension': 'wixobj', |
- 'inputs': [ |
- '<(PRODUCT_DIR)/remoting_host_controller.exe', |
- '<(PRODUCT_DIR)/remoting_me2me_host.exe', |
- '<(PRODUCT_DIR)/remoting_service.exe', |
- '<(platformsdk_path)/redist/x86/sas.dll', |
- 'resources/chromoting.ico', |
+ 'candle_and_light.py', |
], |
'outputs': [ |
'<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', |
- '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).wixpdb', |
], |
'msvs_cygwin_shell': 0, |
'action': [ |
- '<(wix_path)\\light', |
- '-ext', '<(wix_path)\\WixFirewallExtension.dll', |
- '-ext', '<(wix_path)\\WixUIExtension.dll', |
- '-ext', '<(wix_path)\\WixUtilExtension.dll', |
- '-cultures:en-us', |
- '-sw1076', |
- '-dVersion=<(version_full)', |
- '-dFileSource=<(PRODUCT_DIR).', |
- '-dIconPath=resources/chromoting.ico', |
- '-dSasDllPath=<(platformsdk_path)/redist/x86/sas.dll', |
- '<@(_wix_defines)', |
- '-out', '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', |
- '<(RULE_INPUT_PATH)', |
+ 'python', 'candle_and_light.py', |
+ '--wix_path', '<(wix_path)', |
+ '--version', '<(version_full)', |
+ '--product_dir', '<(PRODUCT_DIR)', |
+ '--intermediate_root', '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT)', |
alexeypa (please no reviews)
2012/05/21 16:24:51
I think it is better to pass '--intermediate_dir',
scottmg
2012/05/21 17:00:38
Done.
|
+ '--platformsdk_path', '<(platformsdk_path)', |
+ '--defines', '<(_wix_defines)', |
alexeypa (please no reviews)
2012/05/21 16:24:51
Does this work if there is no defines or more than
scottmg
2012/05/21 17:00:38
Yes, when a list is inserted into a string context
|
+ '--input', '<(RULE_INPUT_PATH)', |
+ '--output', '<@(_outputs)', |
], |
- 'message': 'Generating <(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi', |
+ 'message': 'Generating <@(_outputs)', |
}, |
], |
}, # end of target 'remoting_host_installation' |
@@ -765,52 +731,25 @@ |
], |
'rules': [ |
{ |
- 'rule_name': 'dark', |
+ 'rule_name': 'dark_and_candle_and_light', |
'extension': 'msi', |
- 'outputs': [ |
- '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).wxs', |
- ], |
- 'process_outputs_as_sources': 1, |
- 'msvs_cygwin_shell': 0, |
- 'action': [ |
- '<(wix_path)\\dark', |
- '<(RULE_INPUT_PATH)', |
- '-o', '<@(_outputs)', |
- '-x', '<(INTERMEDIATE_DIR).', |
- ], |
- 'message': 'Dark: unpacking <(RULE_INPUT_PATH)', |
- }, |
- { |
- 'rule_name': 'candle', |
- 'extension': 'wxs', |
- 'outputs': [ |
- '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).wixobj', |
- ], |
- 'process_outputs_as_sources': 1, |
- 'msvs_cygwin_shell': 0, |
- 'action': [ |
- '<(wix_path)\\candle', |
- '<(RULE_INPUT_PATH)', |
- '-o', '<@(_outputs)', |
- '-ext', '<(wix_path)\\WixFirewallExtension.dll', |
+ 'inputs': [ |
+ 'dark_and_candle_and_light.py', |
], |
- 'message': 'Candle: compiling <(RULE_INPUT_PATH)', |
- }, |
- { |
- 'rule_name': 'light', |
- 'extension': 'wixobj', |
'outputs': [ |
- '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT)-test.msi', |
+ '<(INTERMEDIATE_DIR)/chromoting-test.msi', |
], |
'msvs_cygwin_shell': 0, |
'action': [ |
- '<(wix_path)\\light', |
- '<(RULE_INPUT_PATH)', |
- '-o', '<@(_outputs)', |
- '-ext', '<(wix_path)\\WixFirewallExtension.dll', |
- '-sw1076', |
+ 'python', |
+ 'dark_and_candle_and_light.py', |
+ '--wix_path', '<(wix_path)', |
+ '--input', '<(RULE_INPUT_PATH)', |
+ '--intermediate_root', '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT)', |
+ '--intermediate_dir', '<(INTERMEDIATE_DIR)', |
alexeypa (please no reviews)
2012/05/21 16:24:51
It is confusing that |intermediate_dir| is a paren
scottmg
2012/05/21 17:00:38
Agreed, they should have had better names at least
|
+ '--output', '<@(_outputs)', |
], |
- 'message': 'Light: linking <(RULE_INPUT_PATH)', |
+ 'message': 'Unpacking and repacking to <@(_outputs)', |
}, |
], |
}, # end of target 'remoting_host_installation_unittest' |