-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added premake solution to more easily pick up where we left off and modify properties Fix some warnings and non-standard usages
- Loading branch information
Showing
11 changed files
with
142 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# User files | ||
*.suo | ||
*.user | ||
*.sln.docstates | ||
|
||
# Build folders | ||
|
||
workspace/ | ||
|
||
# Visual Studio Intermediate files | ||
*.opendb | ||
*.db | ||
|
||
# Temporary | ||
*.tmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
@echo off | ||
start /B /W premake/win/premake5 --file=ddspp.lua vs2010 | ||
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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", | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.