Left: | ||
Right: |
OLD | NEW |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # coding: utf-8 | 2 # coding: utf-8 |
3 | 3 |
4 import os | 4 import os |
5 import sys | 5 import sys |
6 | 6 |
7 base_dir = os.path.abspath(os.path.dirname(__file__)) | 7 base_dir = os.path.abspath(os.path.dirname(__file__)) |
8 sys.path.append(os.path.join(base_dir, 'third_party', 'gyp', 'pylib')) | 8 sys.path.append(os.path.join(base_dir, 'third_party', 'gyp', 'pylib')) |
9 import gyp | 9 import gyp |
10 import gyp.generator.msvs | 10 import gyp.generator.msvs |
11 | 11 |
12 orig_fix_path = gyp.generator.msvs._FixPath | 12 orig_fix_path = gyp.generator.msvs._FixPath |
13 | 13 |
14 dont_expand = [ | |
15 # js2c | |
Eric
2017/05/30 17:31:41
# js2c paths
| |
16 'CORE', 'EXPERIMENTAL', 'off', 'EXTRAS', 'EXPERIMENTAL_EXTRAS', | |
17 # build-v8 | |
Eric
2017/05/30 17:31:41
# build-v8 paths
The new comments only made sense
sergei
2017/05/31 12:47:12
they are not paths, they are parameters for js2c a
| |
18 'ia32', 'x64' | |
19 ] | |
14 | 20 |
15 def _FixPath(path): | 21 def _FixPath(path): |
16 if path == 'CORE' or path == 'EXPERIMENTAL' or path == 'off': | 22 if path in dont_expand: |
17 # Don't touch js2c parameters | 23 # Don't touch js2c and build-v8 parameters |
18 return path | 24 return path |
19 return orig_fix_path(path) | 25 return orig_fix_path(path) |
20 gyp.generator.msvs._FixPath = _FixPath | 26 gyp.generator.msvs._FixPath = _FixPath |
21 | 27 |
22 if __name__ == '__main__': | 28 if __name__ == '__main__': |
23 gyp.main(sys.argv[1:]) | 29 gyp.main(sys.argv[1:]) |
OLD | NEW |