mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-10-02 03:00:23 +03:00
Build fix for macOS + premake4 + brew sdl2
This commit is contained in:
+6
-1
@@ -934,7 +934,7 @@ function set_ios_config()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function backend_is( name, libname )
|
function initialize_backends()
|
||||||
if not _OPTIONS["with-backend"] then
|
if not _OPTIONS["with-backend"] then
|
||||||
_OPTIONS["with-backend"] = "SDL2"
|
_OPTIONS["with-backend"] = "SDL2"
|
||||||
end
|
end
|
||||||
@@ -942,6 +942,10 @@ function backend_is( name, libname )
|
|||||||
if next(backends) == nil then
|
if next(backends) == nil then
|
||||||
backends = string.explode(_OPTIONS["with-backend"],",")
|
backends = string.explode(_OPTIONS["with-backend"],",")
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
function backend_is( name, libname )
|
||||||
|
initialize_backends()
|
||||||
|
|
||||||
local backend_sel = table.contains( backends, name )
|
local backend_sel = table.contains( backends, name )
|
||||||
|
|
||||||
@@ -1170,6 +1174,7 @@ solution "eepp"
|
|||||||
|
|
||||||
generate_os_links()
|
generate_os_links()
|
||||||
parse_args()
|
parse_args()
|
||||||
|
initialize_backends()
|
||||||
|
|
||||||
if os.is_real("macosx") then
|
if os.is_real("macosx") then
|
||||||
defines { "GL_SILENCE_DEPRECATION" }
|
defines { "GL_SILENCE_DEPRECATION" }
|
||||||
|
|||||||
Reference in New Issue
Block a user