"Fossies" - the Fresh Open Source Software Archive 
Member "exiv2-0.27.6-Source/conanfile.py" (18 Jan 2023, 1439 Bytes) of package /linux/misc/exiv2-0.27.6-Source.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
For more information about "conanfile.py" see the
Fossies "Dox" file reference documentation and the latest
Fossies "Diffs" side-by-side code changes report:
0.27.5_vs_0.27.6.
1 from conans import ConanFile
2 from conans.tools import os_info
3 from conans.model.version import Version
4
5 class Exiv2Conan(ConanFile):
6 settings = 'os', 'compiler', 'build_type', 'arch'
7 generators = 'cmake_find_package', 'cmake_paths'
8 options = {'unitTests': [True, False],
9 'xmp': [True, False],
10 'iconv': [True, False],
11 'webready': [True, False],
12 }
13 default_options = ('unitTests=True',
14 'xmp=False',
15 'iconv=False',
16 'webready=False',
17 )
18
19 def configure(self):
20 self.options['libcurl'].shared = True
21 self.options['gtest'].shared = False
22
23 def requirements(self):
24 self.requires('zlib/1.2.12')
25
26 if os_info.is_windows and self.options.iconv:
27 self.requires('libiconv/1.16')
28
29 if self.options.unitTests:
30 self.requires('gtest/1.8.1')
31 if self.settings.build_type == "Debug":
32 self.options['gtest'].debug_postfix = ''
33
34 if self.options.webready:
35 self.requires('libcurl/7.80.0')
36
37 if self.options.xmp:
38 self.requires('XmpSdk/2016.7@piponazo/stable') # from conan-piponazo
39 else:
40 self.requires('expat/2.4.8')
41
42 def imports(self):
43 self.copy('*.dll', dst='conanDlls', src='bin')
44 self.copy('*.dylib', dst='bin', src='lib')