|
|
@@ -6,6 +6,7 @@ package("libdatachannel")
|
|
|
add_urls("https://github.com/paullouisageneau/libdatachannel/archive/refs/tags/$(version).tar.gz",
|
|
|
"https://github.com/paullouisageneau/libdatachannel.git", {submodules = false})
|
|
|
|
|
|
+ add_versions("v0.23.2", "b9606efc5b2b173f2d22d0be3f6ba4f12af78c00ca02cde5932f3ff902980eb9")
|
|
|
add_versions("v0.23.1", "63e14d619ac4d9cc310a0c7620b80e6da88abf878f27ccc78cd099f95d47b121")
|
|
|
|
|
|
add_configs("gnutls", {description = "Use GnuTLS instead of OpenSSL", default = false, type = "boolean", readonly = true})
|
|
|
@@ -74,6 +75,11 @@ package("libdatachannel")
|
|
|
io.replace("CMakeLists.txt", "set(CMAKE_POSITION_INDEPENDENT_CODE ON)", "", {plain = true})
|
|
|
-- add -DJUICE_STATIC from config mode
|
|
|
io.replace("CMakeLists.txt", "find_package(LibJuice REQUIRED)", "find_package(LibJuice CONFIG REQUIRED)", {plain = true})
|
|
|
+ -- Error evaluating generator expression: $<TARGET_PDB_FILE:datachannel>
|
|
|
+ -- TARGET_PDB_FILE is allowed only for targets with linker created artifacts.
|
|
|
+ if package:is_plat("windows") then
|
|
|
+ io.replace("CMakeLists.txt", "if(MSVC)\n\tinstall", "if(0)\ninstall", {plain = true})
|
|
|
+ end
|
|
|
|
|
|
local configs = {
|
|
|
"-DNO_EXAMPLES=ON",
|