Don't treat warnings as errors for 3rd party projs

This commit is contained in:
Joel Linn 2021-05-04 00:36:39 +02:00 committed by Rick Gibbed
parent 4f020e32c8
commit 5c97a0ad06
4 changed files with 19 additions and 34 deletions

View File

@ -42,7 +42,6 @@ end
characterset("Unicode") characterset("Unicode")
flags({ flags({
--"ExtraWarnings", -- Sets the compiler's maximum warning level.
"FatalWarnings", -- Treat warnings as errors. "FatalWarnings", -- Treat warnings as errors.
}) })
@ -117,8 +116,6 @@ filter({"platforms:Linux", "kind:*App"})
linkgroups("On") linkgroups("On")
filter({"platforms:Linux", "language:C++", "toolset:gcc"}) filter({"platforms:Linux", "language:C++", "toolset:gcc"})
links({
})
disablewarnings({ disablewarnings({
"unused-result" "unused-result"
}) })
@ -200,7 +197,7 @@ if not os.isdir("scratch") then
os.mkdir("scratch") os.mkdir("scratch")
end end
solution("xenia") workspace("xenia")
uuid("931ef4b0-6170-4f7a-aaf2-0fece7632747") uuid("931ef4b0-6170-4f7a-aaf2-0fece7632747")
startproject("xenia-app") startproject("xenia-app")
if os.istarget("android") then if os.istarget("android") then
@ -240,6 +237,24 @@ solution("xenia")
include("third_party/volk.lua") include("third_party/volk.lua")
include("third_party/xxhash.lua") include("third_party/xxhash.lua")
if not os.istarget("android") then
-- SDL2 requires sdl2-config, and as of November 2020 isn't high-quality on
-- Android yet, most importantly in game controllers - the keycode and axis
-- enums are being ruined during conversion to SDL2 enums resulting in only
-- one controller (Nvidia Shield) being supported, digital triggers are also
-- not supported; lifecycle management (especially surface loss) is also
-- complicated.
include("third_party/SDL2.lua")
end
-- Disable treating warnings as fatal errors for all third party projects:
for _, prj in ipairs(premake.api.scope.current.solution.projects) do
project(prj.name)
removeflags({
"FatalWarnings",
})
end
include("src/xenia") include("src/xenia")
include("src/xenia/app/discord") include("src/xenia/app/discord")
include("src/xenia/apu") include("src/xenia/apu")
@ -260,14 +275,6 @@ solution("xenia")
include("src/xenia/vfs") include("src/xenia/vfs")
if not os.istarget("android") then if not os.istarget("android") then
-- SDL2 requires sdl2-config, and as of November 2020 isn't high-quality on
-- Android yet, most importantly in game controllers - the keycode and axis
-- enums are being ruined during conversion to SDL2 enums resulting in only
-- one controller (Nvidia Shield) being supported, digital triggers are also
-- not supported; lifecycle management (especially surface loss) is also
-- complicated.
include("third_party/SDL2.lua")
include("src/xenia/apu/sdl") include("src/xenia/apu/sdl")
include("src/xenia/helper/sdl") include("src/xenia/helper/sdl")
include("src/xenia/hid/sdl") include("src/xenia/hid/sdl")

View File

@ -3,8 +3,6 @@ project("capstone")
uuid("b3a89f7e-bb02-4945-ae75-219caed6afa2") uuid("b3a89f7e-bb02-4945-ae75-219caed6afa2")
kind("StaticLib") kind("StaticLib")
language("C") language("C")
links({
})
defines({ defines({
"CAPSTONE_X86_ATT_DISABLE", "CAPSTONE_X86_ATT_DISABLE",
"CAPSTONE_DIET_NO", "CAPSTONE_DIET_NO",
@ -43,13 +41,3 @@ project("capstone")
"capstone/**.c", "capstone/**.c",
"capstone/arch/X86/**.c", "capstone/arch/X86/**.c",
}) })
filter("platforms:Linux")
-- Capstone code is... not fantastic.
buildoptions({
"-Wno-error=write-strings",
"-Wno-write-string",
"-Wno-deprecated",
"-w",
})
filter({})

View File

@ -23,8 +23,3 @@ project("imgui")
"imgui/imstb_textedit.h", "imgui/imstb_textedit.h",
"imgui/imstb_truetype.h", "imgui/imstb_truetype.h",
}) })
filter("platforms:Windows")
buildoptions({
"/wd4312", -- Ugh.
})

View File

@ -69,8 +69,3 @@ project("spirv-tools")
"spirv-tools/source/util/bitutils.h", "spirv-tools/source/util/bitutils.h",
"spirv-tools/source/util/hex_float.h", "spirv-tools/source/util/hex_float.h",
}) })
filter("platforms:Windows")
buildoptions({
"/wd4800", -- Forcing value to bool 'true' or 'false'
"/wd4996", -- Call to 'std::equal' with parameters that may be unsafe
})