-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
49 lines (42 loc) · 1.19 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
workspace "puka"
architecture "x64"
configurations { "Release" }
project "puka"
kind "ConsoleApp"
language "C++"
targetdir ""
cppdialect "C++17"
targetname "puka"
includedirs {
"src/",
"ext/include",
"ext/include/sol",
"ext/include/lua",
"ext/include/task_runner",
"ext/include/yyjson"
}
files { "src/**.cpp", "ext/**.c", "ext/**.cpp" }
filter "configurations:Release"
defines { "NDEBUG" }
optimize "On"
filter "system:Windows"
targetdir ("x64/%{cfg.buildcfg}")
objdir ("x64/obj/%{cfg.buildcfg}")
links { "SDL2", "SDL2_ttf", "SDL2_image", "SDL2_mixer" }
libdirs {
"ext/libsdl2/lib"
}
postbuildcommands ("copy ext\\lib\\libsdl2\\dll\\* x64\\%{cfg.buildcfg}")
defines { "SDL_MAIN_HANDLED" }
filter "system:MacOSX"
linkoptions {"-F ext/lib/libsdl2/Frameworks"}
runpathdirs { "ext/lib/libsdl2/Frameworks"}
links {
"SDL2.framework",
"SDL2_image.framework",
"SDL2_ttf.framework",
"SDL2_mixer.framework"
}
filter "system:Linux"
links { "SDL2", "SDL2_ttf", "SDL2_image", "SDL2_mixer" }
targetname "puka"