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

Commit d6aed76

Browse files
committed
build: Run normal config.py script from configure.bat
Rework the `configure.bat` script to run the new `config.py` script rather than running gyp directly, and remove redundant checks. This patch does _not_ move the checks for SDKs into `config.py`. If running `config.py` directly, you presumably know what you are doing and can add `-Dms_speech_sdk5=C:\path` directly; if you don't, the gyp input files already provide suitable default values.
1 parent f14a0c3 commit d6aed76

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

configure.bat

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,10 @@ SET warnings=0
99
REM Not all versions of windows the the %programfiles(x86)% variable
1010
IF NOT DEFINED programfiles(x86) SET programfiles(x86)=%programfiles%
1111

12-
REM When calling configure.bat from the command line, BUILD_EDITION is not defined
13-
IF NOT DEFINED BUILD_EDITION SET BUILD_EDITION="community"
14-
1512
REM Note: to test whether a directory exists in batch script, you need to check
1613
REM whether a file within that directory exists. Easiest way to do this is to
1714
REM add the "*" wildcard after the directory
1815

19-
REM Attempt to locate a copy of Perl
20-
WHERE /Q perl 1>NUL 2>NUL
21-
IF %ERRORLEVEL% NEQ 0 (
22-
IF EXIST C:\perl64\bin\perl.exe (
23-
SET extra_options=%extra_options% -Dperl="C:/perl64/bin/perl.exe"
24-
) ELSE IF EXIST C:\perl\bin\perl.exe (
25-
SET extra_options=%extra_options% -Dperl="C:/perl/bin/perl.exe"
26-
) ELSE (
27-
ECHO >&2 Error: could not locate a copy of perl
28-
PAUSE
29-
EXIT 1
30-
)
31-
)
32-
3316
REM Attempt to locate a copy of Python
3417
WHERE /Q python 1>NUL 2>NUL
3518
IF %ERRORLEVEL% NEQ 0 (
@@ -74,13 +57,8 @@ IF EXIST "%programfiles(x86)%\Microsoft Speech SDK\*" (
7457
REM Pause so any warnings can be seen
7558
IF %warnings% NEQ 0 PAUSE
7659

77-
REM Community or commercial?
78-
IF /I %BUILD_EDITION% == commercial (
79-
SET gypfile="../livecode-commercial.gyp"
80-
)
81-
8260
REM Run the configure step
83-
%python% gyp\gyp_main.py --format msvs --depth . --generator-output build-win-x86/livecode -Gmsvs_version=2010 %extra_options% %gypfile%
61+
%python% config.py --platform win-x86 %extra_options% %gypfile%
8462
PAUSE
8563

8664
REM Pause if there was an error so that the user gets a chance to see it

0 commit comments

Comments
 (0)