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

43 lines
1021 B
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
)
cl ..\editor2.c -I ..\..\tools -DCOOK_ON_DEMAND
pushd ..\.. && call make amalgamation && popd
taskkill /im "oscedit.exe" > nul 2> nul
call ..\..\tools\tcc oscgame.c -I ..\.. -DV4K_IMPLEMENTATION -DCOOK_ON_DEMAND %*
call ..\..\tools\tcc oscsend.c -I ..\.. -DV4K_IMPLEMENTATION -DCOOK_ON_DEMAND %*
call ..\..\tools\tcc oscedit.c -I ..\.. -DV4K_IMPLEMENTATION -DCOOK_ON_DEMAND %* && start oscedit.exe
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