Build/Boilerplate/preprocessors.lua
Reece 615bcb53b9 Initial commit
Publish a collection of boilerplate and an additional json parser.
This meta build chain as-is should replace a lot of the premake5.lua in the AuroraEngine repo
2021-05-20 13:56:44 +01:00

16 lines
593 B
Lua

local triggerPairs = {}
triggerPairs["target-win32"] = "_WIN32_AURORA_PREPROCESSOR"
triggerPairs["target-linux"] = "_LINUX_AURORA_PREPROCESSOR"
triggerPairs["target-switch"] = "_SWITCH_AURORA_PREPROCESSOR"
triggerPairs["target-ps4"] = "_PS4_AURORA_PREPROCESSOR"
triggerPairs["target-ps5"] = "_PS5_AURORA_PREPROCESSOR"
triggerPairs["mm-restricted-platform"] = "_AURORA_MEM_STRICT"
local userPaths = userRequire("preprocessors")
if (userPaths) then
if (userPaths.add) then
userPaths.add(triggerPairs)
end
end
return require("Utils/lookupCmdArgs")(triggerPairs, true);