blob: 9a34052bb9cc6fd9f7363253f000d4ca01233b39 [file] [log] [blame]
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +04301platform: x64
2
3environment:
4 matrix:
ebraminiob6f505c2017-12-06 13:51:04 +03305 - compiler: msvc
ebraminio7d64c0e2017-04-04 15:03:51 +04306 generator: Visual Studio 14
7 platform: Win32
8 configuration: Debug
ebraminiob6f505c2017-12-06 13:51:04 +03309 triplet: x86-windows
10 - compiler: msvc
ebraminio7d64c0e2017-04-04 15:03:51 +043011 generator: Visual Studio 14 Win64
12 platform: x64
13 configuration: Debug
ebraminiob6f505c2017-12-06 13:51:04 +033014 triplet: x64-windows
15
16 - compiler: msvc
ebraminio7d64c0e2017-04-04 15:03:51 +043017 generator: Visual Studio 14 ARM
18 platform: ARM
19 configuration: Debug
20
ebraminiob6f505c2017-12-06 13:51:04 +033021
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043022 - compiler: msys2
23 MINGW_PREFIX: /c/msys2/mingw64/
24 MINGW_CHOST: x86_64-w64-mingw32
25 MSYS2_ARCH: x86_64
26 - compiler: msys2
27 MINGW_PREFIX: /c/msys2/mingw32/
28 MINGW_CHOST: i686-w64-mingw32
29 MSYS2_ARCH: i686
30
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043031install:
32 - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-ragel"
33
Ebrahim Byagowi755a0c22016-10-21 11:48:58 +033034build_script:
ebraminiob6f505c2017-12-06 13:51:04 +033035 - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" vcpkg install glib:%triplet% freetype:%triplet%'
36 - 'if "%compiler%"=="msvc" md build'
37 - 'if "%compiler%"=="msvc" cd build'
38 - 'if "%compiler%"=="msvc" set PATH=%PATH%;C:\Program Files (x86)\MSBuild\14.0\Bin;c:\msys64\mingw64\bin' # msys2 is added just for having "ragel" on PATH
39
40 - 'if "%compiler%"=="msvc" if "%platform%"=="ARM" cmake -DHB_HAVE_UNISCRIBE=ON -DHB_HAVE_DIRECTWRITE=ON -G "%generator%" ../'
41 - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" cmake -DHB_HAVE_UNISCRIBE=ON -DHB_HAVE_DIRECTWRITE=ON -DHB_HAVE_GLIB=ON -DHB_HAVE_FREETYPE=ON -G "%generator%" -DCMAKE_TOOLCHAIN_FILE=c:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake ../'
42
43 - 'if "%compiler%"=="msvc" msbuild harfbuzz.sln /p:Configuration=%configuration% /p:Platform=%platform%'
ebraminio5a6d2b92017-12-06 18:27:27 +033044 - 'if "%compiler%"=="msvc" if not "%platform%"=="ARM" ctest'
ebraminio7d64c0e2017-04-04 15:03:51 +043045
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043046 - '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}"'
Behdad Esfahbod771970e2017-10-03 13:23:31 +020047 - '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 || (cat */test-suite.log test/*/test-suite.log && false)"'
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043048
ebraminiob6f505c2017-12-06 13:51:04 +033049cache:
50 - c:\tools\vcpkg\installed\
ebraminiob6f505c2017-12-06 13:51:04 +033051
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043052# disable automatic tests
53test: off