Skip to content

Commit

Permalink
Avoid optional dependencies in zlmediakit. (microsoft#37961)
Browse files Browse the repository at this point in the history
  • Loading branch information
BillyONeal authored Apr 4, 2024
1 parent 25b12ce commit 13766fc
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ports/zlmediakit/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" static ZLMEDIAKIT_CRT_STATIC)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
openssl ENABLE_OPENSSL
openssl CMAKE_REQUIRE_FIND_PACKAGE_OpenSSL
mp4 ENABLE_MP4
mp4 ENABLE_RTPPROXY
mp4 ENABLE_HLS
sctp ENABLE_SCTP
webrtc ENABLE_WEBRTC
INVERTED_FEATURES
openssl CMAKE_DISABLE_FIND_PACKAGE_OpenSSL
)

vcpkg_cmake_configure(
Expand All @@ -67,6 +69,9 @@ vcpkg_cmake_configure(
-DUSE_SOLUTION_FOLDERS=ON
-DENABLE_TESTS=OFF
-DENABLE_MEM_DEBUG=OFF # only valid on Linux
-DCMAKE_DISABLE_FIND_PACKAGE_GIT=ON
-DCMAKE_DISABLE_FIND_PACKAGE_JEMALLOC=ON
-DCMAKE_DISABLE_FIND_PACKAGE_SDL2=ON
${FEATURE_OPTIONS}
)

Expand Down
1 change: 1 addition & 0 deletions ports/zlmediakit/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "zlmediakit",
"version-date": "2024-03-30",
"port-version": 1,
"description": "A high-performance carrier-grade streaming media service framework based on C++11.",
"homepage": "https://github.com/ZLMediaKit/ZLMediaKit",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9602,7 +9602,7 @@
},
"zlmediakit": {
"baseline": "2024-03-30",
"port-version": 0
"port-version": 1
},
"zoe": {
"baseline": "3.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/z-/zlmediakit.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f84ad2056d32e9ea7bdc07160784c2458c12e15d",
"version-date": "2024-03-30",
"port-version": 1
},
{
"git-tree": "1af9543148c012a8e58061be6e613dc28f38d0d5",
"version-date": "2024-03-30",
Expand Down

0 comments on commit 13766fc

Please sign in to comment.