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

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: exclude make 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
« no previous file with comments | « test/chained-rules/action.input ('k') | test/chained-rules/copyfile.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8649ed982d9e6ef120dba6187187bcf3e78fdfed
--- /dev/null
+++ b/test/chained-rules/chained-rules.gyp
@@ -0,0 +1,150 @@
+# 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)',
+ },
+ ],
+ },
+ {
+ 'target_name': 'three_levels_circular_extensions',
+ 'type': 'none',
+ 'sources': [
+ 'foo.msi',
+ ],
+ 'outputs': [
+ '<(PRODUCT_DIR)/bar.msi',
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'dark',
+ 'extension': 'msi',
+ 'outputs': [
+ 'foo.wxs',
+ ],
+ 'process_outputs_as_sources': 1,
+ 'msvs_cygwin_shell': 0,
+ 'action': [
+ 'python', 'copyfile.py',
+ '<(RULE_INPUT_PATH)',
+ '<@(_outputs)'
+ ],
+ 'message': 'Generating <@(_outputs)',
+ },
+ {
+ 'rule_name': 'candle',
+ 'extension': 'wxs',
+ 'outputs': [
+ 'foo.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)/bar.msi',
+ ],
+ 'msvs_cygwin_shell': 0,
+ 'action': [
+ 'python', 'copyfile.py',
+ '<(RULE_INPUT_PATH)',
+ '<@(_outputs)'
+ ],
+ 'message': 'Generating <@(_outputs)',
+ },
+ ],
+ },
+ ]
+}
« no previous file with comments | « test/chained-rules/action.input ('k') | test/chained-rules/copyfile.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698