-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
125 lines (109 loc) · 1.76 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
configurations {
"Release",
"Debug",
}
platforms {
"x32",
"x64",
}
formats = {
clang = true,
console = true,
dot = true,
json = true,
}
flags {
"FatalWarnings",
"MultiProcessorCompile",
"NoPCH",
"Unicode",
}
defines {
-- "ARCHITECT_CLANG_PRINT_CURSORS", -- for debugging cursor traversal
}
if formats.clang then defines { "ARCHITECT_CLANG_SUPPORT" } end
if formats.console then defines { "ARCHITECT_CONSOLE_SUPPORT" } end
if formats.dot then defines { "ARCHITECT_DOT_SUPPORT" } end
if formats.json then defines { "ARCHITECT_JSON_SUPPORT" } end
filter "configurations:Debug"
defines {
"DEBUG"
}
flags {
"Symbols"
}
targetsuffix "-d"
filter "configurations:Release"
defines {
"NDEBUG"
}
optimize "On"
filter "platforms:x32"
architecture "x32"
libdirs {
"dep/lib"
}
targetdir "bin"
filter "platforms:x64"
architecture "x64"
libdirs {
"dep/lib64"
}
targetdir "bin64"
workspace "architect"
language "C++"
location "build"
project "library"
files {
"code/library/**",
"include/**",
}
includedirs {
"include",
"dep/include",
}
location "build"
kind "StaticLib"
rtti "Off"
targetname "architect"
filter { "platforms:x32" }
targetdir "lib"
filter { "platforms:x64" }
targetdir "lib64"
project "cli"
files {
"code/cli/**",
}
includedirs {
"include",
"dep/include",
}
links {
"library",
}
if formats.clang then links { "libclang" } end
location "build"
kind "ConsoleApp"
rtti "Off"
targetname "architect"
project "tests-runner"
files {
"code/tests-runner/**",
}
includedirs {
"include",
"dep/include",
}
links {
"library",
}
if formats.clang then links { "libclang" } end
location "build"
kind "ConsoleApp"
rtti "Off"
targetname "tests"
project "tests"
files {
"tests/**",
}
kind "None"