81 lines
1.8 KiB
Diff
81 lines
1.8 KiB
Diff
|
diff --git a/Makefile.libretro b/Makefile.libretro
|
||
|
index 31c414be..8de62064 100644
|
||
|
--- a/Makefile.libretro
|
||
|
+++ b/Makefile.libretro
|
||
|
@@ -55,6 +55,8 @@ VERBOSE ?= 1
|
||
|
# scripts/toolchain.lua)
|
||
|
# PTR64 = 1
|
||
|
|
||
|
+USE_BGFX ?= 0
|
||
|
+
|
||
|
###########################################################################
|
||
|
#
|
||
|
# LIBRETRO PLATFORM GUESSING
|
||
|
diff --git a/scripts/genie.lua b/scripts/genie.lua
|
||
|
index 4655b3f4..495308a8 100644
|
||
|
--- a/scripts/genie.lua
|
||
|
+++ b/scripts/genie.lua
|
||
|
@@ -387,8 +387,22 @@ newoption {
|
||
|
description = "Arguments for running debug build.",
|
||
|
}
|
||
|
|
||
|
+newoption {
|
||
|
+ trigger = "USE_BGFX",
|
||
|
+ description = "Use bgfx.",
|
||
|
+ allowed = {
|
||
|
+ { "0", "Disabled" },
|
||
|
+ { "1", "Enabled" },
|
||
|
+ }
|
||
|
+}
|
||
|
+
|
||
|
dofile ("extlib.lua")
|
||
|
|
||
|
+if not _OPTIONS["USE_BGFX"] then
|
||
|
+ _OPTIONS["USE_BGFX"] = "0"
|
||
|
+end
|
||
|
+
|
||
|
+
|
||
|
if _OPTIONS["SHLIB"]=="1" then
|
||
|
LIBTYPE = "SharedLib"
|
||
|
else
|
||
|
diff --git a/scripts/src/3rdparty.lua b/scripts/src/3rdparty.lua
|
||
|
index 664898d1..d720578d 100644
|
||
|
--- a/scripts/src/3rdparty.lua
|
||
|
+++ b/scripts/src/3rdparty.lua
|
||
|
@@ -1249,7 +1249,7 @@
|
||
|
--------------------------------------------------
|
||
|
-- BGFX library objects
|
||
|
--------------------------------------------------
|
||
|
-
|
||
|
+if not _OPTIONS["use_bgfx"]=="0" then
|
||
|
project "bgfx"
|
||
|
uuid "d3e7e119-35cf-4f4f-aba0-d3bdcd1b879a"
|
||
|
kind "StaticLib"
|
||
|
@@ -1433,7 +1433,7 @@
|
||
|
"-x objective-c++",
|
||
|
}
|
||
|
end
|
||
|
-
|
||
|
+end
|
||
|
|
||
|
--------------------------------------------------
|
||
|
-- PortAudio library objects
|
||
|
diff --git a/scripts/src/main.lua b/scripts/src/main.lua
|
||
|
index 0b47e662..b19eb646 100644
|
||
|
--- a/scripts/src/main.lua 2019-05-22 00:15:58.983419982 +0200
|
||
|
+++ b/scripts/src/main.lua 2019-05-22 00:17:39.675345144 +0200
|
||
|
@@ -380,8 +380,12 @@
|
||
|
ext_lib("portmidi"),
|
||
|
}
|
||
|
end
|
||
|
+ if _OPTIONS["USE_BGFX"]~="0" then
|
||
|
+ links {
|
||
|
+ "bgfx",
|
||
|
+ }
|
||
|
+ end
|
||
|
links {
|
||
|
- "bgfx",
|
||
|
"bimg",
|
||
|
"bx",
|
||
|
"ocore_" .. _OPTIONS["osd"],
|