-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremake5.lua
61 lines (46 loc) · 1.54 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
-- TODO:bazel remove Solution.Projects Infos:
Solution.Projects["StreamFormat"].PlatformDefineName = "STREAMFORMAT"
Solution.Projects["StreamFormat"].Type = "StaticLib"
Solution.Projects["StreamFormat"].IncludeDirs = {
"%{Solution.Projects.StreamFormat.Path}/src/"
}
project "StreamFormat"
kind (Solution.Projects["StreamFormat"].Type)
language "C++"
cppdialect "C++20"
Solution.HighWarnings()
targetdir (Solution.Path.ProjectTargetDirectory)
objdir (Solution.Path.ProjectObjectDirectory)
files {
"src/**.h",
"src/**.inl",
"src/**.cpp",
}
Solution.Project("StreamFormat")
defines {
"STREAMFORMAT_BASE_LOGGER_NAME=\"%{Solution.Name}\""
}
if (StreamFormatTestsEnable)
then
Solution.AddProject("StreamFormatTests", Solution.Projects["StreamFormat"].Path)
Solution.Projects["StreamFormatTests"].ProjectDependencies = {
"StreamFormat"
}
StreamFormatTestsLaunch = {}
StreamFormatTestsLaunch.Project = "StreamFormatTests"
Solution.Launch["StreamFormatTests"] = StreamFormatTestsLaunch
project "StreamFormatTests"
kind (Solution.Projects["StreamFormatTests"].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("StreamFormatTests")
end