2022-10-25 02:46:17 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO VowpalWabbit/vowpal_wabbit
|
2023-03-24 10:26:30 +08:00
|
|
|
REF "${VERSION}"
|
2024-08-23 18:18:30 +08:00
|
|
|
SHA512 f87229caf65c6c32fb863fa426a39592d41990a43ce4d79f0a076323e47cd3d1a8bd02884afceb662527c87d290e68c51df6263d6a97f3a044f3f7254a38f86a
|
2022-10-25 02:46:17 +08:00
|
|
|
HEAD_REF master
|
2024-08-03 15:41:25 +08:00
|
|
|
PATCHES
|
|
|
|
cmake_remove_bin_targets.patch
|
|
|
|
fix-build-error-with-fmt11.patch
|
2022-10-25 02:46:17 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
-DVW_INSTALL=ON
|
|
|
|
-DRAPIDJSON_SYS_DEP=ON
|
|
|
|
-DFMT_SYS_DEP=ON
|
|
|
|
-DSPDLOG_SYS_DEP=ON
|
|
|
|
-DVW_BOOST_MATH_SYS_DEP=ON
|
|
|
|
-DVW_ZLIB_SYS_DEP=ON
|
2022-11-11 01:19:03 +08:00
|
|
|
-DVW_EIGEN_SYS_DEP=ON
|
2022-10-25 02:46:17 +08:00
|
|
|
-DVW_BUILD_VW_C_WRAPPER=OFF
|
|
|
|
-DBUILD_TESTING=OFF
|
2023-03-24 10:26:30 +08:00
|
|
|
-DVW_STRING_VIEW_LITE_SYS_DEP=ON
|
2023-03-29 05:49:58 +08:00
|
|
|
-DVW_SSE2NEON_SYS_DEP=ON
|
2022-10-25 02:46:17 +08:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2023-03-24 10:26:30 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2022-10-25 02:46:17 +08:00
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/VowpalWabbit)
|
2022-10-28 10:26:15 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|