mirror of
https://github.com/kunkundi/crossdesk.git
synced 2025-10-26 12:15:34 +08:00
[fix] remove libyuv shared library (*.dylib) on MacOSX
This commit is contained in:
9
thirdparty/libyuv/xmake.lua
vendored
9
thirdparty/libyuv/xmake.lua
vendored
@@ -15,13 +15,20 @@ package("libyuv")
|
|||||||
io.replace("CMakeLists.txt", "INSTALL ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin )", "", {plain = true})
|
io.replace("CMakeLists.txt", "INSTALL ( PROGRAMS ${CMAKE_BINARY_DIR}/yuvconvert DESTINATION bin )", "", {plain = true})
|
||||||
import("package.tools.cmake").install(package, configs)
|
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
|
if package:config("shared") then
|
||||||
os.tryrm(package:installdir("lib", "*.a"))
|
os.tryrm(package:installdir("lib", "*.a"))
|
||||||
else
|
else
|
||||||
os.tryrm(package:installdir("lib", "*.so"))
|
os.tryrm(package:installdir("lib", "*.so"))
|
||||||
end
|
end
|
||||||
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)
|
end)
|
||||||
|
|
||||||
on_test(function (package)
|
on_test(function (package)
|
||||||
|
|||||||
Reference in New Issue
Block a user