Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 6b69dd2

Browse files
Fix Windows gyp-ing on Unix-y hosts
This is required as Vulcan currently does the configure step for Windows from a Linux environment so the supplied Perl executable isn't available (we now use the host one instead, where required).
1 parent ffee30b commit 6b69dd2

3 files changed

Lines changed: 25 additions & 3 deletions

File tree

config.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ case ${OS} in
399399
;;
400400
win)
401401
invoke_gyp $basic_args "-Gmsvs_version=${WIN_MSVS_VERSION}" \
402+
"-Dunix_configure=1" \
402403
"-Dperl=${WIN_PERL}" "$@"
403404
;;
404405
mac|ios)

config/debug_syms.gypi

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,34 @@
5757
# MSVS generates the debug databases automatically; we just need to copy them
5858
'variables':
5959
{
60+
'variables':
61+
{
62+
'conditions':
63+
[
64+
[
65+
# If configuring from a Unix-like environment, use its perl
66+
# otherwise use the detected Windows perl.
67+
'unix_configure != 0',
68+
{
69+
'perl_command': [ 'perl' ],
70+
},
71+
{
72+
'perl_command': [ '<@(perl)' ],
73+
},
74+
],
75+
],
76+
},
77+
6078
'command':
6179
[
62-
'<@(perl)',
80+
'<@(perl_command)',
6381
'>(DEPTH)/tools/windows_debug_syms.pl',
64-
'<@(debug_syms_inputs)',
82+
"<@(debug_syms_inputs)",
6583
],
6684

6785
'debug_syms_outputs':
6886
[
69-
'>!@(<(command))',
87+
">!@(<(command))",
7088
],
7189
},
7290

config/win32.gypi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
'ms_speech_sdk4%': '$(foo)C:/Program Files/Microsoft Speech SDK',
99
'ms_speech_sdk5%': '$(foo)C:/Program Files/Microsoft Speech SDK 5.1',
1010

11+
# Set if the Gyp step is being run on a Unix-like host (i.e not Windows)
12+
'unix_configure%': '0',
13+
1114
'output_dir': '../win-<(target_arch)-bin',
1215
},
1316

0 commit comments

Comments
 (0)