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

Side by Side Diff: test/rules-rebuild/src/make-sources.py

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « test/rules-rebuild/src/main.c ('k') | test/rules-rebuild/src/prog1.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 import sys
3
4 assert len(sys.argv) == 4, sys.argv
5
6 (in_file, c_file, h_file) = sys.argv[1:]
7
8 def write_file(filename, contents):
9 open(filename, 'wb').write(contents)
10
11 write_file(c_file, open(in_file, 'rb').read())
12
13 write_file(h_file, '#define NAME "%s"\n' % in_file)
14
15 sys.exit(0)
OLDNEW
« no previous file with comments | « test/rules-rebuild/src/main.c ('k') | test/rules-rebuild/src/prog1.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698