vcpkg/ports/yyjson/portfile.cmake

34 lines
1003 B
CMake
Raw Normal View History

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ibireme/yyjson
2023-09-27 16:29:54 +08:00
REF "${VERSION}"
2024-07-11 23:49:38 +08:00
SHA512 d0274bfdae6291cc54d7c306f7f9064333d3e0fd8d235428148fa5695e151e0fdd0982247a5e82fe60b27e9182ba27d5704aca4546a8dc9545117bd3a017bfb5
HEAD_REF master
)
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
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
${FEATURE_OPTIONS}
-DYYJSON_BUILD_TESTS=OFF
-DYYJSON_BUILD_MISC=OFF
)
vcpkg_cmake_install()
vcpkg_copy_pdbs()
vcpkg_fixup_pkgconfig()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
2024-07-11 23:49:38 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")