meson.build 815 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. project('iridium', 'c',
  2. version: '0.1.0',
  3. meson_version: '>= 0.40.0',
  4. )
  5. cc = meson.get_compiler('c')
  6. i18n = import('i18n')
  7. config_h = configuration_data()
  8. config_h.set_quoted('GETTEXT_PACKAGE', 'iridium')
  9. config_h.set_quoted('LOCALEDIR', join_paths(get_option('prefix'), get_option('localedir')))
  10. config_h.set('HAVE_LINUX_RANDOM_H', cc.has_header('linux/random.h'))
  11. salt = get_option('predefined_salt')
  12. if salt != ''
  13. config_h.set('HAVE_PREDEFINED_SALT', true)
  14. config_h.set_quoted('PREDEFINED_SALT', salt)
  15. endif
  16. configure_file(
  17. output: 'iridium-config.h',
  18. configuration: config_h,
  19. )
  20. add_project_arguments([
  21. '-I' + meson.build_root(),
  22. ], language: 'c')
  23. gnome = import('gnome')
  24. subdir('data')
  25. subdir('src')
  26. subdir('po')
  27. subdir('test')
  28. meson.add_install_script('build-aux/meson/postinstall.py')