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

Unified Diff: test/sanitize-rule-names/sanitize-rule-names.gyp

Issue 10269012: ninja windows: sanitize rule names to not emit corrupt .ninja files (Closed) Base URL: https://gyp.googlecode.com/svn/trunk
Patch Set: line endings Created 8 years, 8 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/sanitize-rule-names/hello.cc ('k') | test/sanitize-rule-names/script.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/sanitize-rule-names/sanitize-rule-names.gyp
diff --git a/test/sanitize-rule-names/sanitize-rule-names.gyp b/test/sanitize-rule-names/sanitize-rule-names.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..7e62de889b6f065d03d604281df7a84e33d3a7e7
--- /dev/null
+++ b/test/sanitize-rule-names/sanitize-rule-names.gyp
@@ -0,0 +1,27 @@
+# Copyright (c) 2012 Google Inc. 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': 's_test',
+ 'type': 'executable',
+ 'rules': [
+ {
+ # Make sure this rule name doesn't cause an invalid ninja file.
+ 'rule_name': 'assembler (gnu-compatible)',
+ 'extension': 'X',
+ 'outputs': ['outfile'],
+ 'msvs_cygwin_shell': 0,
+ 'msvs_quote_cmd': 0,
+ 'action': ['python', 'script.py', '<(RULE_INPUT_PATH)', 'outfile'],
+ },
+ ],
+ 'sources': [
+ 'blah.X',
+ 'hello.cc',
+ ],
+ },
+ ],
+}
« no previous file with comments | « test/sanitize-rule-names/hello.cc ('k') | test/sanitize-rule-names/script.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698