diff options
Diffstat (limited to 'vcpkg/ports/aws-c-mqtt')
| -rw-r--r-- | vcpkg/ports/aws-c-mqtt/portfile.cmake | 32 | ||||
| -rw-r--r-- | vcpkg/ports/aws-c-mqtt/vcpkg.json | 23 |
2 files changed, 55 insertions, 0 deletions
diff --git a/vcpkg/ports/aws-c-mqtt/portfile.cmake b/vcpkg/ports/aws-c-mqtt/portfile.cmake new file mode 100644 index 0000000..032ea2d --- /dev/null +++ b/vcpkg/ports/aws-c-mqtt/portfile.cmake @@ -0,0 +1,32 @@ +vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO awslabs/aws-c-mqtt
+ REF "v${VERSION}"
+ SHA512 edd4eade44be803d18f97064adfd98bae4f9c70401f8730876743663da93eb04dbc5aa90b458765430a7e24624f2c9cd7c62c19866235ec6983dd15bf95d8880
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ "-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
+ -DBUILD_TESTING=FALSE
+)
+
+vcpkg_cmake_install()
+
+string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}")
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH)
+vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/${PORT}")
+vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/")
+
+file(REMOVE_RECURSE
+ "${CURRENT_PACKAGES_DIR}/debug/include"
+ "${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}"
+ "${CURRENT_PACKAGES_DIR}/debug/share"
+ "${CURRENT_PACKAGES_DIR}/lib/${PORT}"
+)
+
+vcpkg_copy_pdbs()
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/aws-c-mqtt/vcpkg.json b/vcpkg/ports/aws-c-mqtt/vcpkg.json new file mode 100644 index 0000000..9d56eec --- /dev/null +++ b/vcpkg/ports/aws-c-mqtt/vcpkg.json @@ -0,0 +1,23 @@ +{ + "name": "aws-c-mqtt", + "version": "0.13.3", + "description": "C99 implementation of the MQTT 3.1.1 specification.", + "homepage": "https://github.com/awslabs/aws-c-mqtt", + "license": "Apache-2.0", + "dependencies": [ + "aws-c-http", + "aws-c-io", + { + "name": "s2n", + "platform": "!uwp & !windows" + }, + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } + ] +} |