Adding pkgconfig.

This commit is contained in:
sergiotarxz 2022-07-07 00:28:25 +02:00
parent 038ea02eb5
commit 854ba7fae4
1 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
project('me.sergiotarxz.owlpath', 'vala')
pkg = import('pkgconfig')
compiler = meson.get_compiler('c')
vapidir = meson.project_source_root() / 'vapi'
@ -33,9 +34,11 @@ owlpath_lib = library('owlpath',
install : true,
install_dir: [true, true, true],
)
pkg.generate(owlpath_lib)
executable('owlpath-test',
owlpath_test = executable('owlpath-test',
['test/00-owlpath.test.vala'],
dependencies : owlpath_deps,
link_with: [owlpath_lib]
)
test ('owlpath', owlpath_test )