forked from Exiv2/exiv2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconanfile.py
36 lines (29 loc) · 1.13 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
from conans.tools import os_info
class Exiv2Conan(ConanFile):
settings = 'os', 'compiler', 'build_type', 'arch'
generators = 'cmake'
options = {'unitTests': [True, False],
'xmp': [True, False],
}
default_options = ('unitTests=True',
'xmp=False',
)
def configure(self):
if not os_info.is_macos:
self.options['libcurl'].shared = True
self.options['gtest'].shared = True
def requirements(self):
self.requires('zlib/1.2.11@conan/stable')
self.requires('libcurl/7.60.0@bincrafters/stable')
if os_info.is_windows:
self.requires('libiconv/1.15@bincrafters/stable')
if self.options.unitTests:
self.requires('gtest/1.8.0@bincrafters/stable')
if self.options.xmp:
self.requires('XmpSdk/2016.7@piponazo/stable') # from conan-piponazo
else:
self.requires('Expat/2.2.5@pix4d/stable')
def imports(self):
self.copy('*.dll', dst='conanDlls', src='bin')
self.copy('*.dylib', dst='bin', src='lib')