diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-11 13:49:50 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-11 13:49:50 +0200 |
commit | 339954714f69bbd395aa9bbe46850dcaa98e9f29 (patch) | |
tree | 00b17e206e3acc35303d24f6a1e76bf2de8c5664 /meson.build | |
parent | 08ce54211ce4b8d6092321ca1b28773a680ddc45 (diff) |
convert form make to meson
Add .editorconfig.
Removed unused fallback definitions (for POSIX systems).
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 18 |
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) |