-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathbuild.bat
More file actions
22 lines (22 loc) · 764 Bytes
/
build.bat
File metadata and controls
22 lines (22 loc) · 764 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
@echo off
set project=Concepts
where rsvars.bat /q
if %errorlevel% neq 0 (
echo Add the Embarcadero Studio bin folder to your system path.
echo e.g. "c:\Program Files (x86)\Embarcadero\Studio\19.0\bin"
) else (
call rsvars
if exist .\Bin\Win32\%project%.exe del .\Bin\Win32\%project%.*
msbuild %project%.dproj /t:make /p:config=Debug /p:platform=Win32
::msbuild %project%.dproj /t:make /p:config=Release /p:platform=Win32
if exist .\Bin\Win64\%project%.exe del .\Bin\Win64\%project%.*
msbuild %project%.dproj /t:make /p:config=Debug /p:platform=Win64
::msbuild %project%.dproj /t:make /p:config=Release /p:platform=Win64
where upx.exe /q
if %errorlevel% neq 0 (
echo upx not found
) else (
upx .\Bin\Win32\%project%.exe
)
)
pause