meson.build 693 B

12345678910111213141516171819202122
  1. audit = dependency('audit', version: '>=2.7.8', required: false)
  2. udisks2 = dependency('udisks2', required: false)
  3. gio = dependency('gio-2.0', required: false)
  4. if udisks2.found() and audit.found() and gio.found()
  5. autostartdir = join_paths(sysconfdir, 'xdg', 'autostart')
  6. configure_file(
  7. input: 'clevis-luks-udisks2.desktop.in',
  8. output: 'clevis-luks-udisks2.desktop',
  9. install_dir: autostartdir,
  10. configuration: data,
  11. )
  12. executable('clevis-luks-udisks2', 'clevis-luks-udisks2.c',
  13. dependencies: [udisks2, luksmeta, audit, jansson],
  14. install_dir: libexecdir,
  15. install: true,
  16. )
  17. else
  18. warning('Will not build udisks2 support due to missing dependencies!')
  19. endif