Skip to content

Commit

Permalink
(#18885) foxglove-websocket: Add version 1.1.0
Browse files Browse the repository at this point in the history
* foxglove-websocket: Add version 1.1.0

* foxglove-websocket: Add asio option

* foxglove-websocket: Remove asio option False

* foxglove-websocket: Update tag hash sum

* foxglove-websocket: Use transitive headers for websocketpp

* Update recipes/foxglove-websocket/all/conanfile.py

* Set CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS true for win shared

---------

Co-authored-by: Carlos Zoido <mrgalleta@gmail.com>
  • Loading branch information
achim-k and czoido committed Oct 16, 2023
1 parent 2bca4c6 commit d2f965e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions recipes/foxglove-websocket/all/conandata.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
sources:
1.1.0:
url: https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/cpp/v1.1.0.tar.gz
sha256: 3ad1f639e340e878dd638d542e57185b8c7c08fdfcb03d8c43d054957078a81f
1.0.0:
url: https://github.com/foxglove/ws-protocol/archive/refs/tags/releases/cpp/v1.0.0.tar.gz
sha256: c6106934a47d9d5b53ee3f6a0a6c8ec778ffdb52e9b462136bfc1bc5391ed227
8 changes: 6 additions & 2 deletions recipes/foxglove-websocket/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,12 @@ class FoxgloveWebSocketConan(ConanFile):
options = {
"shared": [True, False],
"fPIC": [True, False],
"asio": ["boost", "standalone"],
}
default_options = {
"shared": False,
"fPIC": True,
"asio": "standalone"
}

settings = "os", "arch", "compiler", "build_type"
Expand Down Expand Up @@ -65,21 +67,23 @@ def validate(self):

def requirements(self):
self.requires("nlohmann_json/3.10.5", transitive_headers=True)
self.requires("websocketpp/0.8.2")
self.requires("websocketpp/0.8.2", transitive_headers=True, transitive_libs=True)

def layout(self):
cmake_layout(self, src_folder="src")

def generate(self):
tc = CMakeToolchain(self)
if self.settings.os == "Windows" and self.options.shared:
tc.variables["CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS"] = True
tc.generate()

def config_options(self):
if self.settings.os == "Windows":
del self.options.fPIC

def configure(self):
self.options["websocketpp"].asio = "standalone"
self.options["websocketpp"].asio = self.options.asio

if self.options.shared:
self.options.rm_safe("fPIC")
Expand Down
2 changes: 2 additions & 0 deletions recipes/foxglove-websocket/config.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
versions:
1.1.0:
folder: all
1.0.0:
folder: all

0 comments on commit d2f965e

Please sign in to comment.