-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathddspp.lua
95 lines (71 loc) · 1.7 KB
/
ddspp.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
Workspace = "workspace/".._ACTION
-- Compilers
-- x86/x64
PlatformMSVC64 = "MSVC 64"
PlatformOSX64 = "OSX 64"
PlatformLinux64_GCC = "Linux64_GCC"
PlatformLinux64_Clang = "Linux64_Clang"
isMacBuild = _ACTION == "xcode4"
isLinuxBuild = _ACTION == "gmake2"
isWindowsBuild = not isMacBuild and not isLinuxBuild
supportsARMBuild = _ACTION == "vs2017" or _ACTION == "vs2019" or _ACTION == "vs2022"
workspace("dds++")
configurations { "Debug", "Release" }
location (Workspace)
flags
{
"multiprocessorcompile", -- /MP
}
includedirs
{
includeDir,
}
cppdialect("c++11")
if(isMacBuild) then
platforms { PlatformOSX64 }
toolset("clang")
architecture("x64")
buildoptions { "-std=c++11 -Wno-unused-variable" }
linkoptions { "-stdlib=libc++" }
elseif(isLinuxBuild) then
platforms { PlatformLinux64_GCC, PlatformLinux64_Clang }
architecture("x64")
buildoptions { "-std=c++11 -Wno-unused-variable" }
filter { "platforms:"..PlatformLinux64_GCC }
toolset("gcc")
filter { "platforms:"..PlatformLinux64_Clang }
toolset("clang")
else
platforms
{
PlatformMSVC64
}
local llvmToolset;
if (_ACTION == "vs2015") then
llvmToolset = "msc-llvm-vs2014";
elseif(_ACTION == "vs2017") then
llvmToolset = "msc-llvm";
else
llvmToolset = "msc-clangcl";
end
startproject(UnitTestProject)
filter { "platforms:"..PlatformMSVC64 }
toolset("msc")
architecture("x64")
filter{}
end
filter { "configurations:Debug" }
defines { "DEBUG" }
symbols ("full")
optimize("debug")
filter { "configurations:Release" }
defines { "NDEBUG" }
inlining("auto")
optimize("speed")
project ('dds++')
kind("consoleapp")
files
{
"*.cpp",
"*.h",
}