2016-10-27 02:59:46 +08:00
|
|
|
#header-only library
|
2016-09-20 23:58:09 +08:00
|
|
|
include(vcpkg_common_functions)
|
2017-02-09 15:51:16 +08:00
|
|
|
SET(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/rapidjson-1.1.0)
|
2016-09-19 11:50:08 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2017-02-09 15:51:16 +08:00
|
|
|
URLS "https://github.com/miloyip/rapidjson/archive/v1.1.0.zip"
|
|
|
|
FILENAME "rapidjson-v1.1.0.zip"
|
|
|
|
SHA512 4ddbf6dc5d943eb971e7a62910dd78d1cc5cc3016066a443f351d4276d2be3375ed97796e672c2aecd6990f0b332826f8c8ddc7d367193d7b82f0037f4e4012c
|
2016-09-19 11:50:08 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(${ARCHIVE})
|
|
|
|
|
|
|
|
# Put the licence file where vcpkg expects it
|
2016-09-29 08:05:56 +08:00
|
|
|
file(COPY ${SOURCE_PATH}/license.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/rapidjson)
|
2016-09-19 11:50:08 +08:00
|
|
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/rapidjson/license.txt ${CURRENT_PACKAGES_DIR}/share/rapidjson/copyright)
|
|
|
|
|
|
|
|
# Copy the rapidjson header files
|
2016-09-29 08:05:56 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/include DESTINATION ${CURRENT_PACKAGES_DIR} FILES_MATCHING PATTERN "*.h")
|
2016-09-19 11:50:08 +08:00
|
|
|
vcpkg_copy_pdbs()
|