Build/Core/Target/platform.lua
Reece cf1146839c [+] Added alt platform name stylization
[*] Fix 2x crashes and lock when importing au projects from external pipelines
2022-02-18 09:08:35 +00:00

61 lines
1.5 KiB
Lua

local platforms = {
win32 = {
defines = "_WIN32_AURORA_PREPROCESSOR",
targetLocal = true,
exts = {
SharedLib = ".dll",
WindowedApp = ".exe",
ConsoleApp = ".exe"
}
},
freebsd = {
targetLocal = true,
forceLLVMStl = true,
stylizedName = "BSD",
devChainRequiresElfStrip = true,
devChainSupportsElfStrip = true,
devChainCoreUtils = true,
elfSupportsRPath = true,
exts = {
SharedLib = ".so",
StaticLib = ".a"
}
},
linux = {
defines = "_LINUX_AURORA_PREPROCESSOR",
forceLLVMStl = true,
targetLocal = true,
devChainRequiresElfStrip = true,
devChainSupportsElfStrip = true,
devChainCoreUtils = true,
elfSupportsRPath = true,
exts = {
SharedLib = ".so",
StaticLib = ".a"
}
},
mac = {
defines = "_APPLE_AURORA_PREPROCESSOR",
targetLocal = true,
devChainCoreUtils = true,
exts = {
SharedLib = ".dynlib",
StaticLib = ".a"
}
},
ios = {
devChainCoreUtils = true,
stylizedName = "iOS",
defines = "_APPLE_MOBILE_AURORA_PREPROCESSOR"
},
android = {
defines = "_ANDROID_AURORA_PREPROCESSOR",
requiresElfStrip = true,
exts = {
SharedLib = ".so",
StaticLib = ".a"
}
}
}
auMergeTable(auFetchGlobal("Platforms"), platforms)