2021-04-30 05:02:08 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ibireme/yyjson
|
2023-01-07 17:12:34 +08:00
|
|
|
REF 0.6.0
|
|
|
|
SHA512 ad8b9d904ecd6c745d8b261d5c20879922db01a8e4f3d9df2949f2cc7ec40360411d571cb8d0a8d4e1bab39f9b8f9ddf4c54db42f4e5f35b1ea005197374ee17
|
2021-04-30 05:02:08 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2022-04-26 08:25:42 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
INVERTED_FEATURES
|
|
|
|
reader YYJSON_DISABLE_READER
|
|
|
|
writer YYJSON_DISABLE_WRITER
|
|
|
|
fast-fp-conv YYJSON_DISABLE_FAST_FP_CONV
|
|
|
|
non-standard YYJSON_DISABLE_NON_STANDARD
|
|
|
|
)
|
|
|
|
|
2021-04-30 05:02:08 +08:00
|
|
|
vcpkg_cmake_configure(
|
2022-04-26 08:25:42 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-30 05:02:08 +08:00
|
|
|
OPTIONS
|
2022-04-26 08:25:42 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2021-04-30 05:02:08 +08:00
|
|
|
-DYYJSON_BUILD_TESTS=OFF
|
|
|
|
-DYYJSON_BUILD_MISC=OFF
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2022-04-26 08:25:42 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|