-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpremake5.lua
More file actions
executable file
·118 lines (99 loc) · 2.42 KB
/
premake5.lua
File metadata and controls
executable file
·118 lines (99 loc) · 2.42 KB
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
workspace "sandbox"
architecture "x64"
toolset "gcc"
buildoptions "--std=c++23"
configurations {
"debug",
"release",
"dist"
}
filter "configurations:debug"
defines {"_DEBUG", "_PROFILING"}
symbols "On"
filter {"system:linux", "action:gmake"}
buildoptions {"-g"} -- For core files
filter "configurations:release"
defines {"_RELEASE"}
optimize "On"
filter "configurations:dist"
defines {"_DIST"}
optimize "On"
filter "system:macosx"
defines {"_MACOSX"}
filter "system:linux"
defines {"_LINUX"}
filter "system:windows"
defines {"_WINDOWS"}
outputdir = "%{cfg.buildcfg}/%{cfg.system}/%{cfg.architectrure}"
project "sandbox"
kind "ConsoleApp"
language "C++"
targetname "sandbox"
targetdir ("sandbox/bin/" .. outputdir)
objdir ("sandbox/bin-int/" .. outputdir)
files {
"sandbox/src/**.hpp",
"sandbox/src/**.cpp",
"sandbox/include/**.hpp",
"sandbox/include/**.cpp",
"sandbox/deps/src/**.cpp",
"sandbox/deps/src/**.c",
"sandbox/deps/include/**.h",
"sandbox/deps/include/**.hpp"
}
includedirs {
"sandbox/include",
"sandbox/deps/include",
"base/include"
--"/usr/include"
}
links {
"GL",
"glfw",
"base",
"pthread",
"dl",
}
libdirs {
"sandbox/deps/libs",
"base/bin/" .. outputdir
--"/usr/lib"
}
postbuildcommands {
"cp -r sandbox/res sandbox/bin/" .. outputdir,
"cp -r base/shaders sandbox/bin/" .. outputdir
}
project "base"
kind "StaticLib"
language "C++"
targetname "base"
targetdir ("base/bin/" .. outputdir)
objdir ("base/bin-int/" .. outputdir)
files {
"base/src/**.hpp",
"base/src/**.cpp",
"base/include/**.hpp",
"base/include/**.cpp",
"base/deps/src/**.cpp",
"base/deps/src/**.c",
"base/deps/include/**.h",
"base/deps/include/**.hpp"
}
includedirs {
"base/include",
"base/deps/include",
--"/usr/include"
}
links {
"GL",
"glfw",
"pthread",
"dl",
}
libdirs {
"base/deps/libs",
--"/usr/lib"
}
postbuildcommands {
"cp -r base/shaders base/bin/" .. outputdir,
}