diff options
author | Meyer, Wolfgang <Wolfgang.Meyer@gossenmetrawatt.com> | 2022-09-16 18:45:58 +0200 |
---|---|---|
committer | Gerd Hoffmann <gerd@kraxel.org> | 2023-09-19 12:14:09 +0200 |
commit | 0d69322974f55d3884e036da9d6f713e96763f35 (patch) | |
tree | 1f0c76a58168aa56bca184d140391d36c48a4ad9 /meson.build | |
parent | 68c270c6a057e8f35c995fdb32616159bd2558e5 (diff) | |
download | fbida-0d69322974f55d3884e036da9d6f713e96763f35.tar.gz |
meson.build: make fbpdf build optional
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 12 |
1 files changed, 7 insertions, 5 deletions
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', |