diff options
author | Scott Blomquist <sblom@microsoft.com> | 2013-01-03 23:36:04 +0100 |
---|---|---|
committer | Bert Belder <bertbelder@gmail.com> | 2013-01-03 23:38:25 +0100 |
commit | a6167742811a69d98a716de8f0defa5e50af17d9 (patch) | |
tree | 493b5f7fb7f0bd82590968eb78709dd6f131afa4 /configure | |
parent | 5a39df49593a862d0de9ef01db2f83e23b2fd67f (diff) | |
download | android-node-v8-a6167742811a69d98a716de8f0defa5e50af17d9.tar.gz android-node-v8-a6167742811a69d98a716de8f0defa5e50af17d9.tar.bz2 android-node-v8-a6167742811a69d98a716de8f0defa5e50af17d9.zip |
windows: improve Visual Studio Express build support
* Moved generated files to a clearer directory.
* Improved detection logic for ctrpp.exe tool.
Closes #4482
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -604,15 +604,14 @@ def configure_winsdk(o): if not sys.platform.startswith('win32'): return - try: - p = subprocess.Popen(['ctrpp.exe'], - stdin=subprocess.PIPE, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) - except OSError: + winsdk_dir = os.environ.get("WindowsSdkDir") + + if winsdk_dir and os.path.isfile(winsdk_dir + '\\bin\\ctrpp.exe'): + print "Found ctrpp in WinSDK--will build generated files into tools/msvs/genfiles." + o['variables']['node_has_winsdk'] = 'true' return - o['variables']['node_has_winsdk'] = 'true' + print "ctrpp not found in WinSDK path--using pre-gen files from tools/msvs/genfiles." output = { |