-
Notifications
You must be signed in to change notification settings - Fork 67
/
conanfile.py
36 lines (31 loc) · 1.14 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
from conans import ConanFile, CMake
import pathlib
class FTPClientCPPConan(ConanFile):
name = "ftpclient-cpp"
version = "0.1.0"
license = "MIT"
author = "embeddedmz https://github.com/embeddedmz"
url = "https://github.com/embeddedmz/ftpclient-cpp"
description = "C++ client for making FTP requests"
settings = "os", "compiler", "build_type", "arch"
options = {"shared": [False]}
default_options = {"shared": False}
requires = "libcurl/7.79.0"
generators = "cmake_find_package"
exports_sources = "*"
def build(self):
cmake = self._configure()
cmake.build()
def _configure(self):
cmake = CMake(self)
cmake.configure(source_folder=".")
return cmake
def package(self):
self.copy("*.h", "include", src="FTP")
self.copy("*.a", dst="lib", src="", keep_path=False)
self.copy("*.so", dst="lib", src="", keep_path=False)
self.copy("*.lib", dst="lib", src="", keep_path=False)
self.copy("*.dll", dst="lib", src="", keep_path=False)
self.copy("LICENSE")
def package_info(self):
self.cpp_info.libs = ["ftpclient"]