-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
28 lines (23 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
from conans import ConanFile, CMake
class QuerysetCPP(ConanFile):
name = "queryset-cpp"
version = "0.3"
requires = "Boost/1.60.0@lasote/stable", "spdlog/0.1@memsharded/testing"
generators = "cmake"
settings = "os", "compiler", "build_type", "arch"
exports = "conanfile.py", "CMakeLists.txt", "queryset/*" , "tests/*"
url = "https://github.com/jgsogo/queryset-cpp"
def imports(self):
self.copy("*.dll", dst="bin", src="bin") # From bin to bin
self.copy("*.dylib*", dst="bin", src="lib") # From lib to bin
def build(self):
cmake = CMake(self.settings)
self.run('cmake %s %s' % (self.conanfile_directory, cmake.command_line))
self.run("cmake --build . %s" % cmake.build_config)
def package(self):
self.copy("*.h", dst="include")
self.copy("*.lib", dst="lib", src="lib")
self.copy("*.a", dst="lib", src="lib")
def package_info(self):
#self.cpp_info.libs = ["queryset-cpp"] # Do not generates .lib
pass