meson.build 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. desktop_file = i18n.merge_file(
  2. input: 'org.gnome.Threads.desktop.in',
  3. output: 'org.gnome.Threads.desktop',
  4. type: 'desktop',
  5. po_dir: '../po',
  6. install: true,
  7. install_dir: join_paths(get_option('datadir'), 'applications')
  8. )
  9. desktop_utils = find_program('desktop-file-validate', required: false)
  10. if desktop_utils.found()
  11. test('Validate desktop file', desktop_utils,
  12. args: [desktop_file]
  13. )
  14. endif
  15. appstream_file = i18n.merge_file(
  16. input: 'org.gnome.Threads.appdata.xml.in',
  17. output: 'org.gnome.Threads.appdata.xml',
  18. po_dir: '../po',
  19. install: true,
  20. install_dir: join_paths(get_option('datadir'), 'appdata')
  21. )
  22. appstream_util = find_program('appstream-util', required: false)
  23. if appstream_util.found()
  24. test('Validate appstream file', appstream_util,
  25. args: ['validate', appstream_file]
  26. )
  27. endif
  28. install_data('org.gnome.Threads.gschema.xml',
  29. install_dir: join_paths(get_option('datadir'), 'glib-2.0/schemas')
  30. )
  31. compile_schemas = find_program('glib-compile-schemas', required: false)
  32. if compile_schemas.found()
  33. test('Validate schema file', compile_schemas,
  34. args: ['--strict', '--dry-run', meson.current_source_dir()]
  35. )
  36. endif