forked from kaikodata/kaiko-cpp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconanfile.py
More file actions
48 lines (39 loc) · 1.4 KB
/
conanfile.py
File metadata and controls
48 lines (39 loc) · 1.4 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from conans import ConanFile, CMake
class Pkg(ConanFile):
name = "kaikosdk"
version = "0.0.1"
license = "MIT Licence"
author = "hello@kaiko.com"
url = "github.com/kaikodata/kaiko-cpp-sdk"
description = "Kaiko C++ SDK"
topics = ("Kaiko", "SDK", "GRPC")
settings = "os", "compiler", "arch", "build_type"
# run "conan info . --graph deps.html" to see dependency graph
requires = [("grpc/1.42.0"), ("protobuf/3.19.1"), ("openssl/1.1.1q")]
# grpc package depends internally on at least protobuf/3.17.3
build_requires = ("cmake/3.22.5")
# default grpc package options
# default_options = {
# "grpc:codegen": True,
# "grpc:cpp_plugin": True,
# "grpc:csharp_ext": False,
# "grpc:csharp_plugin": True,
# "grpc:fPIC": True,
# "grpc:node_plugin": True,
# "grpc:objective_c_plugin": True,
# "grpc:php_plugin": True,
# "grpc:python_plugin": True,
# "grpc:ruby_plugin": True,
# }
generators = "cmake"
exports_sources = "src/*"
def build(self):
cmake = CMake(self)
cmake.configure(source_folder="src")
cmake.build()
def package(self):
self.copy("*.h", src="src", dst="include")
self.copy("*.lib", dst="lib", keep_path=False)
self.copy("*.a", dst="lib", keep_path=False)
def package_info(self):
self.cpp_info.libs = ["kaikosdk"]