forked from livecode/livecode
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-all-libs.bat
More file actions
46 lines (36 loc) · 856 Bytes
/
build-all-libs.bat
File metadata and controls
46 lines (36 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
SET "LOCKPATH=%TEMP%\build-all-libs-locks"
IF EXIST "%LOCKPATH%" (
RMDIR /S /Q %LOCKPATH%
IF %ERRORLEVEL% NEQ 0 (
ECHO "Build all libs already running"
EXIT /B 1
)
)
IF "%1"=="" (
SET PLATFORM=win32
) ELSE (
SET PLATFORM=%1
)
IF "%2"=="" (
SET ARCH=x86
) ELSE (
SET ARCH=%2
)
SET PREBUILT_LIBS=OpenSSL Curl ICU CEF thirdparty
ECHO Building Libs %PREBUILT_LIBS%
SET TOOL=15
FOR %%L IN (%PREBUILT_LIBS%) DO (
SET PREBUILT_LIB=%%L
ECHO Building !PREBUILT_LIB! for all configurations
ECHO Preparing !PREBUILT_LIB!
CALL build-libs.bat !PREBUILT_LIB! prepare
FOR %%M IN (debug,release) DO (
SET MODE=%%M
SET TRIPLE=!PREBUILT_LIB!-!MODE!-%ARCH%
ECHO Starting !TRIPLE!
CALL build-libs.bat !PREBUILT_LIB!
)
ECHO Finished building !PREBUILT_LIB! for all configurations
)