-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
60 lines (53 loc) · 1.64 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
---@diagnostic disable: undefined-global
workspace "Chess"
architecture "x64"
configurations { "Debug", "Release" }
OUTPUTDIR = "%{cfg.buildcfg}-%{cfg.system}-%{cfg.architecture}"
project "Chess"
location "Chess"
kind "WindowedApp"
language "C++"
cppdialect "c++20"
targetdir("bin/" .. OUTPUTDIR .. "/%{prj.name}")
objdir("bin-int/" .. OUTPUTDIR .. "/%{prj.name}")
files { "%{prj.name}/src/**.h", "%{prj.name}/src/**.cpp" }
includedirs { "vendor/SFML-2.5.1/include" }
libdirs { "vendor/SFML-2.5.1/lib" }
filter "system:windows"
staticruntime "On"
systemversion "latest"
defines { "SFML_STATIC" }
files { "%{prj.name}/resource.h", "%{prj.name}/assets/**.ico", "%{prj.name}/**.rc" }
vpaths { ['Resources/*'] = { '*.rc', '**.ico' }}
-- linkoptions "/NODEFAULTLIB:MSVCRTD"
filter "configurations:Release"
buildoptions "/MD"
defines { "NDEBUG" }
optimize "On"
links {
"opengl32",
"freetype",
"winmm",
"gdi32",
"sfml-graphics-s",
"sfml-window-s",
"sfml-system-s",
"sfml-main"
}
filter "configurations:Debug"
defines { "_DEBUG" }
buildoptions "/MDd"
linkoptions "/SUBSYSTEM:CONSOLE"
symbols "On"
links {
"opengl32",
"freetype",
"winmm",
"gdi32",
"sfml-graphics-s-d",
"sfml-window-s-d",
"sfml-system-s-d"
}
-- postbuildcommands {
-- "{COPY} source target"
-- }