mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-17 17:11:03 +08:00
[mqtt_cpp] Add new port (#9787)
* feat(mqtt-cpp): add control file * feat(mqtt-cpp): add portfile * feat(mqtt-cpp): add boost-timer dep
This commit is contained in:
parent
3f62e5d55d
commit
2831e429f4
5
ports/mqtt-cpp/CONTROL
Normal file
5
ports/mqtt-cpp/CONTROL
Normal file
@ -0,0 +1,5 @@
|
||||
Source: mqtt-cpp
|
||||
Version: 7.0.1
|
||||
Description: Header-only MQTT client/server for C++14 based on Boost.Asio.
|
||||
Homepage: https://github.com/redboltz/mqtt_cpp
|
||||
Build-Depends: boost-asio, boost-timer
|
20
ports/mqtt-cpp/portfile.cmake
Normal file
20
ports/mqtt-cpp/portfile.cmake
Normal file
@ -0,0 +1,20 @@
|
||||
# header-only library
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO redboltz/mqtt_cpp
|
||||
REF v7.0.1
|
||||
SHA512 7128943e1136200debca344600b015b94a6e216f6136f2b432f4692fd8dabe1a7e50fa3d436d4df85950831f5ed776e03fc02c324afbf2178455770a33bff828
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DMQTT_BUILD_EXAMPLES=OFF
|
||||
-DMQTT_BUILD_TESTS=OFF
|
||||
)
|
||||
|
||||
file(INSTALL ${SOURCE_PATH}/include/ DESTINATION ${CURRENT_PACKAGES_DIR}/include)
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
Loading…
x
Reference in New Issue
Block a user