@@ -20,6 +20,8 @@ package("bgfx")
2020 add_syslinks (" GL" , " pthread" , " dl" )
2121 end
2222
23+ add_deps (" genie" )
24+
2325 on_load (" windows" , " macosx" , " linux" , function (package )
2426 local suffix = package :debug () and " Debug" or " Release"
2527 for _ , lib in ipairs ({" bgfx" , " bimg" , " bx" }) do
@@ -30,14 +32,7 @@ package("bgfx")
3032 on_install (" windows" , " macosx" , " linux" , function (package )
3133 local bxdir = package :resourcefile (" bx" )
3234 local bimgdir = package :resourcefile (" bimg" )
33- local genie = path.join (bxdir , " tools" , " bin" )
34- if is_host (" windows" ) then
35- genie = path.join (genie , " windows" , " genie.exe" )
36- elseif is_host (" macosx" ) then
37- genie = path.join (genie , " darwin" , " genie" )
38- elseif is_host (" linux" ) then
39- genie = path.join (genie , " linux" , " genie" )
40- end
35+ local genie = is_host (" windows" ) and " genie.exe" or " genie"
4136
4237 local args = {" --with-tools" }
4338 if package :config (" shared" ) then
@@ -99,7 +94,7 @@ package("bgfx")
9994
10095 if package :is_plat (" macosx" ) then
10196 os .trycp (" .build/" .. target .. " /bin/*.a|*example*" , package :installdir (" lib" ))
102- os .trycp (" .build/" .. target .. " /bin/*.so " , package :installdir (" lib" ))
97+ os .trycp (" .build/" .. target .. " /bin/*.dylib " , package :installdir (" lib" ))
10398 os .trycp (" .build/" .. target .. " /bin/*|.build/*.*" , package :installdir (" bin" ))
10499 elseif package :is_plat (" linux" ) then
105100 os .trycp (" .build/" .. target .. " /bin/*.a|*example*" , package :installdir (" lib" ))
0 commit comments