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

Unified Diff: test/rules-rebuild/src/same_target.gyp

Issue 300016: Fix generators to make sure changes to rule inputs trigger correct rebuilds.... (Closed) Base URL: http://gyp.googlecode.com/svn/trunk/
Patch Set: add same_target.gyp Created 11 years, 1 month 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/rules-rebuild/src/prog2.in ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/rules-rebuild/src/same_target.gyp
===================================================================
--- test/rules-rebuild/src/same_target.gyp (revision 0)
+++ test/rules-rebuild/src/same_target.gyp (revision 0)
@@ -0,0 +1,32 @@
+{
+ 'targets': [
+ {
+ 'target_name': 'program',
+ 'type': 'executable',
+ 'msvs_cygwin_shell': 0,
+ 'sources': [
+ 'main.c',
+ 'prog1.in',
+ 'prog2.in',
+ ],
+ 'rules': [
+ {
+ 'rule_name': 'make_sources',
+ 'extension': 'in',
+ 'msvs_external_rule': 1,
+ 'inputs': [
+ 'make-sources.py',
+ ],
+ 'outputs': [
+ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).c',
+ '<(INTERMEDIATE_DIR)/<(RULE_INPUT_ROOT).h',
+ ],
+ 'action': [
+ 'python', '<(_inputs)', '<(RULE_INPUT_NAME)', '<@(_outputs)',
+ ],
+ 'process_outputs_as_sources': 1,
+ },
+ ],
+ },
+ ],
+}
« no previous file with comments | « test/rules-rebuild/src/prog2.in ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698