-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconanfile.py
More file actions
31 lines (26 loc) · 1 KB
/
conanfile.py
File metadata and controls
31 lines (26 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, CMake, cmake_layout
from os import path
class DrivebrainSoftware(ConanFile):
name = "_foxglove"
version = "1.0.0-dev"
license = "zlib"
settings = ["os", "compiler", "build_type", "arch"]
exports_sources = "CMakeLists.txt", "LICENSE", "src/*", "include/*"
generators = "CMakeDeps", "CMakeToolchain"
exports = '*'
def build(self):
cmake = CMake(self)
cmake.build()
cmake.install()
def requirements(self):
self.requires("foxglove-websocket/1.4.0", transitive_headers=True)
self.requires("protobuf/5.29.3", transitive_headers=True)
self.requires("boost/1.80.0")
self.requires("spdlog/1.15.3")
self.requires("mcap/2.0.2")
self.requires("dbcppp/3.2.6")
def build_requirements(self):
if not self.settings_build.get_safe("cross_build"):
self.requires("gtest/1.17.0")
self.tool_requires("protobuf/5.29.3")