mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 08:04:39 +08:00
907e7f3251
Updates to latest release https://code.videolan.org/videolan/dav1d/-/releases/1.4.0 - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [x] SHA512s are updated for each updated download. - [ ] ~~The "supports" clause reflects platforms that may be fixed by this new version.~~ - [ ] ~~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~~ - [ ] ~~Any patches that are no longer applied are deleted from the port's directory.~~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
42 lines
1.4 KiB
CMake
42 lines
1.4 KiB
CMake
vcpkg_from_gitlab(
|
|
GITLAB_URL https://code.videolan.org
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO videolan/dav1d
|
|
REF "${VERSION}"
|
|
SHA512 7f02c1e65fb79352a159cc60346e02d5844c01d1228f860f802c553799ae0213e76ccc81ff427913e89bd3cfcf0185ea063cf3b6f7c4242faa76962ebd661e5e
|
|
)
|
|
|
|
vcpkg_find_acquire_program(NASM)
|
|
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
|
vcpkg_add_to_path(${NASM_EXE_PATH})
|
|
|
|
if (VCPKG_TARGET_ARCHITECTURE STREQUAL "arm" OR VCPKG_TARGET_ARCHITECTURE STREQUAL "arm64")
|
|
if(VCPKG_TARGET_IS_WINDOWS)
|
|
vcpkg_find_acquire_program(GASPREPROCESSOR)
|
|
foreach(GAS_PATH ${GASPREPROCESSOR})
|
|
get_filename_component(GAS_ITEM_PATH ${GAS_PATH} DIRECTORY)
|
|
set(ENV{PATH} "$ENV{PATH}${VCPKG_HOST_PATH_SEPARATOR}${GAS_ITEM_PATH}")
|
|
endforeach(GAS_PATH)
|
|
endif()
|
|
endif()
|
|
|
|
set(LIBRARY_TYPE ${VCPKG_LIBRARY_LINKAGE})
|
|
if (LIBRARY_TYPE STREQUAL "dynamic")
|
|
set(LIBRARY_TYPE "shared")
|
|
endif(LIBRARY_TYPE STREQUAL "dynamic")
|
|
|
|
vcpkg_configure_meson(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
--default-library=${LIBRARY_TYPE}
|
|
-Denable_tests=false
|
|
-Denable_tools=false
|
|
)
|
|
|
|
vcpkg_install_meson()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|