-
Notifications
You must be signed in to change notification settings - Fork 0
/
conanfile.py
executable file
·39 lines (31 loc) · 1.01 KB
/
conanfile.py
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
33
34
35
36
37
38
from conans import ConanFile, CMake
class LogRushConan(ConanFile):
name = "logrush"
description = "C++ LogRush Client"
homepage = "https://github.com/logrush/cpp-client"
license = "MIT"
topics = ("LogRush", "Logging", "Logs", "Remote")
url = "https://github.com/conan-io/conan-center-index"
generators = "cmake", "cmake_find_package"
settings = "os", "arch", "compiler", "build_type"
exports_sources = "*"
version = "1.0.0"
requires = "libcurl/7.82.0"
cmake = None
def _configure_cmake(self):
if self.cmake:
return self.cmake
self.cmake = CMake(self)
self.cmake.configure(source_folder="./")
def config_options(self):
pass
def build(self):
cmake = CMake(self)
cmake.configure(source_folder="./")
cmake.build()
def package(self):
cmake = CMake(self)
cmake.configure(source_folder="./")
cmake.install()
def package_info(self):
self.cpp_info.libs = ["logrush"]