Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: msvs_gyp_wrapper.py

Issue 10234088: Use GYP to generate MSVS project files (Closed)
Patch Set: Moved project files to build/ Created April 24, 2013, 1:57 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libadblockplus.gyp ('k') | msvs_makesnapshot.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: msvs_gyp_wrapper.py
===================================================================
new file mode 100755
--- /dev/null
+++ b/msvs_gyp_wrapper.py
@@ -0,0 +1,21 @@
+#!/usr/bin/env python
+# coding: utf-8
+
+import os, sys
+base_dir = os.path.abspath(os.path.dirname(__file__))
+
+sys.path.append(os.path.join(base_dir, 'third_party', 'gyp', 'pylib'))
+import gyp
+import gyp.generator.msvs
+
+orig_fix_path = gyp.generator.msvs._FixPath
+
+def _FixPath(path):
+ if path == 'CORE' or path == 'EXPERIMENTAL' or path == 'off':
+ # Don't touch js2c parameters
+ return path
Eric 2013/04/24 14:21:56 This may well cause a different kind of failure ov
Wladimir Palant 2013/04/24 14:51:05 This is pretty safe actually - I doubt that we wil
+ return orig_fix_path(path)
+gyp.generator.msvs._FixPath = _FixPath
+
+if __name__ == '__main__':
+ gyp.main(sys.argv[1:])
« no previous file with comments | « libadblockplus.gyp ('k') | msvs_makesnapshot.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld