Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 1 | platform: x64 |
| 2 | |
| 3 | environment: |
| 4 | matrix: |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 5 | - compiler: cmake |
| 6 | generator: Visual Studio 14 |
| 7 | platform: Win32 |
| 8 | configuration: Debug |
| 9 | - compiler: cmake |
| 10 | generator: Visual Studio 14 Win64 |
| 11 | platform: x64 |
| 12 | configuration: Debug |
| 13 | - compiler: cmake |
| 14 | generator: Visual Studio 14 ARM |
| 15 | platform: ARM |
| 16 | configuration: Debug |
| 17 | |
| 18 | - compiler: nmake |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 19 | ARCH: amd64 |
Ebrahim Byagowi | 755a0c2 | 2016-10-21 11:48:58 +0330 | [diff] [blame] | 20 | VCPKG_ARCH: x64-windows |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 21 | CFG: debug |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 22 | - compiler: nmake |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 23 | ARCH: x86 |
Ebrahim Byagowi | 755a0c2 | 2016-10-21 11:48:58 +0330 | [diff] [blame] | 24 | VCPKG_ARCH: x86-windows |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 25 | CFG: debug |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 26 | # - compiler: nmake |
| 27 | # ARCH: amd64 |
| 28 | # VCPKG_ARCH: x64-windows |
| 29 | # CFG: release |
| 30 | # - compiler: nmake |
| 31 | # ARCH: x86 |
| 32 | # VCPKG_ARCH: x86-windows |
| 33 | # CFG: release |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 34 | |
Ebrahim Byagowi | 17f0dd2 | 2016-09-02 01:21:48 +0430 | [diff] [blame] | 35 | - compiler: msys2 |
| 36 | MINGW_PREFIX: /c/msys2/mingw64/ |
| 37 | MINGW_CHOST: x86_64-w64-mingw32 |
| 38 | MSYS2_ARCH: x86_64 |
| 39 | - compiler: msys2 |
| 40 | MINGW_PREFIX: /c/msys2/mingw32/ |
| 41 | MINGW_CHOST: i686-w64-mingw32 |
| 42 | MSYS2_ARCH: i686 |
| 43 | |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 44 | install: |
| 45 | - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-ragel" |
| 46 | |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 47 | - 'if "%compiler%"=="nmake" call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %ARCH%' |
| 48 | # - 'if "%compiler%"=="nmake" git clone https://github.com/Microsoft/vcpkg' |
| 49 | # - 'if "%compiler%"=="nmake" cd vcpkg' |
| 50 | # - 'if "%compiler%"=="nmake" powershell -exec bypass scripts\bootstrap.ps1' |
| 51 | # - 'if "%compiler%"=="nmake" vcpkg install freetype:%VCPKG_ARCH%' |
| 52 | # - 'if "%compiler%"=="nmake" copy installed\%VCPKG_ARCH%\debug\lib\freetyped.lib installed\%VCPKG_ARCH%\lib' |
| 53 | # - 'if "%compiler%"=="nmake" cd ..' |
Ebrahim Byagowi | 755a0c2 | 2016-10-21 11:48:58 +0330 | [diff] [blame] | 54 | |
| 55 | build_script: |
ebraminio | 7d64c0e | 2017-04-04 15:03:51 +0430 | [diff] [blame] | 56 | - 'if "%compiler%"=="cmake" md build' |
| 57 | - 'if "%compiler%"=="cmake" cd build' |
| 58 | - 'if "%compiler%"=="cmake" set PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin;c:\msys64\mingw64\bin' # msys2 is added just for having "ragel" on PATH |
| 59 | - 'if "%compiler%"=="cmake" cmake -DHB_HAVE_UNISCRIBE=ON -DHB_HAVE_DIRECTWRITE=ON -G "%generator%" ../' |
| 60 | - 'if "%compiler%"=="cmake" msbuild harfbuzz.sln /p:Configuration=%configuration% /p:Platform=%platform%' |
| 61 | |
| 62 | - 'if "%compiler%"=="nmake" C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; PATH=$PATH:/mingw64/bin:/mingw32/bin; ./autogen.sh; make distdir"' |
| 63 | - 'if "%compiler%"=="nmake" cd harfbuzz-*\win32' |
| 64 | - 'if "%compiler%"=="nmake" nmake /f Makefile.vc CFG=%CFG% UNISCRIBE=1 DIRECTWRITE=1' # FREETYPE=1 FREETYPE_DIR=..\..\vcpkg\installed\%VCPKG_ARCH%\include ADDITIONAL_LIB_DIR=..\..\vcpkg\installed\%VCPKG_ARCH%\lib' |
| 65 | - 'if "%compiler%"=="nmake" nmake /f Makefile.vc CFG=%CFG% UNISCRIBE=1 DIRECTWRITE=1 install' # FREETYPE=1 install' |
Ebrahim Byagowi | 17f0dd2 | 2016-09-02 01:21:48 +0430 | [diff] [blame] | 66 | |
| 67 | - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-$MSYS2_ARCH-{freetype,cairo,icu,gettext,gobject-introspection,gcc,gcc-libs,glib2,graphite2,pkg-config}"' |
Khaled Hosny | e693ba7 | 2017-03-23 00:35:36 +0200 | [diff] [blame] | 68 | - 'if "%compiler%"=="msys2" C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER; PATH=$PATH:/mingw64/bin:/mingw32/bin; ./autogen.sh --with-uniscribe --with-freetype --with-glib --with-gobject --with-cairo --with-icu --with-graphite2 --build=%MINGW_CHOST% --host=%MINGW_CHOST% --prefix=%MINGW_PREFIX%; make; make check"' |
Ebrahim Byagowi | c4f36b0 | 2016-09-01 17:31:16 +0430 | [diff] [blame] | 69 | |
| 70 | # disable automatic tests |
| 71 | test: off |