mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-20 12:17:50 +08:00
2017886818
- 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.
48 lines
1.3 KiB
CMake
48 lines
1.3 KiB
CMake
vcpkg_from_bitbucket(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO multicoreware/x265_git
|
|
REF "${VERSION}"
|
|
SHA512 e95e454b438114cf90e32818847afa65b54caf69442a4a39dc92f125a7ec6f99c83ec509549ced3395cd5a77305abef0ecdad38b4a359f82fb17fce6c4c7cc7a
|
|
HEAD_REF master
|
|
PATCHES
|
|
disable-install-pdb.patch
|
|
version.patch
|
|
linkage.diff
|
|
pkgconfig.diff
|
|
)
|
|
|
|
set(ASSEMBLY_OPTIONS "-DENABLE_ASSEMBLY=OFF")
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_find_acquire_program(NASM)
|
|
set(ASSEMBLY_OPTIONS "-DENABLE_ASSEMBLY=ON" "-DNASM_EXECUTABLE=${NASM}")
|
|
endif()
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" ENABLE_SHARED)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/source"
|
|
OPTIONS
|
|
${ASSEMBLY_OPTIONS}
|
|
-DENABLE_SHARED=${ENABLE_SHARED}
|
|
-DENABLE_LIBNUMA=OFF
|
|
"-DVERSION=${VERSION}"
|
|
OPTIONS_DEBUG
|
|
-DENABLE_CLI=OFF
|
|
MAYBE_UNUSED_VARIABLES
|
|
ENABLE_LIBNUMA
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_tools(TOOL_NAMES x265 AUTO_CLEAN)
|
|
|
|
if(VCPKG_TARGET_IS_WINDOWS AND VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/x265.h" "#ifdef X265_API_IMPORTS" "#if 1")
|
|
endif()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|