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

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

Issue 10399096: Check for and disallow rules the process the output of other rules (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: fix comment 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..d765f8c143008ba9492c5160f0f55d0a3a55aa3e
--- /dev/null
+++ b/test/chained-rules/chained-rules.gyp
@@ -0,0 +1,50 @@
+# 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',
+ },
+ ],
+ },
+ ]
+}

Powered by Google App Engine
This is Rietveld 408576698