2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-06-17 06:53:57 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO dropbox/json11
|
|
|
|
REF ec4e45219af1d7cde3d58b49ed762376fccf1ace
|
|
|
|
SHA512 2129e048d8dee027dc1ba789d9901e017b7d698465e15236802ef68639161e1cc7c8665d5f50079333801717fd41ffbe2cb90fa2165b9a85629e8ced8f2b3cd8
|
|
|
|
HEAD_REF master
|
2019-06-23 14:30:45 +08:00
|
|
|
PATCHES destination.patch
|
2018-06-17 06:53:57 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-04-22 05:48:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-06-17 06:53:57 +08:00
|
|
|
OPTIONS
|
|
|
|
-DJSON11_BUILD_TESTS:BOOL=OFF
|
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-06-17 06:53:57 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/json11-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
2019-06-23 14:30:45 +08:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-06-17 06:53:57 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-04-22 05:48:12 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|