-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
67 lines (51 loc) · 1.54 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
require('vstudio')
workspace "HailLancher"
location ""
startproject "Launcher"
architecture "x64"
configurations {
"Debug",
"Release",
"Production"
}
platforms { "Windows", "OSX" }
defines { "symbols" }
filter { "configurations:Debug" }
defines { "DEBUG" }
symbols "On"
filter { "configurations:Release" }
defines { "NDEBUG" }
optimize "On"
filter { "configurations:Production" }
defines { "DEBUG" }
symbols "On"
optimize "On"
filter { "platforms:Windows" }
defines { "PLATFORM_WINDOWS" }
filter { "platforms:OSX" }
defines { "PLATFORM_OSX" }
dirs = {}
dirs.projectdir = os.realpath("")
dirs.outdir = os.realpath("Generated/bin")
dirs.resourcesoutdir = os.realpath("Generated/bin/resources")
dirs.resourcesindir = os.realpath("Source/Resources")
dirs.texturesoutdir = os.realpath("Generated/bin/resources/textures")
dirs.texturesindir = os.realpath("Source/Resources/Textures")
dirs.shadersoutdir = os.realpath("Generated/bin/resources/shaders")
dirs.shadersindir = os.realpath("Source/Resources/Shaders")
dirs.sourcedir = os.realpath("Source")
dirs.intdir = os.realpath("Generated/int-bin")
dirs.reflectiongenerationdir = os.realpath("Generated/int-bin/generatedCode")
dirs.libdir = os.realpath("Generated/lib")
dirs.localdir = os.realpath("Generated/local")
dirs.angelscriptdir = os.realpath("Generated/bin/Scripts")
for i,v in pairs(dirs) do
if not os.isdir(v) then
os.mkdir(v)
print ('created: ' .. v)
end
end
dirs.srcdir = os.realpath("Source")
dirs.extdir = os.realpath("External")
include ("External")
include ("Source")