diff options
Diffstat (limited to 'vcpkg/ports/nanojsonc')
| -rw-r--r-- | vcpkg/ports/nanojsonc/portfile.cmake | 19 | ||||
| -rw-r--r-- | vcpkg/ports/nanojsonc/usage | 4 | ||||
| -rw-r--r-- | vcpkg/ports/nanojsonc/vcpkg.json | 18 |
3 files changed, 41 insertions, 0 deletions
diff --git a/vcpkg/ports/nanojsonc/portfile.cmake b/vcpkg/ports/nanojsonc/portfile.cmake new file mode 100644 index 0000000..302d225 --- /dev/null +++ b/vcpkg/ports/nanojsonc/portfile.cmake @@ -0,0 +1,19 @@ +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO open-source-patterns/nanojsonc + REF "${VERSION}" + SHA512 cee89262ae3403ae110aeddeb15d839033fb9ab698d5315df693b7abd05ce893b3dbd603237afdd6cb2d8a46a0a8794043f680343720a834969357e89e64929f + HEAD_REF main +) + +vcpkg_cmake_configure(SOURCE_PATH "${SOURCE_PATH}" OPTIONS -DBUILD_TESTS=OFF) + +vcpkg_cmake_install() + +vcpkg_cmake_config_fixup() # removes /debug/share +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") # removes debug/include + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") # Install License +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") # Install Usage diff --git a/vcpkg/ports/nanojsonc/usage b/vcpkg/ports/nanojsonc/usage new file mode 100644 index 0000000..6e1e2c3 --- /dev/null +++ b/vcpkg/ports/nanojsonc/usage @@ -0,0 +1,4 @@ +The package nanojsonc provides CMake targets: + + find_package(nanojsonc CONFIG REQUIRED) + target_link_libraries(main PRIVATE nanojsonc::nanojsonc) diff --git a/vcpkg/ports/nanojsonc/vcpkg.json b/vcpkg/ports/nanojsonc/vcpkg.json new file mode 100644 index 0000000..017c424 --- /dev/null +++ b/vcpkg/ports/nanojsonc/vcpkg.json @@ -0,0 +1,18 @@ +{ + "name": "nanojsonc", + "version": "1.3.0", + "maintainers": "Saad Shams", + "description": "Event-Driven JSON Parser for C", + "homepage": "https://github.com/open-source-patterns/nanojsonc", + "license": "BSD-3-Clause", + "dependencies": [ + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |