-
Notifications
You must be signed in to change notification settings - Fork 0
/
check.bat
30 lines (26 loc) · 939 Bytes
/
check.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
REM User Configuration
REM ==================
@echo off
set HereDir=%~d0%~p0
if not defined OutputDir set OutputDir=%HereDir%\output
if not defined ObjDir set ObjDir=%OutputDir%\obj
if not defined CLExe set CLExe=cl.exe
if not defined LinkExe set LinkExe=link.exe
setlocal
if not exist "%OutputDir%" mkdir "%OutputDir%"
if not exist "%ObjDir%" mkdir "%ObjDir%"
if %errorlevel% neq 0 exit /b 1
set CLCommonFlags=-nologo -W4 -WX -Zs -wd4204
REM Actual Check
REM ============
%CLExe% %HereDir%/libs/xxxx_buf.c %CLCommonFlags%
if %errorlevel% neq 0 exit /b 1
%CLExe% %HereDir%/libs/xxxx_map.c %CLCommonFlags%
if %errorlevel% neq 0 exit /b 1
%CLExe% %HereDir%/libs/xxxx_tasks.c %CLCommonFlags%
if %errorlevel% neq 0 exit /b 1
%CLExe% %HereDir%/libs/xxxx_iobuffer.c %CLCommonFlags% -D_CRT_SECURE_NO_WARNINGS
if %errorlevel% neq 0 exit /b 1
%CLExe% %HereDir%/libs/xxxx_queue.c %CLCommonFlags% -wd4221
if %errorlevel% neq 0 exit /b 1
echo off