12 lines
748 B
Batchfile
12 lines
748 B
Batchfile
@echo off
|
|||
|
|
call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat" >nul 2>&1
|
||
|
|
cd /d "G:\Robot_v2\DCU\DCU_APP\GD32E508_DCU_APP"
|
||
|
|
set PACKED=/D"STRUCT_PACKED_START=" /D"STRUCT_PACKED_END=" /D"MBX_STRUCT_PACKED_START=" /D"MBX_STRUCT_PACKED_END=" /D"OBJ_STRUCT_PACKED_START=" /D"OBJ_STRUCT_PACKED_END="
|
||
|
|
set INC=/I. /Icomm\ssc\inc /Icomm\ssc\port /IRTE\_Debug_GD32E508VE /I_syntaxcheck_stubs
|
||
|
|
echo === mailbox.c ===
|
||
|
|
cl /nologo /Zs /W0 /TC /std:c11 /utf-8 /Zp1 %PACKED% %INC% comm\ssc\src\mailbox.c
|
||
|
|
if errorlevel 1 (echo MAILBOX_FAIL) else (echo MAILBOX_OK)
|
||
|
|
echo === dc_app.c ===
|
||
|
|
cl /nologo /Zs /W0 /TC /std:c11 /utf-8 /Zp1 %PACKED% %INC% comm\ssc\port\dc_app.c
|
||
|
|
if errorlevel 1 (echo DC_APP_FAIL) else (echo DC_APP_OK)
|