meson.build 620 B

12345678910111213141516171819
  1. project('foo', 'c', 'vala')
  2. glib = dependency('glib-2.0')
  3. gobject = dependency('gobject-2.0')
  4. g_ir_compiler = find_program('g-ir-compiler')
  5. foo = shared_library('foo', 'foo.vala',
  6. install : true,
  7. install_dir : [true, false, false, true],
  8. vala_gir: 'Foo-1.0.gir',
  9. dependencies: [glib, gobject])
  10. custom_target('foo-typelib',
  11. command: [g_ir_compiler, '--output', '@OUTPUT@', '@INPUT@'],
  12. input: meson.current_build_dir() + '/Foo-1.0.gir',
  13. output: 'Foo-1.0.typelib',
  14. depends: foo)