v4k-git-backup/tools/labs/MAKE.bat

41 lines
1.0 KiB
Batchfile
Raw Normal View History

2023-08-10 14:30:56 +00:00
@if "%1" == "tidy" (
del *.zip
del *.mem
del *.exp
del *.lib
del *.exe
del *.obj
del *.o
del *.a
del *.pdb
del *.ilk
del *.def
del *.dll
del oscedit.ini
rd /q /s .vs
exit /b
)
2023-11-19 12:07:28 +00:00
if not exist "*.zip" ..\..\tools\cook --cook-ini=..\..\cook.ini
2023-08-10 14:30:56 +00:00
taskkill /im "oscedit.exe" > nul 2> nul
2023-11-19 12:07:28 +00:00
call ..\..\tools\tcc oscgame.c -I ..\..\engine\joint -DFWK_IMPLEMENTATION -DCOOK_ON_DEMAND %*
call ..\..\tools\tcc oscsend.c -I ..\..\engine\joint -DFWK_IMPLEMENTATION -DCOOK_ON_DEMAND %*
call ..\..\tools\tcc oscedit.c -I ..\..\engine\joint -DFWK_IMPLEMENTATION -DCOOK_ON_DEMAND %* && start oscedit.exe
2023-08-10 14:30:56 +00:00
timeout 3
:: showcase UI widgets creation on demand, which are requested from this very same batch file
oscsend /player/time 5.5
oscsend /player/name "john doe"
oscsend /player/health 100
oscsend /player/is_active true
oscsend /player2/integer 123
oscsend /player2/string world
oscsend /player1/string hello
:: simulate a game running sending OSC commands to our editor
rem oscgame