| 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:]) |