meson.build 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. project ('effector', 'vala', 'c')
  2. pkconfig = import('pkgconfig')
  3. gnome = import('gnome')
  4. glib = dependency('glib-2.0')
  5. gtk = dependency('gtk+-3.0')
  6. gegl = dependency('gegl-0.4')
  7. gflow = dependency('gflow-1.0')
  8. gtkflow = dependency('gtkflow3-1.0')
  9. effector_lib_source = [
  10. 'src/effector.vala'
  11. ]
  12. effector_lib_dependencies = [
  13. glib,
  14. gtk,
  15. gegl,
  16. gflow,
  17. gtkflow
  18. ]
  19. effector_source = [
  20. 'src/main.vala'
  21. ]
  22. thumbs_source = [
  23. 'src/thumbs.vala'
  24. ]
  25. effector_dependencies = [
  26. glib,
  27. gtk,
  28. gegl,
  29. gflow,
  30. gtkflow
  31. ]
  32. thumbs = executable('thumbs', thumbs_source,
  33. dependencies: [gegl])
  34. #run_target('generate_thumbs',
  35. # command: [meson.current_build_dir()+'/thumbs', meson.current_source_dir()],
  36. # depends: thumbs)
  37. effector_resources = gnome.compile_resources(
  38. 'effector-resources',
  39. meson.current_source_dir()+'/data/de.grindhold.effector.gresource.xml',
  40. source_dir: 'data')
  41. effector_lib_vala_args = ['--target-glib=2.38',
  42. '--vapidir='+ meson.current_source_dir()+'/vapi'
  43. ]
  44. effector_lib = library('effector', effector_lib_source, effector_resources,
  45. dependencies: effector_lib_dependencies,
  46. vala_args: effector_lib_vala_args)
  47. effector_vala_args = ['--target-glib=2.38',
  48. '--gresources='+meson.current_source_dir()+'/data/de.grindhold.effector.gresource.xml',
  49. '--vapidir='+ meson.current_source_dir()+'/vapi'
  50. ]
  51. effector = executable('effector', effector_source,
  52. dependencies: effector_dependencies,
  53. link_with: [effector_lib],
  54. vala_args: effector_vala_args,
  55. install: true)