Browse Source

Auto-update libdatachannel to v0.23.2 (#8293)

* Update libdatachannel to v0.23.2

* fix pdb install

* fix

---------

Co-authored-by: star9029 <[email protected]>
ruki 2 months ago
parent
commit
3bba076de6
1 changed files with 6 additions and 0 deletions
  1. 6 0
      packages/l/libdatachannel/xmake.lua

+ 6 - 0
packages/l/libdatachannel/xmake.lua

@@ -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",