Auto-update srtp to v2.6 (#3430)

* Update srtp to v2.6

* disable warning as error

* disable windows android

---------

Co-authored-by: star-hengxing <hengxings783@gmail.com>
pull/3467/head
ruki 1 year ago committed by GitHub
parent c342a3c4c8
commit eb6a064343
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 15
      packages/s/srtp/xmake.lua

@ -1,10 +1,11 @@
package("srtp")
set_homepage("https://github.com/cisco/libsrtp")
set_description("Library for SRTP (Secure Realtime Transport Protocol)")
add_urls("https://github.com/cisco/libsrtp/archive/refs/tags/$(version).tar.gz",
"https://github.com/cisco/libsrtp.git")
add_versions("v2.6", "f1886f72eff1d8aa82ada40b2fc3d342a3ecaf0f8988cb63d4af234fccf2253d")
add_versions("v2.5.0", "8a43ef8e9ae2b665292591af62aa1a4ae41e468b6d98d8258f91478735da4e09")
add_configs("openssl", {description = "Enable OpenSSL crypto engine", default = false, type = "boolean"})
@ -14,8 +15,16 @@ package("srtp")
add_deps("cmake")
add_deps("openssl")
on_install("windows", "linux", "macosx", "android", "cross", "bsd", "mingw", function (package)
local configs = {"-DLIBSRTP_TEST_APPS=OFF", "-DTEST_APPS=OFF", "-DBUILD_WITH_WARNINGS=OFF"}
on_install("windows", "linux", "macosx", "android@linux,macosx", "cross", "bsd", "mingw", function (package)
local configs =
{
"-DLIBSRTP_TEST_APPS=OFF",
"-DTEST_APPS=OFF",
"-DBUILD_WITH_WARNINGS=OFF",
"-DENABLE_WARNINGS=OFF",
"-DENABLE_WARNINGS_AS_ERRORS=OFF",
}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
for name, enabled in pairs(package:configs()) do

Loading…
Cancel
Save