exiv2/conanfile.py
Luis Díaz Más 02aa13abf3 Install conan-dependencies DLLs into install/bin.
We also changed the way in which we copy the DLLs to the bin folder inside the build directory.
Before we were directly placing the conan-deps DLLs into the bin folder directly. Now we place
them into a directory called conanDlls, and from there we copy them to bin or install/bin
at build and install steps respectively.
2018-04-19 17:19:47 +02:00

29 lines
1.1 KiB
Python

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
self.options['gtest'].shared = True
def requirements(self):
self.requires('Expat/2.2.5@pix4d/stable')
self.requires('zlib/1.2.11@conan/stable')
self.requires('libcurl/7.56.1@bincrafters/stable') # from conan-bincrafters
if self.options.unitTests:
self.requires('gtest/1.8.0@bincrafters/stable')
def imports(self):
self.copy('*.dll', dst='conanDlls', src='bin')
self.copy('*.dylib', dst='bin', src='lib')