diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-05-12 14:58:44 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-05-12 14:58:44 +0200 |
commit | 949938fc2f3cd2f252527972e877b7f85b1de339 (patch) | |
tree | e9238b968318da6f02ac94f8a8ea6844a7068713 | |
parent | edc89367fee8abcc8104e27b1d7171e0872393b3 (diff) | |
download | fbida-949938fc2f3cd2f252527972e877b7f85b1de339.tar.gz |
meson: conditionally build ida
-rw-r--r-- | meson.build | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/meson.build b/meson.build index a6aa1de..8d50385 100644 --- a/meson.build +++ b/meson.build @@ -151,10 +151,12 @@ ida_srcs = [ 'ida.c', 'man.c', 'hex.c', 'x11.c', 'viewer.c', ida_deps = [ pixman_dep, exif_dep, image_deps, math_dep, motif_dep, xpm_dep, xt_dep, xext_dep, x11_dep ] -executable('ida', - sources : ida_srcs, - dependencies : ida_deps, - include_directories : trans_inc, - install : true) -install_man('man/ida.1') -install_data('Ida.ad', install_dir : x11resdir) +if motif_dep.found() + executable('ida', + sources : ida_srcs, + dependencies : ida_deps, + include_directories : trans_inc, + install : true) + install_man('man/ida.1') + install_data('Ida.ad', install_dir : x11resdir) +endif |