20 lines
862 B
Lua
20 lines
862 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["target-xbox"] = "_XBOX_GENERIC_AURORA_PREPROCESSOR"
|
|
triggerPairs["target-mac"] = "_APPLE_AURORA_PREPROCESSOR"
|
|
triggerPairs["target-ios"] = "_APPLE_MOBILE_AURORA_PREPROCESSOR"
|
|
triggerPairs["target-android"] = "_ANDROID_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); |