|
| 1 | + |
| 2 | +environment: |
| 3 | + matrix: |
| 4 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2015 |
| 5 | + DEVENV_EXE: C:\"Program Files (x86)"\"Microsoft Visual Studio 14.0"\Common7\IDE\devenv.exe |
| 6 | + VSDEVCMD_BAT: C:\"Program Files (x86)"\"Microsoft Visual Studio 14.0"\Common7\Tools\VsDevCmd.bat |
| 7 | + - APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
| 8 | + DEVENV_EXE: C:\"Program Files (x86)"\"Microsoft Visual Studio"\2017\Community\Common7\IDE\devenv.exe |
| 9 | + VSDEVCMD_BAT: C:\"Program Files (x86)"\"Microsoft Visual Studio"\2017\Community\Common7\Tools\VsDevCmd.bat |
| 10 | + |
| 11 | +install: |
| 12 | + - if not exist deps mkdir deps |
| 13 | + - cd deps |
| 14 | + # zlib |
| 15 | + - curl -fsSL -o zlib.tar.gz https://github.com/madler/zlib/archive/v1.2.8.tar.gz |
| 16 | + - 7z x zlib.tar.gz -so | 7z x -si -ttar > nul |
| 17 | + - move zlib-1.2.8 zlib |
| 18 | + - cd zlib |
| 19 | + - cmake . |
| 20 | + - cmake --build . |
| 21 | + - cd .. |
| 22 | + # libPNG |
| 23 | + - curl -fsSL -o libpng.tar.gz http://prdownloads.sourceforge.net/libpng/libpng-1.6.28.tar.gz?download |
| 24 | + - 7z x libpng.tar.gz -so | 7z x -si -ttar > nul |
| 25 | + - move libpng-1.6.28 libpng |
| 26 | + - cd libpng |
| 27 | + - cmake . -DZLIB_INCLUDE_DIR=..\zlib -DZLIB_LIBRARY=..\zlib\debug\zlibstaticd.lib |
| 28 | + - cmake --build . |
| 29 | + - cd .. |
| 30 | + # Berkeley DB - required by SASL |
| 31 | + - curl -fsSL -o db-4.1.25.tar.gz http://download.oracle.com/berkeley-db/db-4.1.25.tar.gz |
| 32 | + - 7z x db-4.1.25.tar.gz -so | 7z x -si -ttar > nul |
| 33 | + - move db-4.1.25 db |
| 34 | + - cd db\build_win32 |
| 35 | + - echo using devenv %DEVENV_EXE% |
| 36 | + - '%DEVENV_EXE% db_dll.dsp /upgrade' |
| 37 | + - msbuild /p:Configuration=Release db_dll.vcxproj |
| 38 | + - cd ..\.. |
| 39 | + # Cyrus SASL |
| 40 | + - curl -fsSL -o cyrus-sasl-2.1.26.tar.gz https://www.cyrusimap.org/releases/cyrus-sasl-2.1.26.tar.gz |
| 41 | + - 7z x cyrus-sasl-2.1.26.tar.gz -so | 7z x -si -ttar > nul |
| 42 | + - move cyrus-sasl-2.1.26 sasl |
| 43 | + - cd sasl |
| 44 | + - patch -p1 -i ..\sasl-fix-snprintf-macro.patch |
| 45 | + - echo using vsdevcmd %VSDEVCMD_BAT% |
| 46 | + - '%VSDEVCMD_BAT%' |
| 47 | + - nmake /f NTMakefile OPENSSL_INCLUDE=c:\OpenSSL-Win32\include OPENSSL_LIBPATH=c:\OpenSSL-Win32\lib DB_INCLUDE=c:\projects\libvncserver\deps\db\build_win32 DB_LIBPATH=c:\projects\libvncserver\deps\db\build_win32\release DB_LIB=libdb41.lib install |
| 48 | + - cd .. |
| 49 | + # go back to source root |
| 50 | + - cd .. |
| 51 | + |
| 52 | +build_script: |
| 53 | + - mkdir build |
| 54 | + - cd build |
| 55 | + - cmake --version |
| 56 | + - cmake .. -DZLIB_INCLUDE_DIR=..\deps\zlib -DZLIB_LIBRARY=..\deps\zlib\debug\zlibstaticd.lib -DPNG_PNG_INCLUDE_DIR=..\deps\libpng -DPNG_LIBRARY=..\deps\libpng\debug\libpng16_staticd.lib -D SASL2_INCLUDE_DIR=c:\cmu\include -D LIBSASL2_LIBRARIES=c:\cmu\lib\libsasl.lib .. |
| 57 | + - cmake --build . |
| 58 | + - ctest -C Debug --output-on-failure |
| 59 | + |
| 60 | + |
0 commit comments