-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[paho-mqtt] Update to version 1.3.5 #13680
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
nicole mazzuca (strega-nil)
merged 9 commits into
microsoft:master
from
LilyWangL:dev/Lily/update_pahomqtt
Nov 11, 2020
Merged
Changes from 6 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
cc31f94
[paho-mqtt] Update to version 1.3.5
LilyWangL 6fd3422
Merge branch 'master' of https://github.com/microsoft/vcpkg into dev/…
LilyWangL 230adcd
[paho-mqtt] Fix build error
LilyWangL d3ec5a3
[paho-mqttpp3] Fix build error
LilyWangL ce2ee9f
[paho-mqttpp3] Fix build error
LilyWangL 570d20b
[paho-mqttpp3] Fix build error
LilyWangL fb6f250
[paho-mqtt] Fix old patch
LilyWangL 58a2de0
[paho-mqtt] Add vcpkg_copy_tools
LilyWangL 894e0f6
[paho-mqtt] Fix build error
LilyWangL 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 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,5 +1,5 @@ | ||
| Source: paho-mqtt | ||
| Version: 1.3.1 | ||
| Version: 1.3.5 | ||
| Homepage: https://github.com/eclipse/paho.mqtt.c | ||
| 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 | ||
| Build-Depends: openssl |
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,56 +1,55 @@ | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| index 64ae92c..6d552d1 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -64,11 +64,11 @@ ENDIF() | ||
| IF (PAHO_ENABLE_CPACK) | ||
| ### packaging settings | ||
| FILE(GLOB samples "src/samples/*.c") | ||
| - INSTALL(FILES ${samples} DESTINATION samples) | ||
| + INSTALL(FILES ${samples} DESTINATION share/paho-mqtt/samples) | ||
|
|
||
| SET(CPACK_PACKAGE_VENDOR "Eclipse Paho") | ||
| SET(CPACK_PACKAGE_NAME "Eclipse-Paho-MQTT-C") | ||
| - INSTALL(FILES CONTRIBUTING.md epl-v10 edl-v10 README.md notice.html DESTINATION .) | ||
| + INSTALL(FILES CONTRIBUTING.md epl-v10 edl-v10 README.md notice.html DESTINATION share/paho-mqtt) | ||
|
|
||
| IF (WIN32) | ||
| SET(CPACK_GENERATOR "ZIP") | ||
| diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt | ||
| index f15f314..54deec5 100644 | ||
| --- a/doc/CMakeLists.txt | ||
| +++ b/doc/CMakeLists.txt | ||
| @@ -39,7 +39,7 @@ ENDFOREACH(DOXYFILE_SRC) | ||
|
|
||
| ADD_CUSTOM_TARGET(doc ALL DEPENDS ${DOXYTARGETS}) | ||
| IF (PAHO_ENABLE_CPACK) | ||
| - INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc DESTINATION share) | ||
| + INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc DESTINATION share/paho-mqtt) | ||
| ELSE() | ||
| INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc DESTINATION ${CMAKE_INSTALL_DOCDIR}) | ||
| ENDIF() | ||
| \ No newline at end of file | ||
| diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
| index b46eaca..a132062 100644 | ||
| --- a/src/CMakeLists.txt | ||
| +++ b/src/CMakeLists.txt | ||
| @@ -89,7 +89,7 @@ INSTALL(TARGETS paho-mqtt3c paho-mqtt3a | ||
| LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
| INSTALL(TARGETS MQTTVersion | ||
| - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
| + RUNTIME DESTINATION tools/paho-mqtt) | ||
|
|
||
| IF (PAHO_BUILD_STATIC) | ||
| ADD_LIBRARY(paho-mqtt3c-static STATIC $<TARGET_OBJECTS:common_obj> MQTTClient.c) | ||
| @@ -102,8 +102,8 @@ IF (PAHO_BUILD_STATIC) | ||
| ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) | ||
| ENDIF() | ||
|
|
||
| -INSTALL(FILES MQTTAsync.h MQTTClient.h MQTTClientPersistence.h MQTTProperties.h MQTTReasonCodes.h MQTTSubscribeOpts.h | ||
| - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
| +INSTALL(FILES MQTTAsync.h MQTTClient.h MQTTClientPersistence.h MQTTProperties.h MQTTReasonCodes.h MQTTSubscribeOpts.h | ||
| + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/paho-mqtt) | ||
|
|
||
| IF (PAHO_WITH_SSL) | ||
| SET(OPENSSL_SEARCH_PATH "" CACHE PATH "Directory containing OpenSSL libraries and includes") | ||
| diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
| index 3df385a..1ee7be0 100644 | ||
| --- a/CMakeLists.txt | ||
| +++ b/CMakeLists.txt | ||
| @@ -60,8 +60,8 @@ IF (NOT PAHO_BUILD_SHARED AND NOT PAHO_BUILD_STATIC) | ||
| MESSAGE(FATAL_ERROR "You must set either PAHO_BUILD_SHARED, PAHO_BUILD_STATIC, or both") | ||
| ENDIF() | ||
|
|
||
| -IF(PAHO_BUILD_DEB_PACKAGE) | ||
| - set(CMAKE_INSTALL_DOCDIR share/doc/libpaho-mqtt) | ||
| +IF(1) | ||
| + set(CMAKE_INSTALL_DOCDIR share/paho-mqtt) | ||
| ENDIF() | ||
|
|
||
| ADD_SUBDIRECTORY(src) | ||
| diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt | ||
| index 20b578a..75dc833 100644 | ||
| --- a/src/CMakeLists.txt | ||
| +++ b/src/CMakeLists.txt | ||
| @@ -142,7 +142,7 @@ IF (PAHO_BUILD_SHARED) | ||
| LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} | ||
| RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
| INSTALL(TARGETS MQTTVersion | ||
| - RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) | ||
| + RUNTIME DESTINATION tools/paho-mqtt) | ||
| ENDIF() | ||
|
|
||
| IF (PAHO_BUILD_STATIC) | ||
| @@ -183,7 +183,7 @@ IF (PAHO_BUILD_STATIC) | ||
| ENDIF() | ||
|
|
||
| INSTALL(FILES MQTTAsync.h MQTTClient.h MQTTClientPersistence.h MQTTProperties.h MQTTReasonCodes.h MQTTSubscribeOpts.h MQTTExportDeclarations.h | ||
| - DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) | ||
| + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/paho-mqtt) | ||
|
|
||
| IF (PAHO_WITH_SSL) | ||
| SET(OPENSSL_ROOT_DIR "" CACHE PATH "Directory containing OpenSSL libraries and includes") | ||
| @@ -306,7 +306,7 @@ ENDIF() | ||
| INSTALL(EXPORT eclipse-paho-mqtt-cTargets | ||
| FILE eclipse-paho-mqtt-cConfig.cmake | ||
| NAMESPACE eclipse-paho-mqtt-c:: | ||
| - DESTINATION lib/cmake/eclipse-paho-mqtt-c) | ||
| + DESTINATION share/eclipse-paho-mqtt-c) | ||
|
|
||
| INCLUDE(CMakePackageConfigHelpers) | ||
| WRITE_BASIC_PACKAGE_VERSION_FILE("eclipse-paho-mqtt-cConfigVersion.cmake" | ||
| @@ -314,7 +314,7 @@ WRITE_BASIC_PACKAGE_VERSION_FILE("eclipse-paho-mqtt-cConfigVersion.cmake" | ||
| COMPATIBILITY SameMajorVersion) | ||
| INSTALL(FILES | ||
| "${CMAKE_CURRENT_BINARY_DIR}/eclipse-paho-mqtt-cConfigVersion.cmake" | ||
| - DESTINATION lib/cmake/eclipse-paho-mqtt-c) | ||
| + DESTINATION share/eclipse-paho-mqtt-c) | ||
|
|
||
| # Base64 test | ||
| ADD_EXECUTABLE( Base64Test EXCLUDE_FROM_ALL Base64.c Base64.h ) | ||
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,12 +1,12 @@ | ||
| diff --git a/src/SHA1.c b/src/SHA1.c | ||
| index 9bb1175..b2ef930 100644 | ||
| --- a/src/SHA1.c | ||
| +++ b/src/SHA1.c | ||
| @@ -19,6 +19,7 @@ | ||
| #if !defined(OPENSSL) | ||
| #if defined(WIN32) || defined(WIN64) | ||
| #pragma comment(lib, "crypt32.lib") | ||
| +#pragma comment(lib, "Advapi32.lib") | ||
| int SHA1_Init(SHA_CTX *c) | ||
| { | ||
| diff --git a/src/SHA1.c b/src/SHA1.c | ||
| index 3ef07d9..f0e82ce 100644 | ||
| --- a/src/SHA1.c | ||
| +++ b/src/SHA1.c | ||
| @@ -19,6 +19,7 @@ | ||
| #if !defined(OPENSSL) | ||
| #if defined(_WIN32) || defined(_WIN64) | ||
| #pragma comment(lib, "crypt32.lib") | ||
| +#pragma comment(lib, "Advapi32.lib") | ||
|
|
||
| int SHA1_Init(SHA_CTX *c) | ||
| { |
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.