From 5b99261b30c52988906048f8f0d7925de9306f0c Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 26 Nov 2020 11:24:51 +0100 Subject: [PATCH] Temporary windows build scripts. --- compile_vs.bat | 14 ++++++++++++++ compile_win.bat | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 compile_vs.bat create mode 100644 compile_win.bat diff --git a/compile_vs.bat b/compile_vs.bat new file mode 100644 index 0000000..722a6a4 --- /dev/null +++ b/compile_vs.bat @@ -0,0 +1,14 @@ +@echo off + +if not defined DevEnvDir ( + call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 +) + +rem debug: /Zi (== -g) + +cl main.cpp ./core/settings.cpp ./core/request.cpp ./core/http_server.cpp ./core/file_cache.cpp ./core/application.cpp ./rdn_application.cpp ./core/theme.cpp ^ + /Febin/game-vc.exe ^ + /EHsc /std:c++17 ^ + /Ilibs ^ + /link WSock32.lib Ws2_32.lib + diff --git a/compile_win.bat b/compile_win.bat new file mode 100644 index 0000000..bd662fc --- /dev/null +++ b/compile_win.bat @@ -0,0 +1,4 @@ +g++ -o3 -g main.cpp ./core/settings.cpp ./core/request.cpp ./core/http_server.cpp ./core/file_cache.cpp ./core/application.cpp ./rdn_application.cpp ./core/theme.cpp -o ./bin/server.exe -Ilibs -lWsock32 -lWs2_32 -lpthread -std=c++14 + + +