aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2021-07-01 23:25:25 +0800
committerGitHub <noreply@github.com>2021-07-01 08:25:25 -0700
commit9e7cb8379e1b77eae37589826b9bc3bd440033da (patch)
tree8acf460b4f0afe241e6211d5ab1df05239c70687
parent4a562ffa4babe150c0739778e9fb418f1d61c48e (diff)
downloadvcpkg-9e7cb8379e1b77eae37589826b9bc3bd440033da.tar.gz
vcpkg-9e7cb8379e1b77eae37589826b9bc3bd440033da.zip
[libdatachannel] Fix usage (#18621)
* [libdatachannel] Fix usage * Update version files
-rw-r--r--ports/libdatachannel/portfile.cmake10
-rw-r--r--ports/libdatachannel/vcpkg.json1
-rw-r--r--versions/baseline.json2
-rw-r--r--versions/l-/libdatachannel.json5
4 files changed, 16 insertions, 2 deletions
diff --git a/ports/libdatachannel/portfile.cmake b/ports/libdatachannel/portfile.cmake
index 563224524..4104d890a 100644
--- a/ports/libdatachannel/portfile.cmake
+++ b/ports/libdatachannel/portfile.cmake
@@ -34,4 +34,12 @@ file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_fixup_cmake_targets(CONFIG_PATH share/cmake/libdatachannel)
vcpkg_fixup_pkgconfig()
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+file(READ ${CURRENT_PACKAGES_DIR}/share/${PORT}/libdatachannel-config.cmake DATACHANNEL_CONFIG)
+file(WRITE ${CURRENT_PACKAGES_DIR}/share/${PORT}/libdatachannel-config.cmake "
+include(CMakeFindDependencyMacro)
+find_dependency(Threads)
+find_dependency(OpenSSL)
+find_dependency(libjuice)
+${DATACHANNEL_CONFIG}")
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) \ No newline at end of file
diff --git a/ports/libdatachannel/vcpkg.json b/ports/libdatachannel/vcpkg.json
index 7ba32db68..903b99403 100644
--- a/ports/libdatachannel/vcpkg.json
+++ b/ports/libdatachannel/vcpkg.json
@@ -1,6 +1,7 @@
{
"name": "libdatachannel",
"version-semver": "0.12.2",
+ "port-version": 1,
"description": "libdatachannel is a standalone implementation of WebRTC Data Channels, WebRTC Media Transport, and WebSockets in C++17 with C bindings for POSIX platforms (including GNU/Linux, Android, and Apple macOS) and Microsoft Windows.",
"homepage": "https://github.com/paullouisageneau/libdatachannel",
"dependencies": [
diff --git a/versions/baseline.json b/versions/baseline.json
index b775b0978..5a7a9e997 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -3078,7 +3078,7 @@
},
"libdatachannel": {
"baseline": "0.12.2",
- "port-version": 0
+ "port-version": 1
},
"libdatrie": {
"baseline": "0.2.10-3",
diff --git a/versions/l-/libdatachannel.json b/versions/l-/libdatachannel.json
index 2b289cd5d..ea8a70416 100644
--- a/versions/l-/libdatachannel.json
+++ b/versions/l-/libdatachannel.json
@@ -1,6 +1,11 @@
{
"versions": [
{
+ "git-tree": "a13526e9cfc5bfca3aa00e95afa184b498890f69",
+ "version-semver": "0.12.2",
+ "port-version": 1
+ },
+ {
"git-tree": "dd3107dd99419236f97e299ce4b61c2379a08f55",
"version-semver": "0.12.2",
"port-version": 0