diff --git a/thirdparty/libyuv/xmake.lua b/thirdparty/libyuv/xmake.lua index 2259d7b..10a3632 100644 --- a/thirdparty/libyuv/xmake.lua +++ b/thirdparty/libyuv/xmake.lua @@ -15,13 +15,20 @@ package("libyuv") io.replace("CMakeLists.txt", "INSTALL ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin )", "", {plain = true}) import("package.tools.cmake").install(package, configs) - if package:is_plat("macosx", "linux", "android") then + if package:is_plat("linux", "android") then if package:config("shared") then os.tryrm(package:installdir("lib", "*.a")) else os.tryrm(package:installdir("lib", "*.so")) end end + if package:is_plat("macosx") then + if package:config("shared") then + os.tryrm(package:installdir("lib", "*.a")) + else + os.tryrm(package:installdir("lib", "*.dylib")) + end + end end) on_test(function (package)