blob: 05a371a6987a0ade63ef65002814e9b2a8ecc34d [file] [log] [blame]
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +04301platform: x64
2
3environment:
4 matrix:
ebraminio7d64c0e2017-04-04 15:03:51 +04305 - 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 Byagowic4f36b02016-09-01 17:31:16 +043019 ARCH: amd64
Ebrahim Byagowi755a0c22016-10-21 11:48:58 +033020 VCPKG_ARCH: x64-windows
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043021 CFG: debug
ebraminio7d64c0e2017-04-04 15:03:51 +043022 - compiler: nmake
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043023 ARCH: x86
Ebrahim Byagowi755a0c22016-10-21 11:48:58 +033024 VCPKG_ARCH: x86-windows
Ebrahim Byagowic4f36b02016-09-01 17:31:16 +043025 CFG: debug
ebraminio7d64c0e2017-04-04 15:03:51 +043026# - 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 Byagowic4f36b02016-09-01 17:31:16 +043034
Ebrahim Byagowi17f0dd22016-09-02 01:21:48 +043035 - 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 Byagowic4f36b02016-09-01 17:31:16 +043044install:
45 - C:\msys64\usr\bin\bash -lc "pacman --noconfirm -S mingw-w64-x86_64-ragel"
46
ebraminio7d64c0e2017-04-04 15:03:51 +043047 - '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 Byagowi755a0c22016-10-21 11:48:58 +033054
55build_script:
ebraminio7d64c0e2017-04-04 15:03:51 +043056 - '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 Byagowi17f0dd22016-09-02 01:21:48 +043066
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 Hosnye693ba72017-03-23 00:35:36 +020068 - '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 Byagowic4f36b02016-09-01 17:31:16 +043069
70# disable automatic tests
71test: off