Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Blomquist <sblom@microsoft.com>2012-12-21 12:06:21 +0400
committerisaacs <i@izs.me>2012-12-21 23:05:55 +0400
commit841b7f534b80b86d4f815ed3d66f7ac9c1944841 (patch)
treef79d3e76af728aca6cd915d8a5539726cfc35992 /configure
parent244924823ec0db092a39044408a1adb6e48cf3c3 (diff)
Ease building with VS Express by checking in generated files.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 16 insertions, 0 deletions
diff --git a/configure b/configure
index 112d7cda34e..a97e964f7b8 100755
--- a/configure
+++ b/configure
@@ -590,6 +590,21 @@ def configure_openssl(o):
o['cflags'] += cflags.split()
+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:
+ return
+
+ o['variables']['node_has_winsdk'] = 'true'
+
+
output = {
'variables': { 'python': sys.executable },
'include_dirs': [],
@@ -605,6 +620,7 @@ configure_cares(output)
configure_libuv(output)
configure_v8(output)
configure_openssl(output)
+configure_winsdk(output)
# variables should be a root level element,
# move everything else to target_defaults