cairo_src = [ 'graphic_cairo.cpp' ] cairo_deps = [ dependency('fontconfig'), dependency('cairo'), dependency('cairo-ft'), dependency('pango'), dependency('pangocairo') ] microtex_cairo_lib = library('microtex-cairo', cairo_src, link_with: microtex_lib, include_directories: inc, dependencies: cairo_deps, version: meson.project_version(), soversion: microtex_api_version, install: true ) microtex_cairo_dep = declare_dependency( link_with: [microtex_lib, microtex_cairo_lib], include_directories: ['.', inc], dependencies: [ dependency('cairo'), dependency('pango'), ], version: meson.project_version() ) if get_option('TARGET_DEVEL') pkgconfig.generate(microtex_cairo_lib, libraries: microtex_lib, version: meson.project_version(), name: 'microtex-cairo', filebase: 'microtex-cairo', subdirs: ['microtex/platform/cairo'], description: 'cairomm backend to microtex' ) endif if install_headerfiles install_headers([ 'graphic_cairo.h' ], subdir: 'microtex/platform/cairo') endif