-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmake.cmd
50 lines (40 loc) · 1.64 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
49
50
set CompilerDirectory=%ProgramFiles%\FreeBASIC
set MainFile=Modules\EntryPoint.bas
set Classes=
set Forms=Forms\InputDataDialogProc.bas Forms\OutputDataDialogProc.bas
set Modules=Modules\CompoundInterest.bas Modules\DisplayError.bas Modules\WinMain.bas
set References=
set Resources=Resources.RC
set OutputFile=CIC.exe
set IncludeFilesPath=-i Classes -i Forms -i Headers -i Interfaces -i Modules
set IncludeLibraries=-l crypt32 -l Mswsock
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
) else (
set WithoutRuntime=runtime
)
set CompilerParameters=-d UNICODE -d WIN32_LEAN_AND_MEAN %SERVICE_DEFINED% %PERFORMANCE_TESTING_DEFINED% %MaxErrorsCount% %UseThreadSafeRuntime% %MinWarningLevel% %EnableFunctionProfiling% %EnableShowIncludes% %EnableVerbose% %EnableRuntimeErrorChecking% %IncludeFilesPath% %IncludeLibraries% %OptimizationLevel% %VectorizationLevel%
call translator.cmd "%MainFile% %Classes% %Forms% %Modules% %Resources%" "%ExeTypeKind%" "%OutputFile%" "%CompilerDirectory%" "%CompilerParameters%" %EnableDebug% noprofile %WithoutRuntime%