[*] Clean up guess-platform-code.lua

This commit is contained in:
Reece Wilson 2022-03-06 18:03:56 +00:00
parent 86059983bc
commit 4bfaebea6c

View File

@ -9,67 +9,64 @@ local function feature()
auFilter(auFilterOf({notPlatforms = {"win32"}, notArchs = {"x86_64"}}))
excludeFiles "win64"
auFilter{}
auFilter(auFilterOf({notPlatforms = {"win32"}}))
excludeFiles "windows"
excludeFiles "win32"
auFilter{}
auFilter(auFilterOf({notPlatforms = {"xbox"}}))
excludeFiles "xbox"
--if (not _G["uwp"]) then
excludeFiles "uwp"
auFilter{}
auFilter(auFilterOf({notPlatforms = {"win32", "xbox"}}))
excludeFiles "nt"
auFilter{}
auFilter(auFilterOf({notPlatforms = {"android"}}))
excludeFiles "android"
auFilter{}
local isNotApple = {"mac",
"ios"}
local isNotBsd = auConcatArrays({"bsd",
"ps4",
"ps5"}, isNotApple)
auFilter{}
auFilter(auFilterOf({notPlatforms = isNotBsd}))
excludeFiles "bsd"
auFilter{}
auFilter(auFilterOf({notPlatforms = isNotApple}))
excludeFiles "apple"
excludeFiles "xnu"
auFilter{}
auFilter(auFilterOf({notPlatforms = {"mac"}}))
excludeFiles "osx"
excludeFiles "macos"
auFilter{}
local isNotLinux = {"linux",
"android"}
auFilter{}
auFilter(auFilterOf({notPlatforms = auConcatArrays(isNotBsd, isNotLinux)}))
excludeFiles "unix"
auFilter{}
auFilter(auFilterOf({notPlatforms = {"linux", "android"}}))
excludeFiles "linux"
auFilter{}
auFilter(auFilterOf({notArchs = "x86_64"}))
excludeFiles "x64"
excludeFiles "x86_64"
excludeFiles "amd64"
auFilter{}
auFilter(auFilterOf({notArchs = "x86_32"}))
excludes "**/x86/**"
excludes "**/x86/**.c"
@ -81,13 +78,12 @@ local function feature()
excludes "**/*.x86.*pp"
excludeFiles "x86_32"
excludeFiles "intel"
auFilter{}
auFilter(auFilterOf({notArchs = "arm"}))
excludeFiles ("arm", true)
excludeFiles "aarch64"
excludeFiles "aarch"
auFilter{}
excludeFiles "mips"