diff options
| author | Victor Romero <romerosanchezv@gmail.com> | 2019-01-18 11:46:49 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-01-18 11:46:49 -0800 |
| commit | 75bad0f69baa18aefc70c44e1fa5c6142fb7bbdf (patch) | |
| tree | e9ed9a0422f466464e4d4ef4da8b194ddcec6bb6 | |
| parent | c028db0b8d8a60b60963c5648d96af4ae02050d5 (diff) | |
| parent | 3d23c3c0ea486d8e8024c97f56c8b802c9ba65fc (diff) | |
| download | vcpkg-75bad0f69baa18aefc70c44e1fa5c6142fb7bbdf.tar.gz vcpkg-75bad0f69baa18aefc70c44e1fa5c6142fb7bbdf.zip | |
Merge pull request #5122 from kafeg/master
[autobahn] Add autobahn-cpp header-only library for WAMP
| -rw-r--r-- | ports/autobahn/CONTROL | 4 | ||||
| -rw-r--r-- | ports/autobahn/portfile.cmake | 30 |
2 files changed, 34 insertions, 0 deletions
diff --git a/ports/autobahn/CONTROL b/ports/autobahn/CONTROL new file mode 100644 index 000000000..7a08d9f96 --- /dev/null +++ b/ports/autobahn/CONTROL @@ -0,0 +1,4 @@ +Source: autobahn +Version: 18.4.1 +Build-Depends: websocketpp, msgpack, boost-asio, boost-thread +Description: WAMP for C++ in Boost/Asio https://crossbar.io/autobahn diff --git a/ports/autobahn/portfile.cmake b/ports/autobahn/portfile.cmake new file mode 100644 index 000000000..ea7094187 --- /dev/null +++ b/ports/autobahn/portfile.cmake @@ -0,0 +1,30 @@ +#header-only library +include(vcpkg_common_functions) + +set(USE_UPSTREAM OFF) +if("upstream" IN_LIST FEATURES) + set(USE_UPSTREAM ON) +endif() + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO crossbario/autobahn-cpp + REF v18.4.1 + SHA512 a3325e06731698a2c5d8c233581f275a9b653e98b74e7382f83fc62111dec9d66bbd5803cc71e8b5125ecee6d380d3cf1c6e83926e06912888201c2aa4ab7a15 + HEAD_REF master +) + +file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/share/autobahn) + +# Copy the header files +file(COPY "${SOURCE_PATH}/autobahn" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.hpp") +file(COPY "${SOURCE_PATH}/autobahn" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.ipp") + +set(PACKAGE_INSTALL_INCLUDE_DIR "\${CMAKE_CURRENT_LIST_DIR}/../../include") +set(PACKAGE_INIT " +macro(set_and_check) + set(\${ARGV}) +endmacro() +") + +configure_file(${SOURCE_PATH}/LICENSE ${CURRENT_PACKAGES_DIR}/share/autobahn/copyright COPYONLY) |
