From 0d69322974f55d3884e036da9d6f713e96763f35 Mon Sep 17 00:00:00 2001 From: "Meyer, Wolfgang" Date: Fri, 16 Sep 2022 18:45:58 +0200 Subject: meson.build: make fbpdf build optional --- meson.build | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'meson.build') diff --git a/meson.build b/meson.build index df60e2a..700d81b 100644 --- a/meson.build +++ b/meson.build @@ -14,7 +14,7 @@ x11resdir = x11resrun.stdout().strip() # pkg-config deps pixman_dep = dependency('pixman-1') -poppler_dep = dependency('poppler-glib') +poppler_dep = dependency('poppler-glib', required : get_option('pdf')) cairo_dep = dependency('cairo') drm_dep = dependency('libdrm') exif_dep = dependency('libexif') @@ -139,10 +139,12 @@ fbpdf_srcs = [ 'fbpdf.c', 'parseconfig.c', 'fbiconfig.c', fbpdf_deps = [ drm_dep, pixman_dep, poppler_dep, cairo_dep, udev_dep, input_dep, xkb_dep, systemd_dep ] -executable('fbpdf', - sources : fbpdf_srcs, - dependencies : fbpdf_deps, - install : true) +if get_option('pdf').enabled() + executable('fbpdf', + sources : fbpdf_srcs, + dependencies : fbpdf_deps, + install : true) +endif # build fbcon fbcon_srcs = [ 'fbcon.c', 'drmtools.c', 'fbtools.c', 'gfx.c', -- cgit