vcpkg/ports/x265/linkage.diff
Kai Pastor 2017886818
[alsa,fdk-aac,ffmpeg,libsrt,snappy,x265] Code cleanup, fix and use pkg-config (#39077)
- Setup and use pkg-config for ffmpeg dependencies.
https://github.com/microsoft/vcpkg/pull/38011#discussion_r1623174355.
- Export actual c++ link libraries for fdk-aac via pkg-config. (Same
pattern as lerc, geos.)
- Rectify link libraries in pkg-config  for alsa, libsrt, snappy, x265.
- Burn-in dllimport for libsrt and x265.
- Pass detected STRIP to ffmpeg. Fixes
https://github.com/microsoft/vcpkg/issues/36852.
2024-06-06 00:48:31 -07:00

19 lines
549 B
Diff

diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index d6f0e3e..11512ff 100755
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -582,9 +582,13 @@ endif()
if(SVTHEVC_FOUND)
target_link_libraries(x265-static ${SVT_HEVC_LIBRARY})
endif()
+if(ENABLE_SHARED)
+ set_target_properties(x265-static PROPERTIES EXCLUDE_FROM_ALL 1)
+else()
install(TARGETS x265-static
LIBRARY DESTINATION ${LIB_INSTALL_DIR}
ARCHIVE DESTINATION ${LIB_INSTALL_DIR})
+endif()
if(ENABLE_HDR10_PLUS)
install(TARGETS hdr10plus-static