Skip to content

Commit

Permalink
Build libunibreak
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Feb 10, 2018
1 parent 2eeec49 commit d2efc62
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ os:
install:
- set PATH=C:\msys64\usr\bin;C:\msys64\mingw64\bin;%PATH%
- appveyor DownloadFile "https://raw.githubusercontent.com/swig/cccl/master/cccl"
- appveyor DownloadFile "https://github.com/adah1972/libunibreak/releases/download/libunibreak_4_0/libunibreak-4.0.tar.gz"
- call "%VS140COMNTOOLS%\..\..\VC\vcvarsall.bat" %PLATFORM%
- appveyor-retry C:\msys64\usr\bin\pacman -Syuu --needed --noconfirm --noprogressbar --ask=127
- appveyor-retry C:\msys64\usr\bin\pacman -S --noconfirm autoconf automake libtool gtk-doc mingw-w64-x86_64-pkg-config mingw-w64-x86_64-harfbuzz mingw-w64-x86_64-fribidi mingw-w64-x86_64-freetype
Expand All @@ -14,6 +15,9 @@ build_script:
- set LD=cccl
- set PKG_CONFIG_PATH=%PKG_CONFIG_PATH%:/mingw64/lib/pkgconfig
- bash -c "mv cccl /usr/bin"
- bash -c "tar xf libunibreak-4.0.tar.gz && cd libunibreak-4.0 && ./configure --prefix=/usr/local && make && make install"
- set UNIBREAK_CFLAGS=-I/usr/local/include
- set UNIBREAK_LIBS="-L/usr/local/lib/ -lunibreak"
- bash -c "exec 0</dev/null; ./autogen.sh"
- bash -c "exec 0</dev/null; ./configure"
- bash -c "exec 0</dev/null; make CFLAGS='/W4 /WX /wd4068'"
Expand Down
5 changes: 5 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ matrix:
include:
- os: linux
script:
- export UNIBREAK_CFLAGS= UNIBREAK_LIBS=-lunibreak
- ./autogen.sh
- ./configure --enable-gtk-doc
- make check
Expand All @@ -16,12 +17,15 @@ matrix:
- os: linux
compiler: clang
script:
- export UNIBREAK_CFLAGS= UNIBREAK_LIBS=-lunibreak
- ./autogen.sh
- ./configure
- make check

- os: osx
before_install:
- wget https://github.com/adah1972/libunibreak/releases/download/libunibreak_4_0/libunibreak-4.0.tar.gz
- (tar xf libunibreak-4.0.tar.gz && cd libunibreak-4.0 && ./configure && make && sudo make install)
- export HOMEBREW_NO_AUTO_UPDATE=1
- brew install freetype fribidi glib gtk-doc
- brew install --without-icu4c --without-glib --without-cairo
Expand All @@ -41,4 +45,5 @@ addons:
- libharfbuzz-dev
- libfribidi-dev
- libglib2.0-dev
- libunibreak-dev
- gtk-doc-tools

0 comments on commit d2efc62

Please sign in to comment.