meson.build 571 B

12345678910111213141516171819202122232425262728293031323334
  1. libbar_sources = [
  2. 'bar.c',
  3. 'bar.h',
  4. ]
  5. libbar_deps = [
  6. dependency('gobject-2.0'),
  7. libfoo_dep,
  8. ]
  9. libbar = shared_library('bar', libbar_sources,
  10. dependencies: libbar_deps,
  11. install: true,
  12. )
  13. libbar_api_ver = '1.0'
  14. libbar_gir = gnome.generate_gir(libbar,
  15. sources: libbar_sources,
  16. namespace: 'Bar',
  17. nsversion: libbar_api_ver,
  18. packages: 'gobject-2.0',
  19. symbol_prefix: 'bar',
  20. extra_args: [
  21. '--c-include=bar.h',
  22. ],
  23. )
  24. libbar_vapi = gnome.generate_vapi('bar-' + libbar_api_ver,
  25. sources: libbar_gir[0],
  26. packages: libfoo_vapi,
  27. install: true,
  28. )