[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 02/02: BUILD: Meson add nss
From: |
gnunet |
Subject: |
[gnunet] 02/02: BUILD: Meson add nss |
Date: |
Wed, 27 Sep 2023 17:58:56 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 3bc1764da01efc44fa3f1317fe1e0c24f3e761dc
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Wed Sep 27 17:58:50 2023 +0200
BUILD: Meson add nss
---
meson.build | 7 +++++++
src/gns/meson.build | 6 +++---
src/gns/nss/meson.build | 31 +++++++++++++++++++++++++++++++
3 files changed, 41 insertions(+), 3 deletions(-)
diff --git a/meson.build b/meson.build
index cb3d74cb9..79f7ef7aa 100644
--- a/meson.build
+++ b/meson.build
@@ -272,6 +272,13 @@ if cc.check_header('sys/param.h')
add_project_arguments('-DHAVE_SYS_PARAM_H', language : 'c')
endif
+# NSS
+have_nss = false
+if cc.check_header('nss.h')
+ have_nss = true
+ add_project_arguments('-DHAVE_GLIBCNSS', language : 'c')
+endif
+
# TUN
tun_found = false
if cc.check_header('if_tun.h')
diff --git a/src/gns/meson.build b/src/gns/meson.build
index bce7dccb5..d9f1b5e9d 100644
--- a/src/gns/meson.build
+++ b/src/gns/meson.build
@@ -145,6 +145,6 @@ executable ('gnunet-dns2gns',
install_dir: get_option('libdir') / 'gnunet' / 'libexec')
-#if nss_dep.found()
-# subdir('nss')
-#endif
+if have_nss
+ subdir('nss')
+endif
diff --git a/src/gns/nss/meson.build b/src/gns/nss/meson.build
new file mode 100644
index 000000000..1573acf86
--- /dev/null
+++ b/src/gns/nss/meson.build
@@ -0,0 +1,31 @@
+# FIXME:
+#
+# EXTRA_DIST = map-file
+# AM_LDFLAGS=-avoid-version -module -export-dynamic
+#
+shared_library('nss_gns',
+ ['nss_gns_query.c', 'nss_gns.c'],
+ dependencies: [libgnunetutil_dep,
+ libgnunetgnsrecord_dep],
+ link_args: ['-fno-version', '-module', '-export-dynamic',
'-shrext', '.so.2', '-W', 'l'],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
+shared_library('nss_gns4',
+ ['nss_gns_query.c', 'nss_gns.c'],
+ c_args: ['-DNSS_IPV4_ONLY=1'],
+ dependencies: [libgnunetutil_dep,
+ libgnunetgnsrecord_dep],
+ link_args: ['-fno-version', '-module', '-export-dynamic',
'-shrext', '.so.2', '-W', 'l'],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
+shared_library('nss_gns6',
+ ['nss_gns_query.c', 'nss_gns.c'],
+ c_args: ['-DNSS_IPV6_ONLY=1'],
+ dependencies: [libgnunetutil_dep,
+ libgnunetgnsrecord_dep],
+ link_args: ['-fno-version', '-module', '-export-dynamic',
'-shrext', '.so.2', '-W', 'l'],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.