-
Notifications
You must be signed in to change notification settings - Fork 2
/
make-test.cmd
39 lines (31 loc) · 1.3 KB
/
make-test.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
set CompilerDirectory=%ProgramFiles%\FreeBASIC
set MainFile=test\EXE\EntryPoint.bas
set Classes=
set Modules=test\EXE\ConsoleMain.bas Modules\Guids.bas
set Resources=
set OutputFile=test\EXE\test.exe
set IncludeFilesPath=-i Classes -i Interfaces -i Modules
set IncludeLibraries=-l kernel32
set ExeTypeKind=console
set MaxErrorsCount=-maxerr 1
set MinWarningLevel=-w all
set OptimizationLevel=-O 3
set VectorizationLevel=-vec 0
REM set UseThreadSafeRuntime=-mt
REM set EnableShowIncludes=-showincludes
REM set EnableVerbose=-v
REM set EnableRuntimeErrorChecking=-e
REM set EnableFunctionProfiling=-profile
if "%2"=="debug" (
set EnableDebug=debug
) else (
set EnableDebug=release
)
if "%3"=="withoutruntime" (
set WithoutRuntime=withoutruntime
set GUIDS_WITHOUT_MINGW=-d GUIDS_WITHOUT_MINGW=1
) else (
set WithoutRuntime=runtime
)
set CompilerParameters=%GUIDS_WITHOUT_MINGW% %MaxErrorsCount% %UseThreadSafeRuntime% %IncludeLibraries% %IncludeFilesPath% %OptimizationLevel% %VectorizationLevel% %MinWarningLevel% %EnableFunctionProfiling% %EnableShowIncludes% %EnableVerbose% %EnableRuntimeErrorChecking%
call translator.cmd "%MainFile% %Classes% %Modules% %Resources%" "%ExeTypeKind%" "%OutputFile%" "%CompilerDirectory%" "%CompilerParameters%" %EnableDebug% noprofile %WithoutRuntime%