2022-12-30 16:02:28 +08:00
|
|
|
# All components of BitSerializer is "header only" except CSV archive
|
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2023-09-14 06:55:02 +08:00
|
|
|
vcpkg_from_github(
|
2018-03-23 13:49:42 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2023-09-14 06:55:02 +08:00
|
|
|
REPO PavelKisliak/BitSerializer
|
2024-06-04 13:14:02 +08:00
|
|
|
REF v0.70
|
|
|
|
SHA512 efd6d9e00bbbe9ef541b2bea8ee8417befcc6482e96241689f39ab130743a1e3fbf2e22ae81c4291d15091f63f94f20964ad873a8601c2f5d98e7021aaedc793
|
2018-03-23 13:49:42 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2020-06-12 13:34:31 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2021-07-21 01:24:58 +08:00
|
|
|
FEATURES
|
|
|
|
"cpprestjson-archive" BUILD_CPPRESTJSON_ARCHIVE
|
|
|
|
"rapidjson-archive" BUILD_RAPIDJSON_ARCHIVE
|
|
|
|
"pugixml-archive" BUILD_PUGIXML_ARCHIVE
|
|
|
|
"rapidyaml-archive" BUILD_RAPIDYAML_ARCHIVE
|
2022-12-30 16:02:28 +08:00
|
|
|
"csv-archive" BUILD_CSV_ARCHIVE
|
2024-06-04 13:14:02 +08:00
|
|
|
"msgpack-archive" BUILD_MSGPACK_ARCHIVE
|
2020-06-12 13:34:31 +08:00
|
|
|
)
|
|
|
|
|
2021-10-07 02:17:26 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-05-18 02:15:06 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-06-04 13:14:02 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2020-06-12 13:34:31 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
2020-05-08 14:23:37 +08:00
|
|
|
)
|
2022-12-30 16:02:28 +08:00
|
|
|
|
2021-10-07 02:17:26 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-12-30 16:02:28 +08:00
|
|
|
vcpkg_copy_pdbs()
|
2022-10-04 05:00:34 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2022-12-30 16:02:28 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-05-08 14:23:37 +08:00
|
|
|
|
2022-12-30 16:02:28 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2024-06-04 13:14:02 +08:00
|
|
|
if (NOT (${BUILD_CSV_ARCHIVE} OR ${BUILD_MSGPACK_ARCHIVE}))
|
2022-12-30 16:02:28 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
endif()
|
2018-03-23 13:49:42 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-05-18 02:15:06 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/license.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2022-12-30 16:02:28 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|