[cmake] Enable cmake tests on distribution and test it (#664)

This commit is contained in:
Ebrahim Byagowi 2017-12-25 01:55:48 +03:30 committed by GitHub
parent 7bfdf1a941
commit 50163976d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 1 deletions

View File

@ -59,7 +59,8 @@ jobs:
- checkout
- run: apt update && apt install -y pkg-config ragel gtk-doc-tools libfreetype6-dev libglib2.0-dev libcairo2-dev libicu-dev libgraphite2-dev
- run: ./autogen.sh && make distdir
- run: cd harfbuzz-* && ./configure && make && make check && make install
- run: cd harfbuzz-* && ./configure && make && make check && make install && make clean
- run: cd harfbuzz-* && cmake -DHB_HAVE_FREETYPE=ON -DHB_HAVE_GLIB=ON -DHB_BUILD_UTILS=ON -Bbuild -H. -GNinja && ninja -Cbuild && ninja -Cbuild test && ninja -Cbuild install
psvita:
docker:

View File

@ -1,7 +1,13 @@
# Process this file with automake to produce Makefile.in
NULL =
EXTRA_DIST =
SUBDIRS = api shaping fuzzing
EXTRA_DIST += \
CMakeLists.txt \
$(NULL)
# Convenience targets:
lib:
@$(MAKE) $(AM_MAKEFLAGS) -C $(top_builddir)/src lib

View File

@ -14,6 +14,7 @@ if HAVE_GLIB
AM_CPPFLAGS = -DSRCDIR="\"$(srcdir)\"" -I$(top_srcdir)/src/ -I$(top_builddir)/src/ $(GLIB_CFLAGS)
LDADD = $(top_builddir)/src/libharfbuzz.la $(GLIB_LIBS)
EXTRA_DIST += CMakeLists.txt
EXTRA_DIST += hb-test.h
check_PROGRAMS = $(TEST_PROGS)