Add extsources to libogg (#1342)

pull/1348/head
ImperatorS79 3 years ago committed by GitHub
parent 5383294ec4
commit 22e44ef3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      packages/l/libogg/xmake.lua

@ -13,6 +13,14 @@ package("libogg")
add_deps("make")
end
if is_plat("mingw") and is_subhost("msys") then
add_extsources("pacman::libogg")
elseif is_plat("linux") then
add_extsources("pacman::libogg", "apt::libogg-dev")
elseif is_plat("macosx") then
add_extsources("brew::libogg")
end
on_install("windows", "macosx", "linux", "mingw", "iphoneos", "android", "cross", function (package)
local configs = {"-DBUILD_TESTING=OFF"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))

Loading…
Cancel
Save