forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
27 lines (22 loc) · 1.11 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
from conans import ConanFile
from conans.tools import os_info
class Exiv2Conan(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'
generators = 'cmake'
options = {'unitTests': [True, False]}
default_options = 'unitTests=True'
def configure(self):
# Note : The linking in exiv2lib fails if we try to use the static version of libcurl.
# The libcurl CMake code is not mature enough and therefore the conan recipe for
# Windows also has some problems (since it uses CMake for configuring the project).
if os_info.is_windows:
self.options['libcurl'].shared = True
def requirements(self):
self.requires('Expat/2.2.1@pix4d/stable') # From pix4d
self.requires('zlib/1.2.11@lasote/stable') # From conan-center
self.requires('libcurl/7.50.3@lasote/stable') # From conan-transit (It also brings OpenSSL)
if self.options.unitTests:
self.requires('gtest/1.8.0@lasote/stable') #From conan-transit
def imports(self):
self.copy('*.dll', dst='bin', src='bin')
self.copy('*.dylib', dst='bin', src='lib')