forked from SergeyMakeev/ecs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
genie.lua
137 lines (105 loc) · 1.77 KB
/
genie.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
-- build script
solution "ECS"
language "C++"
flags {
"NoManifest",
"ExtraWarnings",
"FloatFast",
"StaticRuntime",
}
debugdir( "." )
defines {
"_CRT_SECURE_NO_WARNINGS",
"_HAS_EXCEPTIONS=0",
"_SCL_SECURE=0",
"_SECURE_SCL=0",
}
location ( "Build/" .. _ACTION )
local config_list = {
"Debug",
"Release",
}
local platform_list = {
"x32",
"x64",
}
configurations(config_list)
platforms(platform_list)
configuration "Debug"
defines {
"_DEBUG",
"_CRTDBG_MAP_ALLOC"
}
flags {
"Symbols"
}
configuration "Release"
defines {
"NDEBUG",
}
flags {
"Symbols",
"OptimizeSpeed"
}
configuration "x32"
flags {
"EnableSSE2",
}
defines {
"WIN32",
}
configuration "x64"
defines {
"WIN32",
}
-- give each configuration/platform a unique output/target directory
for _, config in ipairs(config_list) do
for _, plat in ipairs(platform_list) do
configuration { config, plat }
objdir( "Build/" .. _ACTION .. "/tmp/" .. config .. "-" .. plat )
targetdir( "Bin/" .. _ACTION .. "/" .. config .. "-" .. plat )
end
end
project "UnitTest++"
kind "StaticLib"
defines {
"_CRT_SECURE_NO_WARNINGS"
}
files {
"ThirdParty/UnitTest++/UnitTest++/**.cpp",
"ThirdParty/UnitTest++/UnitTest++/**.h",
}
if isPosix or isOSX then
excludes { "ThirdParty/UnitTest++/UnitTest++/Win32/**.*" }
else
excludes { "ThirdParty/UnitTest++/UnitTest++/Posix/**.*" }
end
project "ECS"
kind "StaticLib"
flags {
"NoPCH",
}
files {
"ECS/Source/**.*",
"ECS/Include/**.*",
}
includedirs {
"ECS/Source/",
"ECS/Include/",
}
project "ECSTest"
kind "ConsoleApp"
flags {
"NoPCH",
}
files {
"ECS/Tests/**.*",
}
includedirs {
"ECS/Include/",
"ThirdParty/UnitTest++/UnitTest++",
}
links {
"UnitTest++",
"ECS",
}