mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 20:29:07 +08:00
3880056be4
* [libzim] WIP * Control gtest * More fixes, test xapian * [xapian] Fix windows and mingw * dllexport * Finish PR * CI baseline * [xapian] Update supports * Fix arm64
34 lines
767 B
CMake
34 lines
767 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO openzim/libzim
|
|
REF "${VERSION}"
|
|
SHA512 4554a9237f5167f6f94aad76ef0e847e949c47c6ee2a89bbd6e587da3b3a3e2d0a8b2d03f7a0fbde0e0dc96fb61bf8c115b3ef3cbd7eff5e880f152bee9b29f0
|
|
HEAD_REF main
|
|
PATCHES
|
|
cross-builds.diff
|
|
dllexport.diff
|
|
disable-gtest.diff
|
|
)
|
|
|
|
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}
|
|
)
|
|
|
|
vcpkg_install_meson()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
|