Revision 841b7f53 configure
configure | ||
---|---|---|
590 | 590 |
o['cflags'] += cflags.split() |
591 | 591 |
|
592 | 592 |
|
593 |
def configure_winsdk(o): |
|
594 |
if not sys.platform.startswith('win32'): |
|
595 |
return |
|
596 |
|
|
597 |
try: |
|
598 |
p = subprocess.Popen(['ctrpp.exe'], |
|
599 |
stdin=subprocess.PIPE, |
|
600 |
stdout=subprocess.PIPE, |
|
601 |
stderr=subprocess.PIPE) |
|
602 |
except OSError: |
|
603 |
return |
|
604 |
|
|
605 |
o['variables']['node_has_winsdk'] = 'true' |
|
606 |
|
|
607 |
|
|
593 | 608 |
output = { |
594 | 609 |
'variables': { 'python': sys.executable }, |
595 | 610 |
'include_dirs': [], |
... | ... | |
605 | 620 |
configure_libuv(output) |
606 | 621 |
configure_v8(output) |
607 | 622 |
configure_openssl(output) |
623 |
configure_winsdk(output) |
|
608 | 624 |
|
609 | 625 |
# variables should be a root level element, |
610 | 626 |
# move everything else to target_defaults |
Also available in: Unified diff