-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathconanfile.py
More file actions
32 lines (26 loc) · 1.13 KB
/
conanfile.py
File metadata and controls
32 lines (26 loc) · 1.13 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
32
from conan import ConanFile
from conan.tools.cmake import CMakeToolchain, cmake_layout, CMakeDeps
class upCoreApiRecipe(ConanFile):
name = "up-cpp"
# Optional metadata
license = "Apache-2.0"
author = "Contributors to the Eclipse Foundation <uprotocol-dev@eclipse.org>"
url = "https://github.com/eclipse-uprotocol/up-cpp"
description = "This library provides a C++ uProtocol API for the development of uEntities"
topics = ("automotive", "iot", "uprotocol", "messaging")
# Binary configuration
settings = "os", "compiler", "build_type", "arch"
def requirements(self):
self.requires("protobuf/3.21.12")
self.requires("spdlog/1.13.0")
self.requires("up-core-api/[~1.6, include_prerelease]")
self.test_requires("gtest/1.14.0")
def layout(self):
cmake_layout(self)
def generate(self):
deps = CMakeDeps(self)
deps.generate()
tc = CMakeToolchain(self)
#all warnings have to be fixed
tc.cache_variables["CMAKE_CXX_FLAGS_INIT"] = "-Wno-error=unused-but-set-variable -Wno-error=pedantic -Wno-error=conversion"
tc.generate()