meson: only build cairo-boilerplate and cairo-missing helper libs if needed

Used by tests and the sphinx utility, which may or may not be built,
and if they're not built we don't need to build those libs either.
This commit is contained in:
Tim-Philipp Müller 2021-01-15 18:47:08 +00:00
parent 974791b4ee
commit 51d50621be
2 changed files with 4 additions and 0 deletions

View file

@ -40,4 +40,6 @@ libcairoboilerplate = static_library('cairoboilerplate', cairo_boilerplate_sourc
include_directories: [incbase, incsrc],
dependencies: deps,
link_with: [libcairo],
install: false,
build_by_default: false,
)

View file

@ -8,4 +8,6 @@ inccairomissing = include_directories('.')
libcairomissing = static_library('cairo-missing', cairo_missing_sources,
c_args: ['-DHAVE_CONFIG_H'],
include_directories: [incbase, incsrc],
install: false,
build_by_default: false,
)