2019-06-01 15:19:52 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO json-c/json-c
|
2019-09-10 23:55:48 +08:00
|
|
|
REF eae040a84a479ccad1d1c48314345c51ecf1a4a4
|
|
|
|
SHA512 18d8a31b341830b04676cad13fbc0608fb75a323522161ac8fd0bb5058db82c1c261d504696a1e12f4b03eb0967632885580ff81d808adf2f1dff7e32d131ba0
|
2019-06-01 15:19:52 +08:00
|
|
|
HEAD_REF master
|
2020-10-16 21:34:37 +02:00
|
|
|
PATCHES pkgconfig.patch
|
2019-06-01 15:19:52 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
2020-10-16 21:34:37 +02:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2019-06-01 15:19:52 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
configure_file(${SOURCE_PATH}/COPYING ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
|