-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[paho-mqtt] Update to 1.3.10 and fix include path #25207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
vicroms
merged 10 commits into
microsoft:master
from
LilyWangLL:dev/LilyWang/issue15349
Jun 15, 2022
Merged
Changes from 4 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0d25174
[paho-mqtt] Update to 1.3.10 and fix include path
d4e10e1
x-add-version
e8c7fff
fix paho-mqttpp3
8a261fb
x-add-version
714ed77
install LICENSE
962edd1
x-add-version
1021147
remove documentations
aaae1cc
x-add-version
d079d23
apply suggestion
6715611
x-add-version
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,44 @@ | ||
| vcpkg_from_github( | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO eclipse/paho.mqtt.c | ||
| REF 3b7ae6348bc917d42c04efa962e4868c09bbde9f # v1.3.9 | ||
| SHA512 73c10b7da7aa228100511db280ae56484cb8c42b8f0cfafb2fa3f6e230b4bb1d6b3611aa9219736a0baa9d7de0baf802dd70dbf308077f1a745bd61a67a797c7 | ||
| REF eff2da4875725509fc97641b118d6badf3e3a08f # v1.3.10 | ||
| SHA512 5e190ffd978dad0f60b70bdad2727e567539aff2c55e38023dfbcbe9b50bcbe75d8230c501c09e9c0a0329bed3fd149d5d59d65ad0ba0f84a54f641b4f01390a | ||
| HEAD_REF master | ||
| PATCHES | ||
| remove_compiler_options.patch | ||
| fix-install-path.patch | ||
| fix-unresolvedsymbol-arm.patch | ||
| ) | ||
|
|
||
| string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" PAHO_BUILD_STATIC) | ||
| string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" PAHO_BUILD_DYNAMIC) | ||
|
|
||
| vcpkg_configure_cmake( | ||
| SOURCE_PATH ${SOURCE_PATH} | ||
| PREFER_NINJA | ||
| vcpkg_cmake_configure( | ||
| SOURCE_PATH "${SOURCE_PATH}" | ||
| OPTIONS | ||
| -DPAHO_WITH_SSL=TRUE | ||
| -DPAHO_BUILD_SHARED=${PAHO_BUILD_DYNAMIC} | ||
| -DPAHO_BUILD_STATIC=${PAHO_BUILD_STATIC} | ||
| -DPAHO_ENABLE_TESTING=FALSE | ||
| ) | ||
|
|
||
| vcpkg_install_cmake() | ||
| vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/eclipse-paho-mqtt-c TARGET_PATH share/eclipse-paho-mqtt-c) | ||
| vcpkg_cmake_install() | ||
| vcpkg_cmake_config_fixup(PACKAGE_NAME eclipse-paho-mqtt-c CONFIG_PATH lib/cmake/eclipse-paho-mqtt-c) | ||
| vcpkg_copy_pdbs() | ||
|
|
||
| if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") | ||
| vcpkg_copy_tools(TOOL_NAMES MQTTVersion AUTO_CLEAN) | ||
| endif() | ||
|
|
||
| vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/eclipse-paho-mqtt-c/eclipse-paho-mqtt-cConfig.cmake" | ||
| "# Generated by CMake" | ||
| "# Generated by CMake | ||
| include(CMakeFindDependencyMacro) | ||
| find_dependency(OpenSSL)" | ||
| ) | ||
|
|
||
|
|
||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share") | ||
| file(COPY "${CURRENT_PACKAGES_DIR}/share/doc" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
|
JackBoosY marked this conversation as resolved.
Outdated
|
||
| file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc") | ||
|
|
||
| file(COPY ${SOURCE_PATH}/README.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) | ||
| file(INSTALL ${SOURCE_PATH}/about.html DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) | ||
| file(COPY "${SOURCE_PATH}/README.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") | ||
| file(INSTALL "${SOURCE_PATH}/about.html" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) | ||
|
LilyWangLL marked this conversation as resolved.
Outdated
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,18 @@ | ||
| { | ||
| "name": "paho-mqtt", | ||
| "version-semver": "1.3.9", | ||
| "version-semver": "1.3.10", | ||
| "description": "Paho project provides open-source client implementations of MQTT and MQTT-SN messaging protocols aimed at new, existing, and emerging applications for the Internet of Things", | ||
| "homepage": "https://github.com/eclipse/paho.mqtt.c", | ||
| "license": "EPL-2.0", | ||
| "dependencies": [ | ||
| "openssl" | ||
| "openssl", | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| }, | ||
| { | ||
| "name": "vcpkg-cmake-config", | ||
| "host": true | ||
| } | ||
| ] | ||
| } |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.