mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 14:29:00 +08:00
7bb175eafe
* Support libavif building on UWP and ARM Remove deprecated functions Bump port version Apply suggestions from code review Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Bump version Add version all use patches * Add version * Disable deprecated functions using _CRT_SECURE_NO_WARNINGS rather than disabling 4996. Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
50 lines
1.4 KiB
CMake
50 lines
1.4 KiB
CMake
# NASM is required to build AOM
|
|
vcpkg_find_acquire_program(NASM)
|
|
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
|
vcpkg_add_to_path(${NASM_EXE_PATH})
|
|
|
|
# Perl is required to build AOM
|
|
vcpkg_find_acquire_program(PERL)
|
|
get_filename_component(PERL_PATH ${PERL} DIRECTORY)
|
|
vcpkg_add_to_path(${PERL_PATH})
|
|
|
|
vcpkg_from_git(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
URL "https://aomedia.googlesource.com/aom"
|
|
REF 6bbe6ae701d65bdf36bb72053db9b71f9739a083
|
|
TAG v3.2.0
|
|
PATCHES
|
|
aom-rename-static.diff
|
|
# Can be dropped when https://bugs.chromium.org/p/aomedia/issues/detail?id=3029 is merged into the upstream
|
|
aom-install.diff
|
|
aom-uninitialized-pointer.diff
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DENABLE_DOCS=OFF
|
|
-DENABLE_EXAMPLES=OFF
|
|
-DENABLE_TESTDATA=OFF
|
|
-DENABLE_TESTS=OFF
|
|
-DENABLE_TOOLS=OFF
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
# Move cmake configs
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
# Remove duplicate files
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
|
|
${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
vcpkg_fixup_pkgconfig()
|