|
@@ -20,6 +20,8 @@ package("bgfx")
|
|
add_syslinks("GL", "pthread", "dl")
|
|
add_syslinks("GL", "pthread", "dl")
|
|
end
|
|
end
|
|
|
|
|
|
|
|
+ add_deps("genie")
|
|
|
|
+
|
|
on_load("windows", "macosx", "linux", function (package)
|
|
on_load("windows", "macosx", "linux", function (package)
|
|
local suffix = package:debug() and "Debug" or "Release"
|
|
local suffix = package:debug() and "Debug" or "Release"
|
|
for _, lib in ipairs({"bgfx", "bimg", "bx"}) do
|
|
for _, lib in ipairs({"bgfx", "bimg", "bx"}) do
|
|
@@ -30,14 +32,7 @@ package("bgfx")
|
|
on_install("windows", "macosx", "linux", function (package)
|
|
on_install("windows", "macosx", "linux", function (package)
|
|
local bxdir = package:resourcefile("bx")
|
|
local bxdir = package:resourcefile("bx")
|
|
local bimgdir = package:resourcefile("bimg")
|
|
local bimgdir = package:resourcefile("bimg")
|
|
- local genie = path.join(bxdir, "tools", "bin")
|
|
|
|
- if is_host("windows") then
|
|
|
|
- genie = path.join(genie, "windows", "genie.exe")
|
|
|
|
- elseif is_host("macosx") then
|
|
|
|
- genie = path.join(genie, "darwin", "genie")
|
|
|
|
- elseif is_host("linux") then
|
|
|
|
- genie = path.join(genie, "linux", "genie")
|
|
|
|
- end
|
|
|
|
|
|
+ local genie = is_host("windows") and "genie.exe" or "genie"
|
|
|
|
|
|
local args = {"--with-tools"}
|
|
local args = {"--with-tools"}
|
|
if package:config("shared") then
|
|
if package:config("shared") then
|
|
@@ -99,7 +94,7 @@ package("bgfx")
|
|
|
|
|
|
if package:is_plat("macosx") then
|
|
if package:is_plat("macosx") then
|
|
os.trycp(".build/" .. target .. "/bin/*.a|*example*", package:installdir("lib"))
|
|
os.trycp(".build/" .. target .. "/bin/*.a|*example*", package:installdir("lib"))
|
|
- os.trycp(".build/" .. target .. "/bin/*.so", package:installdir("lib"))
|
|
|
|
|
|
+ os.trycp(".build/" .. target .. "/bin/*.dylib", package:installdir("lib"))
|
|
os.trycp(".build/" .. target .. "/bin/*|.build/*.*", package:installdir("bin"))
|
|
os.trycp(".build/" .. target .. "/bin/*|.build/*.*", package:installdir("bin"))
|
|
elseif package:is_plat("linux") then
|
|
elseif package:is_plat("linux") then
|
|
os.trycp(".build/" .. target .. "/bin/*.a|*example*", package:installdir("lib"))
|
|
os.trycp(".build/" .. target .. "/bin/*.a|*example*", package:installdir("lib"))
|