Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1531)

Unified Diff: test/chained-rules/chained-rules.gyp

Issue 10381103: ninja: rules chained only by output of first one failing Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: only update sources if process_outputs_as_sources Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: test/chained-rules/chained-rules.gyp
diff --git a/test/chained-rules/chained-rules.gyp b/test/chained-rules/chained-rules.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..78d4fcc2646656455a5c3b3dc0de5e0b732281ad
--- /dev/null
+++ b/test/chained-rules/chained-rules.gyp
@@ -0,0 +1,94 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'chained_rules',
+ 'type': 'none',
+ 'sources': [
+ 'input.wxs',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/input.msi',
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'candle',
+ 'extension': 'wxs',
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/input.wixobj',
+ ],
+ 'process_outputs_as_sources': 1,
+ 'msvs_cygwin_shell': 0,
+ 'action': [
+ 'python', 'copyfile.py',
+ '<(RULE_INPUT_PATH)',
+ '<@(_outputs)'
+ ],
+ 'message': 'Generating <@(_outputs)',
+ },
+ {
+ 'rule_name': 'light',
+ 'extension': 'wixobj',
+ 'outputs': [
+ '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi',
+ '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).wixpdb',
+ ],
+ 'msvs_cygwin_shell': 0,
+ 'action': [
+ 'python', 'copyfile.py',
+ '<(RULE_INPUT_PATH)',
+ '<(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi'
+ ],
+ 'message': 'Generating <(PRODUCT_DIR)/<(RULE_INPUT_ROOT).msi',
+ },
+ ],
+ },
+ {
+ 'target_name': 'chain_action_to_rule',
+ 'type': 'none',
+ 'sources': [
+ 'input.wxs',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/out.final',
+ ],
+ 'actions': [
+ {
+ 'msvs_cygwin_shell': 0,
+ 'action_name': 'copy_action',
+ 'inputs': [
+ 'action.input',
+ ],
+ 'outputs': [
+ 'action.output',
+ ],
+ 'action': [
+ 'python', 'copyfile.py',
+ 'action.input',
+ '<(_outputs)',
+ ],
+ 'process_outputs_as_sources': 1,
+ },
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'output_to_final',
+ 'extension': 'output',
+ 'outputs': [
+ '<(PRODUCT_DIR)/out.final',
+ ],
+ 'msvs_cygwin_shell': 0,
+ 'action': [
+ 'python', 'copyfile.py',
+ '<(RULE_INPUT_PATH)',
+ '<@(_outputs)'
+ ],
+ 'message': 'Generating <@(_outputs)',
+ },
+ ],
+ },
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698