early-access version 2853
This commit is contained in:
13
externals/vcpkg/ports/paho-mqtt/fix-unresolvedsymbol-arm.patch
vendored
Executable file
13
externals/vcpkg/ports/paho-mqtt/fix-unresolvedsymbol-arm.patch
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/SHA1.c b/src/SHA1.c
|
||||
index 3ef07d9..8ed6b16 100644
|
||||
--- a/src/SHA1.c
|
||||
+++ b/src/SHA1.c
|
||||
@@ -18,7 +18,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)
|
||||
{
|
||||
41
externals/vcpkg/ports/paho-mqtt/portfile.cmake
vendored
Executable file
41
externals/vcpkg/ports/paho-mqtt/portfile.cmake
vendored
Executable file
@@ -0,0 +1,41 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO eclipse/paho.mqtt.c
|
||||
REF eff2da4875725509fc97641b118d6badf3e3a08f # v1.3.10
|
||||
SHA512 5e190ffd978dad0f60b70bdad2727e567539aff2c55e38023dfbcbe9b50bcbe75d8230c501c09e9c0a0329bed3fd149d5d59d65ad0ba0f84a54f641b4f01390a
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
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_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_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(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
18
externals/vcpkg/ports/paho-mqtt/vcpkg.json
vendored
Executable file
18
externals/vcpkg/ports/paho-mqtt/vcpkg.json
vendored
Executable file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "paho-mqtt",
|
||||
"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",
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user