This commit is contained in:
Reece Wilson 2021-05-21 22:02:28 +01:00
parent 9f9cc90b72
commit 1a1117fc04
2 changed files with 8 additions and 7 deletions

View File

@ -1,9 +1,11 @@
local defintions = require("preprocessors")
local projectCopyCmds = require("buildPostProcess")
local kPathPrefix = "[BUILD_PATH]"
local addDest = function(name, projectType, dest)
if (dest:starts("[BUILD_PATH]")) then
local append = dest:sub(13)
if (dest:starts(kPathPrefix)) then
local append = dest:sub(#kPathPrefix + 1)
filter "configurations:Debug"
projectCopyCmds(name, projectType, "debug", getroot() .. "/Build_Develop/" .. append)
@ -30,8 +32,8 @@ local addDest = function(name, projectType, dest)
end
local setBestDebugDir = function(dest)
if (not dest or dest:starts("[BUILD_PATH]")) then
local append = dest and dest:sub(#"[BUILD_PATH]" + 1)
if (not dest or dest:starts(kPathPrefix)) then
local append = dest and dest:sub(#kPathPrefix + 1)
if (not append) then append = "" end
filter "configurations:Debug"
@ -58,7 +60,7 @@ local boilerplateProject = function(name, projectType, src, inc, dest, root)
project(name)
targetname(name)
language("C++")
language("C++") -- C and MASM compiler overloads are still available to files requiring different compilers
cppdialect("C++20")
kind(projectType)

View File

@ -67,7 +67,6 @@ workspace "Aurora Project"
if ((not isWin) or (_G.forceClang)) then
usingClang = true
_G.usingClang = true
toolset "clang"
buildoptions {"-fms-extensions"}
@ -96,7 +95,7 @@ workspace "Aurora Project"
disablewarnings "4251" -- MSVC's hurrdurr abis will break if you dynamically link classes
-- counter: fuck off, we have full control of the build process, and we only link against
-- dynamic c/stl runtimes. which brainlet thought this was a good idea?
-- even microsofts docs doesn't state what is guaranteed to be safe. raii works so who cares
-- even microsofts docs doesn't state what is guaranteed to be safe. rtti works so who cares
disablewarnings "4244" -- conversion from 'double' to 'float', possible loss of data
-- this warning is extremely important; however, we're making a game engine.