project('me.sergiotarxz.owlpath', 'vala') pkg = import('pkgconfig') compiler = meson.get_compiler('c') vapidir = meson.project_source_root() / 'vapi' is_windows = false ws = '/' if compiler.has_header('windows.h') ws = '\\\\' is_windows = true endif config_h = configure_file ( output : 'config.h', configuration : { 'WS': f'"@ws@"', }, ) owlpath_deps = [ dependency('glib-2.0'), dependency('gio-2.0'), meson.get_compiler('vala').find_library('config', dirs : vapidir), ] sources = [ 'src/owlpath.vala', ] owlpath_lib = library('owlpath', sources, dependencies : owlpath_deps, install : true, install_dir: [true, true, true], ) pkg.generate(owlpath_lib) owlpath_test = executable('owlpath-test', ['test/00-owlpath.test.vala'], dependencies : owlpath_deps, link_with: [owlpath_lib] ) test ('owlpath', owlpath_test )