forked from jrsoftware/issrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile-bcc32c.bat
43 lines (33 loc) · 1.01 KB
/
compile-bcc32c.bat
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
@echo off
rem Inno Setup
rem Copyright (C) 1997-2024 Jordan Russell
rem Portions by Martijn Laan
rem For conditions of distribution and use, see LICENSE.TXT.
rem
rem Batch file to compile ISLzmaDec.c using Embarcadero's free
rem C++ compiler from https://www.embarcadero.com/free-tools/ccompiler
rem with source debugging turned on
setlocal
cd /d %~dp0
if exist compilesettings.bat goto compilesettingsfound
:compilesettingserror
echo compilesettings.bat is missing or incomplete. It needs to be created
echo with the following line, adjusted for your system:
echo.
echo set BCCROOT=C:\BCC102
goto failed2
:compilesettingsfound
set BCCROOT=
call .\compilesettings.bat
if "%BCCROOT%"=="" goto compilesettingserror
rem -------------------------------------------------------------------------
echo - Compiling ISLzmaDec.c
"%BCCROOT%\bin\bcc32c.exe" -c -O2 -v ISLzmaDec.c
if errorlevel 1 goto failed
echo Success!
goto exit
:failed
echo *** FAILED ***
:failed2
exit /b 1
:exit