-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.cmd
More file actions
33 lines (25 loc) · 952 Bytes
/
Copy pathbuild.cmd
File metadata and controls
33 lines (25 loc) · 952 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
@echo off
if (%1)==(-gen) echo Option -gen
if (%1)==(-gen) echo Generate Ada code from resource script (dialogs, menus, ...).
if (%1)==(-gen) call rc2gw AZip.rc
if (%1)==(-gen) shift
rem Use another compiler.
rem was for "-march=i686" for MinGW 4.7.2
REM ADA_INCLUDE_PATH=
REM C:\Ada\zip-ada\zip_lib;C:\Ada\gnavi\gwindows\framework;C:\Ada\gnavi\gwindows\contrib;C:\Ada\gnavi\gnatcom\framework
set builder=gprbuild
set builder=gnatmake
set target=_MinGW
if (%1)==() set builder=gprbuild
if (%1)==() set target=_GPL
if (%1)==() echo Option for alternative compiler "%1"
del azip.exe
%builder% -P azip_gwindows -XAZip_Build_Mode=Debug%target%
copy azip.exe AZip_Debug%target%.exe
del azip.exe
%builder% -P azip_gwindows azip -XAZip_Build_Mode=Release
ren azip.exe AZip.exe
copy AZip.exe "AZip (ver) win32%target%.exe"
rem upx --ultra-brute "AZip (ver) win32.exe"
copy "AZip (ver) win32%target%.exe" AZip.exe
pause