2017-06-08 16:46:10 -04:00
|
|
|
environment:
|
|
|
|
AV_PROJECTS: 'c:\projects'
|
|
|
|
AV_TIFF_DOWNLOAD: 'c:\projects\download'
|
|
|
|
AV_TIFF_SOURCE: 'c:\projects\libtiff'
|
|
|
|
AV_TIFF_BUILD: 'c:\projects\build'
|
|
|
|
AV_TIFF_INSTALL: 'c:\projects\install'
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
- compiler: cygwin-cmake
|
2017-06-09 18:07:08 -04:00
|
|
|
configuration: Release
|
2017-06-08 16:46:10 -04:00
|
|
|
generator: Unix Makefiles
|
|
|
|
shared: ON
|
|
|
|
- compiler: cygwin-cmake
|
2017-06-09 18:07:08 -04:00
|
|
|
configuration: Debug
|
2017-06-08 16:46:10 -04:00
|
|
|
generator: Unix Makefiles
|
|
|
|
shared: OFF
|
|
|
|
- compiler: mingw64-cmake
|
2017-06-09 18:07:08 -04:00
|
|
|
configuration: Release
|
2017-06-08 16:46:10 -04:00
|
|
|
generator: Unix Makefiles
|
|
|
|
shared: ON
|
|
|
|
- compiler: mingw64-cmake
|
2017-06-09 18:07:08 -04:00
|
|
|
configuration: Debug
|
2017-06-08 16:46:10 -04:00
|
|
|
generator: Unix Makefiles
|
|
|
|
shared: OFF
|
|
|
|
- compiler: vc14-cmake
|
2017-06-09 18:07:08 -04:00
|
|
|
configuration: Release
|
2017-06-08 16:46:10 -04:00
|
|
|
generator: Visual Studio 14 2015 Win64
|
|
|
|
shared: ON
|
|
|
|
- compiler: vc14-cmake
|
2017-06-09 18:07:08 -04:00
|
|
|
configuration: Debug
|
2017-06-08 16:46:10 -04:00
|
|
|
generator: Visual Studio 14 2015 Win64
|
|
|
|
shared: OFF
|
|
|
|
- compiler: vc14-nmake
|
2017-06-09 18:07:08 -04:00
|
|
|
configuration: Release
|
2018-03-23 19:18:09 -04:00
|
|
|
- compiler: vc9-cmake
|
|
|
|
configuration: Debug
|
|
|
|
generator: Visual Studio 9 2008
|
|
|
|
shared: ON
|
2017-06-08 16:46:10 -04:00
|
|
|
|
|
|
|
cache:
|
2020-09-25 05:12:02 -04:00
|
|
|
#- 'c:\projects\download -> appveyor.yml'
|
2017-06-08 16:46:10 -04:00
|
|
|
|
|
|
|
# Operating system (build VM template)
|
2020-09-25 04:10:07 -04:00
|
|
|
os: 'Visual Studio 2017'
|
2017-06-08 16:46:10 -04:00
|
|
|
|
|
|
|
# clone directory
|
|
|
|
clone_folder: 'c:\projects\libtiff'
|
|
|
|
clone_depth: 5
|
|
|
|
|
|
|
|
platform: x64
|
|
|
|
|
|
|
|
init:
|
|
|
|
- git config --global core.autocrlf input
|
2017-11-23 03:23:34 -05:00
|
|
|
|
|
|
|
before_build:
|
2020-09-25 04:43:43 -04:00
|
|
|
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`C:\Cygwin64\bin\cygpath -u %AV_TIFF_SOURCE%`) DO SET AV_TIFF_CYG_SOURCE=%%F'
|
|
|
|
- 'FOR /F "tokens=* USEBACKQ" %%F IN (`C:\Cygwin64\bin\cygpath -u %AV_TIFF_INSTALL%`) DO SET AV_TIFF_CYG_INSTALL=%%F'
|
2017-06-08 16:46:10 -04:00
|
|
|
- 'if %compiler%==cygwin-cmake C:\Cygwin64\setup-x86_64 -q -R C:\Cygwin64 -s http://cygwin.mirror.constant.com -l %AV_TIFF_DOWNLOAD%\cygwin -P cmake,libjpeg-devel,zlib-devel'
|
|
|
|
- 'if %compiler%==cygwin-cmake set "PATH=C:\Cygwin64\bin;%PATH%"'
|
2020-09-25 04:43:43 -04:00
|
|
|
- set
|
2020-09-25 04:57:15 -04:00
|
|
|
- 'if %compiler%==cygwin-cmake dir C:\Cygwin64\bin'
|
|
|
|
- 'if %compiler%==cygwin-cmake dir C:\Cygwin64\bin\cmake.exe'
|
2020-09-25 05:47:23 -04:00
|
|
|
- 'if %compiler%==cygwin-cmake C:\Cygwin64\bin\cmake.exe --version || echo CMake not found'
|
|
|
|
- 'if %compiler%==cygwin-cmake C:\Cygwin64\bin\cmake --version || echo CMake not found'
|
|
|
|
- 'if %compiler%==cygwin-cmake cygpath --version || echo cygpath not found'
|
|
|
|
- 'if %compiler%==cygwin-cmake cmake --version || echo CMake not found'
|
2017-06-08 16:46:10 -04:00
|
|
|
- 'if %compiler%==mingw64-cmake set "PATH=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%"'
|
|
|
|
- set "AV_CMAKE_ARGS=-DBUILD_SHARED_LIBS:BOOL=%shared%"
|
|
|
|
- 'if %compiler%==mingw64-cmake set "PATH=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin;%PATH%"'
|
|
|
|
- 'if %compiler%==mingw64-cmake set "AV_CMAKE_ARGS=%AV_CMAKE_ARGS% -DCMAKE_MAKE_PROGRAM=C:\mingw-w64\x86_64-6.3.0-posix-seh-rt_v5-rev1\mingw64\bin\mingw32-make"'
|
|
|
|
- set "AV_TIFF_CMAKE_SOURCE=%AV_TIFF_SOURCE%"
|
|
|
|
- set "AV_TIFF_CMAKE_INSTALL=%AV_TIFF_INSTALL%"
|
|
|
|
- 'if %compiler%==cygwin-cmake set "AV_TIFF_CMAKE_SOURCE=%AV_TIFF_CYG_SOURCE%'
|
|
|
|
- 'if %compiler%==cygwin-cmake set "AV_TIFF_CMAKE_INSTALL=%AV_TIFF_CYG_INSTALL%'
|
|
|
|
- 'if %compiler%==vc14-nmake call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" %platform%'
|
|
|
|
- mkdir %AV_TIFF_BUILD%
|
|
|
|
- cd %AV_TIFF_BUILD%
|
|
|
|
- if NOT %compiler%==vc14-nmake echo Running cmake -G "%generator%" -DCMAKE_INSTALL_PREFIX=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_TIFF_CMAKE_SOURCE%
|
|
|
|
- 'if %compiler%==cygwin-cmake bash -c "cmake -G \"%generator%\" -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%"'
|
|
|
|
- 'if %compiler%==mingw64-cmake cmake -G "%generator%" -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%'
|
|
|
|
- 'if %compiler%==vc14-cmake cmake -G "%generator%" -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%'
|
2018-03-23 19:18:09 -04:00
|
|
|
- 'if %compiler%==vc9-cmake cmake -G "%generator%" -DCMAKE_INSTALL_PREFIX:PATH=%AV_TIFF_CMAKE_INSTALL% -DCMAKE_BUILD_TYPE=%configuration% %AV_CMAKE_ARGS% %AV_TIFF_CMAKE_SOURCE%'
|
2017-06-08 16:46:10 -04:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- if NOT %compiler%==vc14-nmake cd %AV_TIFF_BUILD%
|
|
|
|
- if %compiler%==vc14-nmake cd %AV_TIFF_SOURCE%
|
|
|
|
- 'if %compiler%==cygwin-cmake bash -c "cmake --build . --config %configuration% --target install"'
|
|
|
|
- 'if %compiler%==mingw64-cmake cmake --build . --config %configuration% --target install'
|
|
|
|
- 'if %compiler%==vc14-cmake cmake --build . --config %configuration% --target install'
|
2018-03-23 19:18:09 -04:00
|
|
|
- 'if %compiler%==vc9-cmake cmake --build . --config %configuration% --target install'
|
2017-06-08 16:46:10 -04:00
|
|
|
- 'if %compiler%==vc14-nmake nmake /f Makefile.vc EXTRAFLAGS=/DHAVE_SNPRINTF=1'
|
|
|
|
- 'if %compiler%==vc14-nmake mkdir %AV_TIFF_INSTALL%'
|
|
|
|
- 'if %compiler%==vc14-nmake mkdir %AV_TIFF_INSTALL%\bin'
|
|
|
|
- 'if %compiler%==vc14-nmake mkdir %AV_TIFF_INSTALL%\lib'
|
|
|
|
- 'if %compiler%==vc14-nmake mkdir %AV_TIFF_INSTALL%\include'
|
|
|
|
- 'if %compiler%==vc14-nmake copy tools\*.exe %AV_TIFF_INSTALL%\bin'
|
|
|
|
- 'if %compiler%==vc14-nmake copy port\*.lib %AV_TIFF_INSTALL%\lib'
|
|
|
|
- 'if %compiler%==vc14-nmake copy libtiff\tiff.h %AV_TIFF_INSTALL%\include'
|
|
|
|
- 'if %compiler%==vc14-nmake copy libtiff\tiffio.h %AV_TIFF_INSTALL%\include'
|
|
|
|
- 'if %compiler%==vc14-nmake copy libtiff\tiffvers.h %AV_TIFF_INSTALL%\include'
|
|
|
|
- 'if %compiler%==vc14-nmake copy libtiff\tiffconf.h %AV_TIFF_INSTALL%\include'
|
|
|
|
- 'if %compiler%==vc14-nmake copy libtiff\tiffio.hxx %AV_TIFF_INSTALL%\include'
|
|
|
|
|
|
|
|
# scripts to run after build
|
|
|
|
after_build:
|
|
|
|
- cd %AV_TIFF_BUILD%
|
|
|
|
- '7z a %AV_TIFF_SOURCE%\libtiff-build.zip * -tzip'
|
|
|
|
- cd %AV_TIFF_INSTALL%
|
|
|
|
- '7z a %AV_TIFF_SOURCE%\libtiff.zip * -tzip'
|
|
|
|
|
|
|
|
before_test:
|
|
|
|
- cd %AV_TIFF_BUILD%
|
|
|
|
- 'if %compiler%==cygwin-cmake bash -c "ctest -V -C %configuration%"'
|
|
|
|
- 'if %compiler%==mingw64-cmake ctest -V -C %configuration%'
|
|
|
|
- 'if %compiler%==vc14-cmake ctest -V -C %configuration%'
|
2018-03-23 19:18:09 -04:00
|
|
|
- 'if %compiler%==vc9-cmake ctest -V -C %configuration%'
|
2017-06-08 16:46:10 -04:00
|
|
|
# vc14-nmake does not support unit tests
|
|
|
|
|
2017-11-23 03:23:34 -05:00
|
|
|
# AppVeyor don't yet have a configurable retention policy, so this will
|
|
|
|
# eventually use up all the storage allowance.
|
|
|
|
#artifacts:
|
|
|
|
# - path: libtiff.zip
|
|
|
|
# name: libtiff.zip
|
|
|
|
# - path: libtiff-build.zip
|
|
|
|
# name: libtiff-build.zip
|