-
Notifications
You must be signed in to change notification settings - Fork 0
/
premake5.lua
75 lines (57 loc) · 1.72 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
Solution.Projects["LittleECS"].PlatformDefineName = "LECS"
Solution.Projects["LittleECS"].Type = "StaticLib"
Solution.Projects["LittleECS"].HeaderOnly = true
Solution.Projects["LittleECS"].IncludeDirs = {
"%{Solution.Projects.LittleECS.Path}/src/",
"%{Solution.Projects.LittleECS.Path}/src/LittleECS",
}
Solution.Projects["LittleECS"].Defines = {
"LECS_ENABLE_EACH"
}
Solution.Projects["LittleECS"].ProjectDependencies = {
"StreamFormat"
}
project "LittleECS"
kind (Solution.Projects["StreamFormat"].Type)
language "C++"
cppdialect "C++20"
Solution.HighWarnings()
targetdir (Solution.Path.ProjectTargetDirectory)
objdir (Solution.Path.ProjectObjectDirectory)
files {
"src/**.h",
"src/**.hpp",
"src/**.inl",
"src/**.cpp",
}
Solution.Project("LittleECS")
if (LittleECSTestsEnable)
then
Solution.AddProject("LittleECSTests", Solution.Projects["LittleECS"].Path)
Solution.Projects["LittleECSTests"].ProjectDependencies = {
"LittleECS"
}
LittleECSTestLaunch = {}
LittleECSTestLaunch.Project = "LittleECSTests"
Solution.Launch["LittleECSTests"] = LittleECSTestLaunch
LittleECSTestLaunchPerf = {}
LittleECSTestLaunchPerf.Project = "LittleECSTests"
LittleECSTestLaunchPerf.BuildCfg = "Release"
LittleECSTestLaunchPerf.Platform = "x64"
LittleECSTestLaunchPerf.PreLaunchTask = "RELEASEx64 build"
Solution.Launch["LittleECSTests-PerfTest"] = LittleECSTestLaunchPerf
project "LittleECSTests"
kind (Solution.Projects["LittleECSTests"].Type)
language "C++"
cppdialect "C++20"
Solution.HighWarnings()
targetdir (Solution.Path.ProjectTargetDirectory)
objdir (Solution.Path.ProjectObjectDirectory)
files {
"Tests/**.h",
"Tests/**.hpp",
"Tests/**.inl",
"Tests/**.cpp",
}
Solution.Project("LittleECSTests")
end