diff options
| -rw-r--r-- | ports/picojson/CONTROL | 4 | ||||
| -rw-r--r-- | ports/picojson/portfile.cmake | 18 |
2 files changed, 22 insertions, 0 deletions
diff --git a/ports/picojson/CONTROL b/ports/picojson/CONTROL new file mode 100644 index 000000000..8128aa099 --- /dev/null +++ b/ports/picojson/CONTROL @@ -0,0 +1,4 @@ +Source: picojson +Version: 1.3.1 +Description: A header-file-only, JSON parser serializer in C++. + diff --git a/ports/picojson/portfile.cmake b/ports/picojson/portfile.cmake new file mode 100644 index 000000000..91f2f2aa5 --- /dev/null +++ b/ports/picojson/portfile.cmake @@ -0,0 +1,18 @@ + +include(vcpkg_common_functions) +set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/picojson-master) +vcpkg_download_distfile(ARCHIVE + URLS "https://github.com/kazuho/picojson/archive/master.zip" + FILENAME "picojson-1.3.1.zip" + SHA512 961138c1233ee960c8810cd0e53af27b42956ec0ed4017085b2330417833f91ba728dd76e64ece019a37eb5f8a857cc57d36c3370a27707d995091ab409c4819 +) +vcpkg_extract_source_archive(${ARCHIVE}) + +# Put the licence file where vcpkg expects it +file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/picojson) +file(RENAME ${CURRENT_PACKAGES_DIR}/share/picojson/LICENSE ${CURRENT_PACKAGES_DIR}/share/picojson/copyright) + +# Copy the header files +file(INSTALL ${SOURCE_PATH}/picojson.h DESTINATION ${CURRENT_PACKAGES_DIR}/include/picojson) + +vcpkg_copy_pdbs() |
