diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2021-07-01 23:25:25 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-01 08:25:25 -0700 |
| commit | 9e7cb8379e1b77eae37589826b9bc3bd440033da (patch) | |
| tree | 8acf460b4f0afe241e6211d5ab1df05239c70687 /ports | |
| parent | 4a562ffa4babe150c0739778e9fb418f1d61c48e (diff) | |
| download | vcpkg-9e7cb8379e1b77eae37589826b9bc3bd440033da.tar.gz vcpkg-9e7cb8379e1b77eae37589826b9bc3bd440033da.zip | |
[libdatachannel] Fix usage (#18621)
* [libdatachannel] Fix usage
* Update version files
Diffstat (limited to 'ports')
| -rw-r--r-- | ports/libdatachannel/portfile.cmake | 10 | ||||
| -rw-r--r-- | ports/libdatachannel/vcpkg.json | 1 |
2 files changed, 10 insertions, 1 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": [ |
