diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/rest-rpc/portfile.cmake | |
Diffstat (limited to 'vcpkg/ports/rest-rpc/portfile.cmake')
| -rw-r--r-- | vcpkg/ports/rest-rpc/portfile.cmake | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/rest-rpc/portfile.cmake b/vcpkg/ports/rest-rpc/portfile.cmake new file mode 100644 index 0000000..bc96531 --- /dev/null +++ b/vcpkg/ports/rest-rpc/portfile.cmake @@ -0,0 +1,21 @@ +# header-only library + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO qicosmos/rest_rpc + REF "v${VERSION}" + SHA512 1d88085acc6c4f913901631725acd08a688a079878677d064d441c3c89167275c5eed371d24e370feb88879ac06270e9316b91c67ea41e350523fe670406ecc1 + HEAD_REF master +) + +file(INSTALL "${SOURCE_PATH}/include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include") + +vcpkg_replace_string( + "${CURRENT_PACKAGES_DIR}/include/rest_rpc.hpp" + "#include \"rest_rpc/rpc_server.h\"" + "#define ASIO_STANDALONE\n#include \"rest_rpc/rpc_server.h\"" +) + +file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/unofficial-rest-rpc-config.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/unofficial-rest-rpc-config") + +vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE") |