-
Notifications
You must be signed in to change notification settings - Fork 9
/
premake5.lua
142 lines (121 loc) · 3.7 KB
/
premake5.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
workspace("kit")
targetdir("bin")
configurations {"Debug", "Release"}
defines {
"GLM_FORCE_CTOR_INIT",
"GLM_FORCE_RADIANS",
"GLM_ENABLE_EXPERIMENTAL",
"DO_NOT_USE_WMAIN",
"NOMINMAX"
}
-- Debug Config
configuration "Debug"
defines { "DEBUG" }
symbols "On"
linkoptions { }
configuration "linux"
links {
"z",
"bfd",
"iberty"
}
-- Release Config
configuration "Release"
defines { "NDEBUG" }
optimize "speed"
targetname("kit_dist")
-- gmake Config
configuration "gmake"
buildoptions { "-std=c++11" }
-- buildoptions { "-std=c++11", "-pedantic", "-Wall", "-Wextra", '-v', '-fsyntax-only'}
links {
"pthread",
"SDL2",
"boost_system",
"boost_filesystem",
"boost_coroutine",
"boost_python",
"boost_regex",
"boost_chrono",
"jsoncpp",
}
includedirs {
"/usr/local/include/",
"/usr/include/rapidxml/",
"/usr/include/raknet/DependentExtensions"
}
libdirs {
"/usr/local/lib"
}
buildoptions {
"`python2-config --includes`",
"`pkg-config --cflags cairomm-1.0 pangomm-1.4`"
}
linkoptions {
"`python2-config --libs`",
"`pkg-config --libs cairomm-1.0 pangomm-1.4`"
}
configuration "macosx"
links {
"boost_thread-mt",
}
--buildoptions { "-U__STRICT_ANSI__", "-stdlib=libc++" }
--linkoptions { "-stdlib=libc++" }
configuration "linux"
links {
--"GL",
"boost_thread",
}
configuration "windows"
toolset "v140"
flags { "MultiProcessorCompile" }
links {
"ws2_32",
"SDL2",
"boost_system-vc140-mt-1_61",
"boost_thread-vc140-mt-1_61",
"boost_python-vc140-mt-1_61",
"boost_coroutine-vc140-mt-1_61",
"boost_regex-vc140-mt-1_61",
"lib_json",
}
includedirs {
"c:/local/boost_1_61_0",
"c:/msvc/include",
}
configuration { "windows", "Debug" }
libdirs {
"c:/msvc/lib32/debug"
}
configuration { "windows" }
libdirs {
"c:/msvc/lib32",
"c:/local/boost_1_61_0/lib32-msvc-14.0",
}
-- buildoptions {
-- "/MP",
-- "/Gm-",
-- }
configuration { "windows", "Debug" }
links {
"libboost_filesystem-vc140-mt-gd-1_61",
}
configuration {}
configuration { "windows", "Release" }
links {
"libboost_filesystem-vc140-mt-1_61",
}
project "kit"
kind "ConsoleApp"
language "C++"
-- Project Files
files {
"tests/**",
"kit/**"
}
-- Exluding Files
excludes {
}
includedirs {
"lib/local_shared_ptr",
}