-
Notifications
You must be signed in to change notification settings - Fork 5
/
premake4.lua
46 lines (41 loc) · 1.09 KB
/
premake4.lua
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
(workspace or solution) "Open Faction"
configurations { "Debug", "Release" }
defines {
"_CRT_SECURE_NO_WARNINGS",
"_CRT_NONSTDC_NO_WARNINGS",
"_WINSOCK_DEPRECATED_NO_WARNINGS", -- deprecated functions are needed to support old platforms like WinXP
"NOMINMAX", -- use algorithm header instead of defines from Windows
"_USE_MATH_DEFINES", -- needed for M_PI
}
includedirs "include"
language "C++" -- default
if location then
location "premake-build"
end
if characterset then
characterset "MBCS"
end
configuration "gmake or codeblocks"
buildoptions "-Wno-unused-variable"
configuration "Debug"
defines { "_DEBUG", "DEBUG" }
if symbols then
symbols "On"
else
flags { "Symbols" }
end
configuration "Release"
symbols "On"
defines { "NDEBUG" }
flags { "OptimizeSize" }
configuration "linux"
defines { "LINUX" }
configuration "windows"
defines { "WIN32" }
include "vendor"
include "client"
include "server"
include "common"
include "vppmgr"
include "tools"
include "tests"