2023-05-10 07:56:27 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO openzim/libzim
|
2023-05-14 00:45:03 +08:00
|
|
|
REF "${VERSION}"
|
2023-05-10 07:56:27 +08:00
|
|
|
SHA512 4554a9237f5167f6f94aad76ef0e847e949c47c6ee2a89bbd6e587da3b3a3e2d0a8b2d03f7a0fbde0e0dc96fb61bf8c115b3ef3cbd7eff5e880f152bee9b29f0
|
|
|
|
HEAD_REF main
|
|
|
|
PATCHES
|
2023-05-14 00:45:03 +08:00
|
|
|
cross-builds.diff
|
|
|
|
dllexport.diff
|
|
|
|
disable-gtest.diff
|
2023-05-10 07:56:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
set(EXTRA_OPTIONS "")
|
|
|
|
|
|
|
|
if(NOT "xapian" IN_LIST FEATURES)
|
|
|
|
list(APPEND EXTRA_OPTIONS "-Dwith_xapian=false")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_meson(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-Dexamples=false
|
|
|
|
${EXTRA_OPTIONS}
|
|
|
|
)
|
|
|
|
|
2023-05-14 00:45:03 +08:00
|
|
|
vcpkg_install_meson()
|
2023-05-10 07:56:27 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|