-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
49 lines (41 loc) · 1.09 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
-- premake5.lua
workspace "sslide"
configurations { "Debug", "Release", "Mingw" }
newaction {
trigger = "clean",
description = "clean",
execute = function ()
print("----\nCleaning")
os.rmdir("./build")
os.rmdir("Debug")
os.rmdir("Release")
os.rmdir("Mingw")
os.rmdir("obj")
os.remove("sslide.make")
os.remove("Makefile")
print("Cleaning done.\n------")
end
}
project "sslide"
kind "WindowedApp"
language "C"
targetdir "%{cfg.buildcfg}"
cdialect "c99"
files { "src/**.h", "src/**.c" }
filter "configurations:Mingw"
system "Windows"
defines { "NDEBUG" }
optimize "On"
defines { "main=SDL_main" }
links { "mingw32", "SDL2main", "comdlg32", "ole32", "shlwapi" }
filter "configurations:Debug"
defines { "DEBUG" }
buildoptions { "-fsanitize=undefined,address" }
linkoptions { "-fsanitize=undefined,address" }
symbols "On"
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter {}
buildoptions { "-Wall", "-Wall", "-Wextra", "-pedantic" }
links { "SDL2", "SDL2_ttf", "SDL2_image", "fontconfig" }