commit
7338024f45
@ -1,10 +1,25 @@
|
||||
image:
|
||||
- Visual Studio 2017
|
||||
image: Visual Studio 2017
|
||||
|
||||
shallow_clone: true
|
||||
|
||||
environment:
|
||||
VS150COMNTOOLS: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\"
|
||||
|
||||
before_build:
|
||||
- cmd: mkdir envs && cd envs
|
||||
- cmd: python -m virtualenv conan
|
||||
- cmd: conan/Scripts/activate
|
||||
- cmd: python -m pip install conan==0.26.0
|
||||
- cmd: cd ..
|
||||
- cmd: conan remote add conan-pix4d https://api.bintray.com/conan/pix4d/conan
|
||||
- cmd: mkdir c:\Users\appveyor\.conan\profiles
|
||||
- cmd: printf "os=Windows\narch=x86\ncompiler=Visual Studio\ncompiler.version=15\ncompiler.runtime=MD\nbuild_type=Release\n" > c:\Users\appveyor\.conan\profiles\release
|
||||
- cmd: cat c:\Users\appveyor\.conan\profiles\release
|
||||
|
||||
build_script:
|
||||
- md build
|
||||
- cd build
|
||||
- cmake -DEXIV2_ENABLE_XMP=OFF -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_PNG=OFF -DCMAKE_INSTALL_PREFIX=install ..
|
||||
- conan install .. --build missing --profile release
|
||||
- cmake -G "Visual Studio 15 2017 Win64" -T "host=x64" -DEXIV2_ENABLE_XMP=ON -DEXIV2_ENABLE_NLS=OFF -DEXIV2_ENABLE_PNG=ON -DEXIV2_ENABLE_WEBREADY=ON -DEXIV2_ENABLE_CURL=ON -DCMAKE_INSTALL_PREFIX=install ..
|
||||
- cmake --build . --config Release
|
||||
- cmake --build . --config Debug
|
||||
- cmake --build . --target install
|
||||
|
@ -0,0 +1,18 @@
|
||||
from conans import ConanFile
|
||||
from conans.tools import os_info
|
||||
|
||||
class Exiv2Conan(ConanFile):
|
||||
settings = 'os', 'compiler', 'build_type', 'arch'
|
||||
generators = 'cmake'
|
||||
|
||||
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.8@lasote/stable') # From conan-center
|
||||
self.requires('libcurl/7.50.3@lasote/stable') # From conan-transit (It also brings OpenSSL)
|
Loading…
Reference in New Issue