Automated build tooling
parent
2dd01b1f34
commit
2cee8fc7d3
@ -1,23 +1,2 @@
|
||||
@echo off
|
||||
|
||||
@REM what all the compile flags mean: https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-by-category?view=msvc-170
|
||||
|
||||
WHERE sokol-shdc.exe
|
||||
IF %ERRORLEVEL% NEQ 0 ECHO ERROR download sokol-shdc from https://github.com/floooh/sokol-tools-bin/blob/master/bin/win32/sokol-shdc.exe and put it in this folder
|
||||
|
||||
@REM example of how to compile shaders: sokol-shdc.exe --input triangle.glsl --output triangle.gen.h --slang glsl330:hlsl5:metal_macos
|
||||
|
||||
setlocal enabledelayedexpansion enableextensions
|
||||
pushd thirdparty\Chipmunk2D\src
|
||||
set MUNKSRC=
|
||||
for %%x in (*.c) do set MUNKSRC=!MUNKSRC! thirdparty\Chipmunk2D\src\%%x
|
||||
popd
|
||||
|
||||
@REM /DENET_DEBUG=1^
|
||||
cl /MP /Zi /FS /Fd"flight.pdb" /Fe"flight"^
|
||||
/I"thirdparty" /I"thirdparty\minilzo" /I"thirdparty\enet\include" /I"thirdparty\Chipmunk2D\include\chipmunk" /I"thirdparty\Chipmunk2D\include"^
|
||||
/DSERVER_ADDRESS="\"127.0.0.1\""^
|
||||
main.c gamestate.c server.c debugdraw.c^
|
||||
thirdparty\minilzo\minilzo.c^
|
||||
thirdparty\enet\callbacks.c thirdparty\enet\compress.c thirdparty\enet\host.c thirdparty\enet\list.c thirdparty\enet\packet.c thirdparty\enet\peer.c thirdparty\enet\protocol.c thirdparty\enet\win32.c Ws2_32.lib winmm.lib^
|
||||
%MUNKSRC%
|
||||
set compileopts=/Fe"flight_debug" /Zi /FS /Fd"flight.pdb" /DSERVER_ADDRESS="\"127.0.0.1\""
|
||||
call build_msvc.bat
|
@ -0,0 +1,23 @@
|
||||
@echo off
|
||||
|
||||
@REM what all the compile flags mean: https://learn.microsoft.com/en-us/cpp/build/reference/compiler-options-listed-by-category?view=msvc-170
|
||||
|
||||
WHERE sokol-shdc.exe
|
||||
IF %ERRORLEVEL% NEQ 0 ECHO ERROR download sokol-shdc from https://github.com/floooh/sokol-tools-bin/blob/master/bin/win32/sokol-shdc.exe and put it in this folder
|
||||
|
||||
@REM example of how to compile shaders: sokol-shdc.exe --input triangle.glsl --output triangle.gen.h --slang glsl330:hlsl5:metal_macos
|
||||
|
||||
setlocal enabledelayedexpansion enableextensions
|
||||
pushd thirdparty\Chipmunk2D\src
|
||||
set MUNKSRC=
|
||||
for %%x in (*.c) do set MUNKSRC=!MUNKSRC! thirdparty\Chipmunk2D\src\%%x
|
||||
popd
|
||||
|
||||
@REM /DENET_DEBUG=1^
|
||||
cl /MP^
|
||||
%compileopts%^
|
||||
/I"thirdparty" /I"thirdparty\minilzo" /I"thirdparty\enet\include" /I"thirdparty\Chipmunk2D\include\chipmunk" /I"thirdparty\Chipmunk2D\include"^
|
||||
main.c gamestate.c server.c debugdraw.c^
|
||||
thirdparty\minilzo\minilzo.c^
|
||||
thirdparty\enet\callbacks.c thirdparty\enet\compress.c thirdparty\enet\host.c thirdparty\enet\list.c thirdparty\enet\packet.c thirdparty\enet\peer.c thirdparty\enet\protocol.c thirdparty\enet\win32.c Ws2_32.lib winmm.lib^
|
||||
%MUNKSRC%
|
@ -0,0 +1,2 @@
|
||||
set compileopts=/Fe"flight_release" /O2
|
||||
call build_msvc.bat
|
@ -0,0 +1,3 @@
|
||||
call build_release.bat
|
||||
call update_server.bat
|
||||
tar.exe -a -c -f flight-nonumber.zip flight_release.exe loaded
|
@ -0,0 +1 @@
|
||||
ssh astris "cd flight; git pull; ./linux_server_install.sh"
|
Loading…
Reference in New Issue