From 4eac29b6de0f93d3e5080280d55494daa0f02870 Mon Sep 17 00:00:00 2001 From: dijunkun Date: Fri, 16 Aug 2024 17:17:12 +0800 Subject: [PATCH] [fix] remove libyuv shared library (*.dylib) on MacOSX --- thirdparty/libyuv/xmake.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)