aboutsummaryrefslogtreecommitdiff
path: root/windows/build_tcc.bat
blob: 34ee3a5af8358fcd23c9701aee55823ee1a17fd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@echo off

set TCC=C:\tcc\tcc.exe
echo Be sure to have TinyCC installed to %TCC% (or change the TCC parameter.)

set SR=..\src\
set RD=..\redist\
set SOURCES=%SR%ootx_decoder.c %SR%poser_charlesslow.c %SR%poser_daveortho.c %SR%poser_dummy.c %SR%survive.c %SR%survive_cal.c %SR%survive_config.c %SR%survive_data.c %SR%survive_driverman.c %SR%survive_process.c %SR%survive_usb.c
set REDIST=%RD%crc32.c %RD%linmath.c %RD%puff.c %RD%jsmn.c %rd%json_helpers.c
set EXEC=..\calibrate.c %RD%WinDriver.c %RD%os_generic.c %RD%DrawFunctions.c
set CFLAGS=-DNOZLIB -DTCC -DWINDOWS -DHIDAPI -O0 -DWIN32 -g -rdynamic -I..\redist -I..\include\libsurvive -I..\src
set LDFLAGS=-lkernel32 -lgdi32 -luser32
@echo on
%TCC% -v %CFLAGS% %SOURCES% %REDIST% %EXEC% %LDFLAGS% tcc_stubs.c -o calibrate.exe

rem %SR%survive_vive.c