mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:36:40 +08:00
2f6176ce98
* [freerdp] Update, cleanup * Add freerdp feature test port * Update baseline * [freerdp] ffmpeg unsupported on windows * libusb availability limitations * [freerdp] Update supported platforms * [freerdp] Update supported platforms * [freerdp] Use ffmpeg link libraries * [freerdp] Fix install destinations * [freerdp] Fix tools * [freerdp] Fix osx * [freerdp] Fix patch * [freerdp] Keep duplicate link libs * [freerdp] Mac client needs Xcode * [freerdp] Fix wfreerdp-server exe lib name * [freerdp] Fix client-mac * Fix patch * CI * Fix patch * Fix patch * Set PDB_NAME for server exe * Trim patch * Test urbdrc on windows * [libusb] Fix pc file for windows * [freerdp] Add missing find_dependency() * [freerdp] Export interface include directories
22 lines
1.0 KiB
CMake
22 lines
1.0 KiB
CMake
find_package(PkgConfig REQUIRED)
|
|
if(CHANNEL_URBDRC)
|
|
pkg_check_modules(vcpkg_libusb REQUIRED libusb-1.0)
|
|
set(LIBUSB_1_INCLUDE_DIR "${vcpkg_libusb_INCLUDE_DIRS}")
|
|
set(LIBUSB_1_LIBRARY "${vcpkg_libusb_LINK_LIBRARIES}")
|
|
string(REPLACE "-Wl,-framework," "-framework " libusb_frameworks "${vcpkg_libusb_LDFLAGS}")
|
|
list(FILTER libusb_frameworks INCLUDE REGEX "^-framework ")
|
|
list(APPEND LIBUSB_1_LIBRARY ${libusb_frameworks})
|
|
endif()
|
|
if(WITH_FFMPEG)
|
|
# Exact pkg_check_modules signature as in project
|
|
pkg_check_modules(AVCODEC libavcodec)
|
|
set(AVCODEC_LIBRARY "${AVCODEC_LINK_LIBRARIES}")
|
|
pkg_check_modules(AVUTIL libavutil)
|
|
set(AVUTIL_LIBRARY "${AVUTIL_LINK_LIBRARIES}")
|
|
string(REPLACE "-Wl,-framework," "-framework " avutil_frameworks "${AVUTIL_LDFLAGS}")
|
|
list(FILTER avutil_frameworks INCLUDE REGEX "^-framework ")
|
|
list(APPEND AVUTIL_LIBRARY ${avutil_frameworks})
|
|
pkg_check_modules(SWRESAMPLE libswresample)
|
|
set(SWRESAMPLE_LIBRARY "${SWRESAMPLE_LINK_LIBRARIES}")
|
|
endif()
|