-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild-test.bat
More file actions
30 lines (22 loc) · 811 Bytes
/
Copy pathbuild-test.bat
File metadata and controls
30 lines (22 loc) · 811 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
@echo off
REM IMPORTANT: `SETLOCAL EnableDelayedExpansion` enables the use of variables
REM inside "for loops".
REM NOTE: to use the variables, you should call them with `!var!` and not the
REM usual `%var%`.
REM See https://stackoverflow.com/a/13805466/14427765
SETLOCAL EnableDelayedExpansion
REM --------------------------------- Imports ----------------------------------
REM IMPORT
SET CONFIG=config.bat
CALL %CONFIG%
CALL shared-config-local-variables.bat
REM ---------------------------------- Code ------------------------------------
SET RunClArgs=^
/Fe:%TEST_PATH%\main.exe ^
%TEST_PATH%\main.c ^
%OUTPUT_LIB_PATH%\%OUTPUT_LIB_FILE_NAME%.lib
CALL %CONFIG% :RunCl "%RunClArgs%"
REM Cleanup *.obj files.
del /F *.obj
del /F shared-config-local-variables.bat >NUL 2>&1
GOTO :EOF