-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake.cmd
48 lines (40 loc) · 1.78 KB
/
make.cmd
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
set CompilerDirectory=%ProgramFiles%\FreeBASIC
set MainFile=Modules\EntryPoint.bas
set Classes=
set Modules=Modules\WinMain.bas Modules\Cards.bas Modules\DisplayError.bas Modules\MainForm.bas Modules\MainFormWndProc.bas Modules\NetworkParamDialogProc.bas Modules\PlayerCard.bas Modules\Registry.bas Modules\StatisticsDialogProc.bas
set Resources=Resources.RC
set OutputFile=Nine.exe
set IncludeFilesPath=-i Classes -i Interfaces -i Modules -i Headers
set IncludeLibraries=-l cards
set ExeTypeKind=gui
set MaxErrorsCount=-maxerr 1
set MinWarningLevel=-w all
REM set UseThreadSafeRuntime=-mt
REM set EnableShowIncludes=-showincludes
REM set EnableVerbose=-v
REM set EnableRuntimeErrorChecking=-e
REM set EnableFunctionProfiling=-profile
if "%1"=="service" (
set SERVICE_DEFINED=-d WINDOWS_SERVICE
) else (
set SERVICE_DEFINED=
set PERFORMANCE_TESTING_DEFINED=-d PERFORMANCE_TESTING
)
if "%2"=="debug" (
set EnableDebug=debug
set OptimizationLevel=-O 0
set VectorizationLevel=-vec 0
) else (
set EnableDebug=release
set OptimizationLevel=-O 3
set VectorizationLevel=-vec 0
)
if "%3"=="withoutruntime" (
set WithoutRuntime=withoutruntime
set GUIDS_WITHOUT_MINGW=-d GUIDS_WITHOUT_MINGW=1
) else (
set WithoutRuntime=runtime
set GUIDS_WITHOUT_MINGW=
)
set CompilerParameters=%SERVICE_DEFINED% %PERFORMANCE_TESTING_DEFINED% %GUIDS_WITHOUT_MINGW% %MaxErrorsCount% %UseThreadSafeRuntime% %MinWarningLevel% %EnableFunctionProfiling% %EnableShowIncludes% %EnableVerbose% %EnableRuntimeErrorChecking% %IncludeFilesPath% %IncludeLibraries% %OptimizationLevel% %VectorizationLevel%
call translator.cmd "%MainFile% %Classes% %Modules% %Resources%" "%ExeTypeKind%" "%OutputFile%" "%CompilerDirectory%" "%CompilerParameters%" %EnableDebug% noprofile %WithoutRuntime%