mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 22:18:29 +02:00
meson: Fix build when libpng is not found
trace-to-xml.c needs cairo-xml.h which is only available when CAIRO_HAS_XML_SURFACE feature is built which is only available when both zlib and png are found. CAIRO_HAS_INTERPRETER only requires zlib.
This commit is contained in:
parent
6a6ab24759
commit
e2c1b76d71
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@ if gtk_dep.found()
|
|||
]
|
||||
endif
|
||||
|
||||
if feature_conf.get('CAIRO_HAS_INTERPRETER', 0) == 1
|
||||
if feature_conf.get('CAIRO_HAS_XML_SURFACE', 0) == 1
|
||||
expat_dep = dependency('expat', fallback: ['expat', 'expat_dep'])
|
||||
cairo_utils += [
|
||||
['trace-to-xml.c', {'deps': [expat_dep]}],
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue