From 339954714f69bbd395aa9bbe46850dcaa98e9f29 Mon Sep 17 00:00:00 2001 From: Jannis Hoffmann Date: Thu, 11 Jul 2024 13:49:50 +0200 Subject: convert form make to meson Add .editorconfig. Removed unused fallback definitions (for POSIX systems). --- meson.build | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 meson.build (limited to 'meson.build') diff --git a/meson.build b/meson.build new file mode 100644 index 0000000..0fef8bb --- /dev/null +++ b/meson.build @@ -0,0 +1,18 @@ +project('fehqlibs', 'c', + meson_version : '>=1.1.0', + version : run_command('cut', '-f2', '-d-', 'VERSION', check : true).stdout().strip(), + license : 'CUSTOM', + license_files : 'LICENSE', + default_options : ['c_std=gnu99']) + +subdir('include') +subdir('src') +subdir('man') + +pkg_mod = import('pkgconfig') +pkg_mod.generate(qlibs_lib, subdirs : qlibs_hdr_subdir) +pkg_mod.generate(dnsresolv_lib, subdirs : qlibs_hdr_subdir) + +qlibs_dep = declare_dependency(link_with : qlibs_lib, include_directories : qlibs_inc) +qlibs_socket_dep = declare_dependency(link_with : socket_lib, include_directories : qlibs_inc) +qlibs_dnsresolv_dep = declare_dependency(link_with : dnsresolv_lib, include_directories : qlibs_inc) -- cgit v1.2.3