-
Notifications
You must be signed in to change notification settings - Fork 163
/
setvars.bat
92 lines (67 loc) · 2.8 KB
/
setvars.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
@echo off
REM *****************************************************************
REM SETVARS.BAT - Windows NT/DOS version
REM *****************************************************************
REM NOTE: Do not use this batch file directly, but copy it and
REM modify it as necessary for your own use!!
REM Change OWROOT to point your Open Watcom source tree
REM Note: '=' sign in path is not allowed (build will fail).
REM
REM set OWROOT=c:\ow\ow
REM
REM If space character is used in the path then you must double quote
REM this path.
REM
REM set "OWROOT=c:\ow\o w"
REM
set OWROOT=c:\ow\ow
REM Set OWTOOLS entry to identify your toolchain used by build process
REM supported values are WATCOM VISUALC INTEL
set OWTOOLS=WATCOM
REM Build control related variables
REM ###############################
REM Set OWDOCBUILD variable to 0 to suppress documentation build
set OWDOCBUILD=1
REM Set OWNOWGML variable to 1 to not use WGML utility
REM It doesn't requires appropriate DOS emulator
REM and suppress documentation build
REM set OWNOWGML=1
REM Set OWGUINOBUILD variable to 1 to suppress tools GUI version build
REM If it is used then only tools character mode version is build
REM set OWGUINOBUILD=1
REM Set OWNOBUILD variable to list of OW projects to suppress their build
REM Example set OWNOBUILD=ide browser dlgprs
REM set OWNOBUILD=
REM Set OWDISTRBUILD variable to 1 to enable build all OW installers
set OWDISTRBUILD=0
REM Documentation related variables
REM ###############################
REM Change this to the PATH required by GhostScript for PDF creation on used host OS (optional)
REM For Windows host we use Windows CI copy of appropriate tools
if not '%OS%' == 'Windows_NT' goto csetup1
set OWGHOSTSCRIPTPATH=%OWROOT%\ci\nt386
:csetup1
if not '%OS%' == 'Windows_NT' goto csetup3
if not '%PROCESSOR_ARCHITEW6432%' == 'AMD64' if not '%PROCESSOR_ARCHITECTURE%' == 'AMD64' goto csetup3
REM Build process requires WGML utility which is available only as DOS executable.
REM On Windows platforms which don't have NTVDM or if WGML doesn't work under NTVDM
REM then DOSBOX emulator must be installed and OWDOSBOX variable must be set.
REM It is necessary for all 64-bit Windows and Windows 7 32-bit
REM Uncoment and set OWDOSBOX variable bellow to point to DOSBOX emulator executable
REM path must not include spaces
REM For Windows host we use Windows CI copy of appropriate tools
set OWDOSBOX=%OWROOT%\ci\nt386\dosbox.exe
:csetup3
REM ###############################
REM Subdirectory to be used for building OW binaries
REM default is 'binbuild'
REM set OWOBJDIR=binbuild
REM DOS4GW 1.97
set DOS4G=QUIET
REM DOS4GW 2.0x
REM set DOS4G=STARTUPBANNER:1
REM Invoke the batch file for the common environment setup
call "%OWROOT%\cmnvars.bat"
REM Change the default command prompt
if not '%OS%' == 'Windows_NT' prompt $p$g
cd "%OWROOT%"