forked from xensik/gsc-tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
69 lines (56 loc) · 1.43 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
dependencies = { base = path.getrelative(os.getcwd(), path.getabsolute("deps")) }
projects = { base = path.getrelative(os.getcwd(), path.getabsolute("src")) }
function dependencies.load()
dir = path.join(dependencies.base, "*.lua")
deps = os.matchfiles(dir)
for i, dep in pairs(deps) do
dep = dep:gsub(".lua", "")
require(dep)
end
end
function projects.load()
dir = path.join(projects.base, "*.lua")
deps = os.matchfiles(dir)
for i, dep in pairs(deps) do
dep = dep:gsub(".lua", "")
require(dep)
end
end
dependencies.load()
projects.load()
-------------------------------------------------
workspace "gsc-tool"
location "./build"
objdir "%{wks.location}/obj/%{cfg.buildcfg}/%{prj.name}"
targetdir "%{wks.location}/bin/%{cfg.buildcfg}"
targetname "%{prj.name}"
language "C++"
cppdialect "C++17"
architecture "x86_64"
filter "action:vs*"
buildoptions "/Zc:__cplusplus"
filter{}
configurations { "debug", "release", }
symbols "On"
configuration "release"
optimize "Full"
defines { "NDEBUG", "YY_NO_UNISTD_H"}
configuration{}
configuration "debug"
optimize "Debug"
defines { "DEBUG", "_DEBUG", "YY_NO_UNISTD_H" }
configuration {}
startproject "gsc-tool"
-------------------------------------------------
group "Dependencies"
zlib:project()
group ""
tool:project()
utils:project()
IW5:project()
IW6:project()
IW7:project()
S1:project()
S2:project()
H1:project()
H2:project()