mirror of
https://github.com/xenia-project/xenia.git
synced 2026-07-11 01:24:34 +02:00
Don't treat warnings as errors for 3rd party projs
This commit is contained in:
+19
-12
@@ -42,7 +42,6 @@ end
|
||||
|
||||
characterset("Unicode")
|
||||
flags({
|
||||
--"ExtraWarnings", -- Sets the compiler's maximum warning level.
|
||||
"FatalWarnings", -- Treat warnings as errors.
|
||||
})
|
||||
|
||||
@@ -117,8 +116,6 @@ filter({"platforms:Linux", "kind:*App"})
|
||||
linkgroups("On")
|
||||
|
||||
filter({"platforms:Linux", "language:C++", "toolset:gcc"})
|
||||
links({
|
||||
})
|
||||
disablewarnings({
|
||||
"unused-result"
|
||||
})
|
||||
@@ -200,7 +197,7 @@ if not os.isdir("scratch") then
|
||||
os.mkdir("scratch")
|
||||
end
|
||||
|
||||
solution("xenia")
|
||||
workspace("xenia")
|
||||
uuid("931ef4b0-6170-4f7a-aaf2-0fece7632747")
|
||||
startproject("xenia-app")
|
||||
if os.istarget("android") then
|
||||
@@ -240,6 +237,24 @@ solution("xenia")
|
||||
include("third_party/volk.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/app/discord")
|
||||
include("src/xenia/apu")
|
||||
@@ -260,14 +275,6 @@ solution("xenia")
|
||||
include("src/xenia/vfs")
|
||||
|
||||
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/helper/sdl")
|
||||
include("src/xenia/hid/sdl")
|
||||
|
||||
Reference in New Issue
Block a user