summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build18
1 files changed, 18 insertions, 0 deletions
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)