2018-03-23 13:49:42 +08:00
|
|
|
vcpkg_from_bitbucket(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Pavel_Kisliak/BitSerializer
|
2021-10-07 02:17:26 +08:00
|
|
|
REF 0.44
|
|
|
|
SHA512 0629acc93807254bd51d9eed761a92be4780d01604a9ae4bf8a933af70fdb206ea9b4f4db3489805b4163f5071246529ea22f8b3e7fbcd77ed936c3ab24697b2
|
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
|
2020-06-12 13:34:31 +08:00
|
|
|
)
|
|
|
|
|
2021-10-07 02:17:26 +08:00
|
|
|
vcpkg_cmake_configure(
|
2020-06-12 13:34:31 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2020-05-08 14:23:37 +08:00
|
|
|
PREFER_NINJA
|
2020-06-12 13:34:31 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
2020-05-08 14:23:37 +08:00
|
|
|
)
|
2021-10-07 02:17:26 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/bitserializer)
|
2020-05-08 14:23:37 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/lib ${CURRENT_PACKAGES_DIR}/debug)
|
2018-03-23 13:49:42 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2020-05-08 14:23:37 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|