-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject_Lib.lua
46 lines (35 loc) · 1.02 KB
/
project_Lib.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
-- Library
-------------------------------------------
project "Ilargia_Core"
local ProjectRoot = os.getcwd()
if _OPTIONS["buildmuon"] then
dependson { "Muon_Core" }
end
dependson { "gl3w" }
language "C++"
targetname "Ilargia"
targetdir (SolutionRoot.."/bin/lib")
if not os.is("windows") then
linkoptions {"-ldl"}
end
-- Core Engine files
files {
ProjectRoot.."/src/Ilargia/*",
ProjectRoot.."/include/Ilargia/*",
}
-- Engine files
for _,folder in pairs({ "Core", "Component", "Manager", "System", "System/TinyXML2", "Type" }) do
files {
ProjectRoot.."/src/Ilargia/"..folder.."/*",
ProjectRoot.."/include/Ilargia/"..folder.."/*",
}
end
defines { "ILARGIA_EXPORTS" }
links { "Muon_Core" }
filter "*DLL"
if os.is("windows") then
postbuildcommands { string.gsub("copy "..SolutionRoot.."/bin/lib/Ilargia*.dll "..SolutionRoot.."/bin/", "/", "\\") }
else
postbuildcommands { "find "..SolutionRoot.."/bin/lib/ -name libIlargia*.so -exec cp {} "..SolutionRoot.."/bin/ \\;" }
end
filter {}