-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathconanfile.py
32 lines (26 loc) · 1.05 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
from conans import ConanFile, CMake
class HelloConan(ConanFile):
name = "Hello"
version = "1.1"
description = "Example of Conan Package Flow 1.1"
license = "MIT"
url = "https://bincrafters.github.io"
#TBD settings = "os", "compiler", "build_type", "arch", "os_build", "arch_build"
settings = "os", "arch", "compiler", "build_type"
generators = "cmake"
def source(self):
self.run("git clone https://github.com/memsharded/hello.git")
self.run("cd hello && git checkout static_shared")
def build(self):
cmake = CMake(self)
cmake.configure(source_folder="hello")
cmake.build()
def package(self):
self.copy("*.h", dst="include", src="hello")
self.copy("*.lib", dst="lib", keep_path=False)
self.copy("*.dll", dst="bin", keep_path=False)
self.copy("*.so", dst="lib", keep_path=False)
self.copy("*.dylib", dst="lib", keep_path=False)
self.copy("*.a", dst="lib", keep_path=False)
def package_info(self):
self.cpp_info.libs = ["hello"]