2022-08-30 07:37:12 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Tencent/ncnn
|
2023-11-11 03:24:39 +08:00
|
|
|
REF "${VERSION}"
|
2024-02-22 14:12:25 +08:00
|
|
|
SHA512 31bc3c2f461a00241fb8f69ca6ea8cc590af6618856b1b84a048bde924e4b474fd883ad5d54dbfbdd1e5b59015889e15ffc4fbafccb3e42e052a02071f2017b1
|
2022-08-30 07:37:12 +08:00
|
|
|
HEAD_REF master
|
2024-02-22 14:12:25 +08:00
|
|
|
PATCHES
|
|
|
|
fix_uwp.patch #https://github.com/Tencent/ncnn/pull/5328
|
2022-08-30 07:37:12 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DNCNN_BUILD_TOOLS=OFF
|
|
|
|
-DNCNN_BUILD_EXAMPLES=OFF
|
|
|
|
-DNCNN_BUILD_BENCHMARK=OFF
|
|
|
|
-DNCNN_SHARED_LIB=${BUILD_SHARED}
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/ncnn)
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2023-11-11 03:24:39 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|