forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[libdatachannel] Drop unused dep, fix DLL install, add test port (mic…
- Loading branch information
Showing
8 changed files
with
80 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
scripts/test_ports/vcpkg-ci-libdatachannel/cmake-project.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
diff --git a/examples/streamer/CMakeLists.txt b/examples/streamer/CMakeLists.txt | ||
index 1bdeb7c..9cf65dd 100644 | ||
--- a/examples/streamer/CMakeLists.txt | ||
+++ b/examples/streamer/CMakeLists.txt | ||
@@ -2,6 +2,15 @@ cmake_minimum_required(VERSION 3.7) | ||
if(POLICY CMP0079) | ||
cmake_policy(SET CMP0079 NEW) | ||
endif() | ||
+project(vcpkg-ci) | ||
+add_definitions(-DWIN32_LEAN_AND_MEAN) | ||
+set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
+find_package(Threads REQUIRED) | ||
+find_package(nlohmann_json CONFIG REQUIRED) | ||
+find_package(LibDataChannel CONFIG REQUIRED) | ||
+if(NOT TARGET LibDataChannel::LibDataChannel) | ||
+ add_library(LibDataChannel::LibDataChannel ALIAS LibDataChannel::LibDataChannelStatic) | ||
+endif() | ||
|
||
set(STREAMER_SOURCES | ||
main.cpp | ||
@@ -47,7 +56,7 @@ set_target_properties(streamer PROPERTIES | ||
find_package(Threads REQUIRED) | ||
target_link_libraries(streamer LibDataChannel::LibDataChannel Threads::Threads nlohmann_json::nlohmann_json) | ||
|
||
-if(MSVC) | ||
+if(0) | ||
add_custom_command(TARGET streamer POST_BUILD | ||
COMMAND ${CMAKE_COMMAND} -E copy_if_different | ||
"$<TARGET_FILE_DIR:datachannel>/datachannel.dll" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | ||
|
||
vcpkg_from_github( | ||
OUT_SOURCE_PATH SOURCE_PATH | ||
REPO paullouisageneau/libdatachannel | ||
REF v0.21.2 | ||
SHA512 fd0d66bb932e29abc01e9f1a8b16ccb79012a7e3901e2e0f882f56ab2f090260945e1556c85ad07ef897b8c70fcdd44cdeead9955a9bca7afe1dda8900c473cc | ||
HEAD_REF master | ||
PATCHES | ||
cmake-project.diff | ||
) | ||
|
||
vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}/examples/streamer") | ||
vcpkg_cmake_build() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "vcpkg-ci-libdatachannel", | ||
"version-string": "ci", | ||
"description": "Validates libdatachannel", | ||
"dependencies": [ | ||
{ | ||
"name": "libdatachannel", | ||
"features": [ | ||
"srtp", | ||
"ws" | ||
] | ||
}, | ||
"nlohmann-json", | ||
{ | ||
"name": "vcpkg-cmake", | ||
"host": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters