Commit 734ac9ec authored by Marco Felsch's avatar Marco Felsch

tests: fix build dependency

In case of cairo is found but without png support this test will fail
during linking becuase the 'cairo_surface_write_to_png' is undefined.
Signed-off-by: 's avatarMarco Felsch <m.felsch@pengutronix.de>
parent 982445fe
......@@ -35,12 +35,17 @@ if cairo_dep.found()
test_cflags += '-DHAVE_CAIRO'
tests += [
[ 'testiter', [ 'testiter.c' ], [ libpangocairo_dep ] ],
[ 'test-pangocairo-threads', [ 'test-pangocairo-threads.c' ], [ libpangocairo_dep, cairo_dep ] ],
[ 'markup-parse', [ 'markup-parse.c' ], [ libpangocairo_dep ] ],
[ 'test-layout', [ 'test-layout.c', 'test-common.c' ], [ libpangocairo_dep ] ],
[ 'test-font', [ 'test-font.c' ], [ libpangocairo_dep ] ],
[ 'testattributes', [ 'testattributes.c', 'test-common.c' ], [ libpangocairo_dep ] ],
]
if pango_cairo_backends.contains('png')
tests += [
[ 'test-pangocairo-threads', [ 'test-pangocairo-threads.c' ], [ libpangocairo_dep, cairo_dep ] ],
]
endif
endif
installed_test_data = [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment