2021-01-25 17:57:23 +08:00
|
|
|
vcpkg_from_gitlab(
|
|
|
|
GITLAB_URL https://code.videolan.org
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO videolan/dav1d
|
2023-02-28 02:50:37 +08:00
|
|
|
REF "${VERSION}"
|
2023-06-07 06:10:28 +08:00
|
|
|
SHA512 b2f39fdc95c851f136cbe2be40a75770e56ff0109ee55bd084861eb23a8c1dece070dde8a88781c5bb95e241e019e5985d88321560746ecbcb7ab2f22106c0b4
|
2021-01-25 17:57:23 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(NASM)
|
|
|
|
get_filename_component(NASM_EXE_PATH ${NASM} DIRECTORY)
|
|
|
|
vcpkg_add_to_path(${NASM_EXE_PATH})
|
|
|
|
|
2023-01-07 17:16:36 +08:00
|
|
|
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()
|
|
|
|
|
2021-01-25 17:57:23 +08:00
|
|
|
set(LIBRARY_TYPE ${VCPKG_LIBRARY_LINKAGE})
|
|
|
|
if (LIBRARY_TYPE STREQUAL "dynamic")
|
|
|
|
set(LIBRARY_TYPE "shared")
|
|
|
|
endif(LIBRARY_TYPE STREQUAL "dynamic")
|
|
|
|
|
|
|
|
vcpkg_configure_meson(
|
2022-04-26 07:08:47 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-01-25 17:57:23 +08:00
|
|
|
OPTIONS
|
|
|
|
--default-library=${LIBRARY_TYPE}
|
|
|
|
-Denable_tests=false
|
|
|
|
-Denable_tools=false
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_meson()
|
|
|
|
vcpkg_copy_pdbs()
|
2021-05-25 02:10:23 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-01-25 17:57:23 +08:00
|
|
|
|
2023-03-07 07:39:58 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|