Add linux server build
parent
f39def685f
commit
1a3c709c1e
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
gcc -o flight_server -O2 -Wall -Ithirdparty -Ithirdparty/enet/include -Ithirdparty/minilzo -Ithirdparty/Chipmunk2D/include -Ithirdparty/Chipmunk2D/include/chipmunk server_main.c server.c debugdraw.c gamestate.c sokol_impl.c thirdparty/minilzo/minilzo.c thirdparty/enet/*.c thirdparty/Chipmunk2D/src/*.c -lm -lpthread
|
@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Flight
|
||||
|
||||
[Service]
|
||||
ExecStart=/root/flight/flight_server
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
./build_linux_server_release.sh
|
||||
cp flight.service /etc/systemd/system/
|
||||
systemctl enable flight
|
||||
systemctl start flight
|
@ -0,0 +1,10 @@
|
||||
#include "types.h"
|
||||
|
||||
#define SOKOL_IMPL
|
||||
#include "sokol_time.h"
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
server(0);
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue