Skip to content
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

Add paho-mqtt-cpp/1.1 #1056

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions recipes/paho-mqtt-cpp/all/conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ sources:
"1.0.1":
sha256: e97386d159b811e534b98d21e3f6881ab2b43678ec026da7525d5c21ebc292ff
url: https://github.com/eclipse/paho.mqtt.cpp/archive/v1.0.1.tar.gz
"1.1":
sha256: cb0343349ed91ef51d0e76ae860d19435a730d3d355e57886bb090014cb70bbe
url: https://github.com/eclipse/paho.mqtt.cpp/archive/v1.1.tar.gz
patches:
"1.0.1":
- patch_file: "patches/0001-fix-cmake-module-path.patch"
Expand Down
10 changes: 6 additions & 4 deletions recipes/paho-mqtt-cpp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ class PahoMqttCppConan(ConanFile):
homepage = "https://github.com/eclipse/paho.mqtt.cpp"
topics = ("MQTT", "IoT", "eclipse", "SSL", "paho", "Cpp")
license = "EPL-1.0"
description = """The open-source client implementations of MQTT and MQTT-SN"""
description = ("""The open-source client implementations of MQTT """
"""and MQTT-SN""")
exports_sources = ["CMakeLists.txt", "patches/*"]
generators = "cmake"
settings = "os", "arch", "compiler", "build_type"
Expand Down Expand Up @@ -45,7 +46,7 @@ def configure(self):
self.options["paho-mqtt-c"].ssl = self.options.ssl

def requirements(self):
self.requires("paho-mqtt-c/1.3.0")
self.requires("paho-mqtt-c/1.3.1")

def source(self):
tools.get(**self.conan_data["sources"][self.version])
Expand All @@ -65,8 +66,9 @@ def _configure_cmake(self):
return self._cmake

def build(self):
for patch in self.conan_data["patches"][self.version]:
tools.patch(**patch)
if "patches" in self.conan_data.keys():
uilianries marked this conversation as resolved.
Show resolved Hide resolved
for patch in self.conan_data["patches"][self.version]:
tools.patch(**patch)
cmake = self._configure_cmake()
cmake.build()

Expand Down
2 changes: 2 additions & 0 deletions recipes/paho-mqtt-cpp/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
versions:
"1.0.1":
folder: "all"
"1.1":
folder: "all"