Repository navigation
Expand file tree
/
Copy pathpremake5.lua
More file actions
94 lines (84 loc) · 2.33 KB
/
Copy pathpremake5.lua
File metadata and controls
94 lines (84 loc) · 2.33 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
local lemonade = dofile("lemonade.lua")
local unity = lemonade.unity
workspace "Lemonade"
configurations { "Debug", "Release" }
architecture "x64"
startproject "Engine"
lemonade.engine { name = "Engine", game = "Sandbox", title = "Lemonade" }
lemonade.game { name = "Sandbox", dir = "sandbox", roots = { "sandbox/sandbox.cpp" } }
project "Engine_Spec"
location "."
kind "ConsoleApp"
dpiawareness "HighPerMonitor"
language "C++"
cppdialect "C++20"
objdir ("obj/" .. outputdir)
targetdir ("build/" .. outputdir)
debugdir "."
files
{
".runsettings",
"test/**.h",
"test/**.hpp",
"test/**.cpp"
}
enableunitybuild "On"
filter "system:windows"
buildoptions{"/utf-8"}
defines { "OS_WINDOWS", "OS_NAME=\"Windows\"" }
includedirs {
"src",
"modules/common/catch2/include",
"modules/common/stb/include",
}
libdirs {
"modules/windows/catch2/lib",
}
links { "catch2main", "catch2" }
filter "system:macosx"
defines { "OS_MACOS", "OS_NAME=\"MacOS\"" }
xcodebuildsettings {
["GENERATE_INFOPLIST_FILE"] = "YES",
["MACOSX_DEPLOYMENT_TARGET"] = "12.0"
}
xcodebuildsettings {
["HEADER_SEARCH_PATHS"] = {
"$(inherited)",
"src",
"modules/common/catch2/include",
"modules/common/stb/include",
}
}
-- includedirs {
-- "src",
-- "modules/common/catch2/include",
-- }
libdirs {
"modules/macos/catch2/lib",
}
links { "catch2main", "catch2" }
filter "system:linux"
defines { "OS_LINUX", "OS_NAME=\"Linux\"" }
includedirs {
"src",
"modules/common/catch2/include",
"modules/common/stb/include",
}
libdirs {
"modules/linux/catch2/lib",
}
links { "catch2main", "catch2" }
unity.build {
replaces = { "test/**.cpp" },
roots = { "test/**.cpp" },
include_dirs = { "src" },
out = "build/spec_unity.cpp",
}
filter "configurations:Debug"
defines { "DEBUG" }
runtime "Release"
editandcontinue "Off"
symbols "Full"
filter "configurations:Release"
defines { "NDEBUG", "_RELEASE", "RELEASE" }
optimize "On"