-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild-NetStrike.lua
More file actions
46 lines (38 loc) · 849 Bytes
/
Build-NetStrike.lua
File metadata and controls
46 lines (38 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--premake5.lua
workspace "NetStrike"
architecture "x64"
configurations
{
"Debug-Server",
"Debug-Client",
"Release-Server",
"Release-Client"
}
startproject "Game"
resourcedir = "%{wks.location}/Resources"
defines { 'RESOURCE_DIR="' .. resourcedir .. '"' }
--Workspace-wide build options for MSVC
filter "system:windows"
filter "configurations:Debug-Server or Debug-Client"
buildoptions
{
"/EHsc",
"/Zc:preprocessor",
"/Zc:__cplusplus",
"/D_ITERATOR_DEBUG_LEVEL=2"
}
filter "configurations:Release-Server or Release-Client"
buildoptions
{
"/EHsc",
"/Zc:preprocessor",
"/Zc:__cplusplus",
"/D_ITERATOR_DEBUG_LEVEL=0"
}
filter "configurations:Debug"
linkoptions
{
"/NODEFAULTLIB:msvcrt"
}
OutputDir = "%{cfg.system}-%{cfg.architecture}/%{cfg.buildcfg}"
include "Projects/Game/Build-Game.lua"