-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
39 lines (31 loc) · 908 Bytes
/
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
workspace "TLETC"
configurations {"debug", "release"}
project "tletc"
kind "ConsoleApp"
language "C++"
targetdir "bin/%{cfg.buildcfg}"
objdir "build/%{cfg.buildcfg}"
files {"src/**.h", "src/**.cpp"}
includedirs {"src/"}
links {"m", "GL", "glfw", "GLEW"}
filter "configurations:debug"
defines {"TLETC_DEBUG"}
symbols "On"
filter "configurations:release"
symbols "Off"
optimize "On"
-- REMINDER: Always add new generated files to this action
-- This is the common workaround to a known
-- limitation of premake
newaction {
trigger = "clean",
description = "Clean all generated files",
execute = function()
print("Removing makefiles")
os.remove("*.make")
os.remove("Makefile")
print("Removing output files")
os.rmdir("build")
os.rmdir("bin")
end
}