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

View File

@ -67,7 +67,6 @@ workspace "Aurora Project"
if ((not isWin) or (_G.forceClang)) then if ((not isWin) or (_G.forceClang)) then
usingClang = true usingClang = true
_G.usingClang = true
toolset "clang" toolset "clang"
buildoptions {"-fms-extensions"} buildoptions {"-fms-extensions"}
@ -96,7 +95,7 @@ workspace "Aurora Project"
disablewarnings "4251" -- MSVC's hurrdurr abis will break if you dynamically link classes 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 -- 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? -- 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 disablewarnings "4244" -- conversion from 'double' to 'float', possible loss of data
-- this warning is extremely important; however, we're making a game engine. -- this warning is extremely important; however, we're making a game engine.