[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 02/02: BUILD: Meson - install more files
From: |
gnunet |
Subject: |
[gnunet] 02/02: BUILD: Meson - install more files |
Date: |
Sat, 23 Sep 2023 21:17:33 +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 8ac5695b5e44e64d19ccc9ec1c3bc83849ec39c3
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sat Sep 23 21:17:26 2023 +0200
BUILD: Meson - install more files
---
src/ats/meson.build | 2 +-
src/block/meson.build | 5 +++--
src/conversation/meson.build | 2 +-
src/datacache/meson.build | 14 +++++++++++---
src/datastore/meson.build | 20 +++++++++++++++-----
src/dht/meson.build | 22 ++++++++++++++++++++--
src/dhtu/meson.build | 9 +++++++--
src/dns/meson.build | 20 +++++++++++++++-----
src/fragmentation/meson.build | 4 +++-
src/fs/meson.build | 1 +
src/gnsrecord/meson.build | 8 ++++++--
src/hello/meson.build | 8 ++++++--
src/identity/meson.build | 12 +++++++++---
src/json/meson.build | 4 +++-
src/namecache/meson.build | 21 ++++++++++++++++-----
src/namestore/meson.build | 21 ++++++++++++++++-----
src/nat/meson.build | 33 +++++++++++++++++++++------------
src/nse/meson.build | 37 +++++++++++++++++++++++--------------
src/revocation/meson.build | 6 ++++--
19 files changed, 181 insertions(+), 68 deletions(-)
diff --git a/src/ats/meson.build b/src/ats/meson.build
index 123f394bf..2719ea219 100644
--- a/src/ats/meson.build
+++ b/src/ats/meson.build
@@ -46,7 +46,7 @@ shared_module('gnunet_plugin_ats_proportional',
libgnunetstatistics_dep],
include_directories: [incdir, configuration_inc],
install: true,
- install_dir: get_option('libdir'))
+ install_dir: get_option('libdir')/'gnunet')
executable ('gnunet-service-ats',
gnunetserviceats_src,
diff --git a/src/block/meson.build b/src/block/meson.build
index 5b0542c19..3b0a211ab 100644
--- a/src/block/meson.build
+++ b/src/block/meson.build
@@ -34,11 +34,12 @@ shared_module('gnunet_plugin_block_test',
dependencies: plugin_dep,
include_directories: [incdir, configuration_inc],
install: true,
- install_dir: get_option('libdir'))
+ install_dir: get_option('libdir')/'gnunet')
+
shared_module('gnunet_plugin_block_template',
['plugin_block_template.c'],
dependencies: plugin_dep,
include_directories: [incdir, configuration_inc],
install: false,
- install_dir: get_option('libdir'))
+ install_dir: get_option('libdir')/'gnunet')
diff --git a/src/conversation/meson.build b/src/conversation/meson.build
index dc76affff..37da098d9 100644
--- a/src/conversation/meson.build
+++ b/src/conversation/meson.build
@@ -66,7 +66,7 @@ shared_module('gnunet_plugin_gnsrecord_conversation',
libgnunetidentity_dep],
include_directories: [incdir, configuration_inc],
install: true,
- install_dir: get_option('libdir'))
+ install_dir: get_option('libdir')/'gnunet')
executable ('gnunet-conversation',
'gnunet-conversation.c',
diff --git a/src/datacache/meson.build b/src/datacache/meson.build
index 8613e527f..4342c1ecf 100644
--- a/src/datacache/meson.build
+++ b/src/datacache/meson.build
@@ -19,7 +19,9 @@ libgnunetdatacache = library('gnunetdatacache',
libgnunetdatacache_src,
soversion: '0.1.0',
dependencies: [libgnunetutil_dep, libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetdatacache_dep = declare_dependency(link_with : libgnunetdatacache)
pkg.generate(libgnunetdatacache, url: 'https://www.gnunet.org',
description : 'Provides datacache API for temporary storage to
disk')
@@ -30,7 +32,11 @@ shared_module('gnunet_plugin_datacache_sqlite',
libgnunetdatacache_dep,
sqlite_dep,
libgnunetsq_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
+
+
if pq_dep.found()
shared_module('gnunet_plugin_datacache_postgres',
['plugin_datacache_postgres.c'],
@@ -38,5 +44,7 @@ if pq_dep.found()
libgnunetdatacache_dep,
pq_dep,
libgnunetpq_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
endif
diff --git a/src/datastore/meson.build b/src/datastore/meson.build
index 6c83b228b..9fc161d4b 100644
--- a/src/datastore/meson.build
+++ b/src/datastore/meson.build
@@ -23,7 +23,9 @@ libgnunetdatastore = library('gnunetdatastore',
dependencies: [libgnunetutil_dep,
libgnunetstatistics_dep,
libgnunetdatacache_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetdatastore_dep = declare_dependency(link_with : libgnunetdatastore)
pkg.generate(libgnunetdatastore, url: 'https://www.gnunet.org',
description : 'Management API for the datastore for persistent
storage to disk')
@@ -34,7 +36,9 @@ shared_module('gnunet_plugin_datastore_sqlite',
libgnunetdatastore_dep,
sqlite_dep,
libgnunetsq_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
if pq_dep.found()
shared_module('gnunet_plugin_datastore_postgres',
@@ -43,7 +47,9 @@ if pq_dep.found()
libgnunetdatastore_dep,
pq_dep,
libgnunetpq_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
endif
executable ('gnunet-datastore',
@@ -52,12 +58,16 @@ executable ('gnunet-datastore',
libgnunetutil_dep,
libgnunetstatistics_dep,
libgnunetdatacache_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('bindir'))
executable ('gnunet-service-datastore',
gnunetservicedatastore_src,
dependencies: [libgnunetdatastore_dep,
libgnunetutil_dep,
libgnunetstatistics_dep,
libgnunetdatacache_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet'/'libexec')
diff --git a/src/dht/meson.build b/src/dht/meson.build
index 8b595a58f..572cc6e5d 100644
--- a/src/dht/meson.build
+++ b/src/dht/meson.build
@@ -21,7 +21,9 @@ libgnunetdht = library('gnunetdht',
libgnunetdht_src,
soversion: '4.0.0',
dependencies: libgnunetutil_dep,
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetdht_dep = declare_dependency(link_with : libgnunetdht)
pkg.generate(libgnunetdht, url: 'https://www.gnunet.org',
description : 'Provides API for the R5N distributed hash table')
@@ -34,6 +36,19 @@ shared_module('gnunet_plugin_block_dht',
libgnunetblockgroup_dep],
include_directories: [incdir, configuration_inc])
+executable ('gnunet-dht',
+ gnunetservicedht_src,
+ dependencies: [libgnunetdht_dep, libgnunetutil_dep,
+ libgnunetblock_dep,
+ m_dep,
+ libgnunetdatacache_dep,
+ libgnunetstatistics_dep,
+ libgnunetblockgroup_dep,
+ libgnunethello_dep],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('bindir'))
+
executable ('gnunet-service-dht',
gnunetservicedht_src,
dependencies: [libgnunetdht_dep, libgnunetutil_dep,
@@ -43,4 +58,7 @@ executable ('gnunet-service-dht',
libgnunetstatistics_dep,
libgnunetblockgroup_dep,
libgnunethello_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet'/'libexec')
+
diff --git a/src/dhtu/meson.build b/src/dhtu/meson.build
index 155b6744c..bec4c2ec2 100644
--- a/src/dhtu/meson.build
+++ b/src/dhtu/meson.build
@@ -16,7 +16,9 @@ endif
shared_module('gnunet_plugin_dhtu_ip',
libgnunetplugindhtuip_src,
dependencies: [libgnunetutil_dep, m_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
shared_module('gnunet_plugin_dhtu_gnunet',
libgnunetplugindhtugnunet_src,
@@ -28,4 +30,7 @@ shared_module('gnunet_plugin_dhtu_gnunet',
libgnunetpeerinfo_dep,
libgnunetnse_dep,
libgnunettransport_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
+
diff --git a/src/dns/meson.build b/src/dns/meson.build
index 9cc98b24a..54d92109d 100644
--- a/src/dns/meson.build
+++ b/src/dns/meson.build
@@ -21,7 +21,9 @@ endif
libgnunetdns = library('gnunetdns',
libgnunetdns_src,
dependencies: libgnunetutil_dep,
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetdns_dep = declare_dependency(link_with : libgnunetdns)
pkg.generate(libgnunetdns, url: 'https://www.gnunet.org',
description : 'Provides API to access GNUnet\'s DNS service (to
intercept and manipulate DNS queries)')
@@ -29,19 +31,27 @@ pkg.generate(libgnunetdns, url: 'https://www.gnunet.org',
shared_module('gnunet_plugin_block_dns',
libgnunetpluginblockdns_src,
dependencies: [libgnunetutil_dep, libgnunetblockgroup_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
executable ('gnunet-service-dns',
gnunetservicedns_src,
dependencies: [libgnunetdns_dep, libgnunetutil_dep,
libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('bindir'))
executable ('gnunet-dns-monitor',
gnunetdnsmonitor_src,
dependencies: [libgnunetdns_dep, libgnunetutil_dep,
libgnunetdns_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet'/'libexec')
executable ('gnunet-dns-redirector',
gnunetdnsredirector_src,
dependencies: [libgnunetdns_dep, libgnunetutil_dep,
libgnunetdns_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet'/'libexec')
diff --git a/src/fragmentation/meson.build b/src/fragmentation/meson.build
index 486c560c2..fa3d08a0a 100644
--- a/src/fragmentation/meson.build
+++ b/src/fragmentation/meson.build
@@ -10,7 +10,9 @@ endif
libgnunetfragmentation = library('gnunetfragmentation',
libgnunetfragmentation_src,
dependencies: [m_dep, libgnunetutil_dep, libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetfragmentation_dep = declare_dependency(link_with :
libgnunetfragmentation)
pkg.generate(libgnunetfragmentation, url: 'https://www.gnunet.org',
description : 'Provides API for sending and receiving messages
that are larger than the MTU of the transport')
diff --git a/src/fs/meson.build b/src/fs/meson.build
index 855cccaea..5fb5a1ff4 100644
--- a/src/fs/meson.build
+++ b/src/fs/meson.build
@@ -42,6 +42,7 @@ endif
libgnunetfs = library('gnunetfs',
libgnunetfs_src,
+ soversion: '3.1.1',
dependencies: [libgnunetutil_dep,
libgnunetdatastore_dep,
libgnunetstatistics_dep,
diff --git a/src/gnsrecord/meson.build b/src/gnsrecord/meson.build
index 28e211f16..e6ea8237f 100644
--- a/src/gnsrecord/meson.build
+++ b/src/gnsrecord/meson.build
@@ -18,7 +18,9 @@ libgnunetgnsrecord = library('gnunetgnsrecord',
sodium_dep,
libgnunetidentity_dep,
gcrypt_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetgnsrecord_dep = declare_dependency(link_with : libgnunetgnsrecord)
pkg.generate(libgnunetgnsrecord, url: 'https://www.gnunet.org',
description : 'Provides API for manipulating GNS records')
@@ -28,6 +30,8 @@ libgnunetgnsrecordjson = library('gnunetgnsrecordjson',
libgnunetgnsrecordjson_src,
soversion: '0.0.0',
dependencies: [libgnunetutil_dep, libgnunetgnsrecord_dep, json_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetgnsrecordjson_dep = declare_dependency(link_with : libgnunetgnsrecord)
diff --git a/src/hello/meson.build b/src/hello/meson.build
index f2e4c446c..bac772f32 100644
--- a/src/hello/meson.build
+++ b/src/hello/meson.build
@@ -17,7 +17,9 @@ libgnunethello = library('gnunethello',
libgnunethello_src,
soversion: '1.0.1',
dependencies: libgnunetutil_dep,
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunethello_dep = declare_dependency(link_with : libgnunethello)
pkg.generate(libgnunethello, url: 'https://www.gnunet.org',
description : 'Helper library for handling GNUnet HELLO messages')
@@ -26,5 +28,7 @@ pkg.generate(libgnunethello, url: 'https://www.gnunet.org',
executable ('gnunet-hello',
gnunethello_src,
dependencies: [libgnunethello_dep, libgnunetutil_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('bindir'))
diff --git a/src/identity/meson.build b/src/identity/meson.build
index e792752a7..b9d54fa91 100644
--- a/src/identity/meson.build
+++ b/src/identity/meson.build
@@ -20,7 +20,9 @@ endif
libgnunetidentity = library('gnunetidentity',
libgnunetidentity_src,
dependencies: [libgnunetutil_dep, sodium_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetidentity_dep = declare_dependency(link_with : libgnunetidentity)
pkg.generate(libgnunetidentity, url: 'https://www.gnunet.org',
description : 'API to access and organize private keys of the
user egos')
@@ -30,11 +32,15 @@ executable ('gnunet-identity',
dependencies: [libgnunetidentity_dep,
libgnunetutil_dep,
libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('bindir'))
executable ('gnunet-service-identity',
gnunetserviceidentity_src,
dependencies: [libgnunetidentity_dep,
libgnunetutil_dep,
libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet'/'libexec')
diff --git a/src/json/meson.build b/src/json/meson.build
index 3ebd10ec1..92356b5a5 100644
--- a/src/json/meson.build
+++ b/src/json/meson.build
@@ -15,7 +15,9 @@ libgnunetjson = library('gnunetjson',
libgnunetjson_src,
soversion: '0.0.0',
dependencies: [libgnunetutil_dep, json_dep, mhd_dep, zlib_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetjson_dep = declare_dependency(link_with : libgnunetjson)
pkg.generate(libgnunetjson, url: 'https://www.gnunet.org',
description : 'Library for JSON de/serialization')
diff --git a/src/namecache/meson.build b/src/namecache/meson.build
index 719d94c0b..f00fbae41 100644
--- a/src/namecache/meson.build
+++ b/src/namecache/meson.build
@@ -22,7 +22,9 @@ libgnunetnamecache = library('gnunetnamecache',
soversion: '0.0.0',
dependencies: [libgnunetutil_dep,
libgnunetgnsrecord_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetnamecache_dep = declare_dependency(link_with : libgnunetnamecache)
pkg.generate(libgnunetnamecache, url: 'https://www.gnunet.org',
description : 'Provides API for storing GNS records to a cache')
@@ -33,7 +35,9 @@ shared_module('gnunet_plugin_namecache_sqlite',
libgnunetgnsrecord_dep,
sqlite_dep,
libgnunetsq_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
if pq_dep.found()
shared_module('gnunet_plugin_namecache_postgres',
@@ -42,7 +46,9 @@ if pq_dep.found()
libgnunetgnsrecord_dep,
pq_dep,
libgnunetpq_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
endif
executable ('gnunet-namecache',
@@ -51,11 +57,16 @@ executable ('gnunet-namecache',
libgnunetutil_dep,
libgnunetgnsrecord_dep,
libgnunetidentity_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('bindir'))
executable ('gnunet-service-namecache',
gnunetservicenamecache_src,
dependencies: [libgnunetnamecache_dep,
libgnunetutil_dep,
libgnunetgnsrecord_dep,
libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet'/'libexec')
+
diff --git a/src/namestore/meson.build b/src/namestore/meson.build
index 5b20d93ae..f531158ee 100644
--- a/src/namestore/meson.build
+++ b/src/namestore/meson.build
@@ -24,7 +24,9 @@ libgnunetnamestore = library('gnunetnamestore',
dependencies: [libgnunetutil_dep,
libgnunetgnsrecord_dep,
libgnunetidentity_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetnamestore_dep = declare_dependency(link_with : libgnunetnamestore)
pkg.generate(libgnunetnamestore, url: 'https://www.gnunet.org',
description : 'Provides API for storing GNS records to a
database')
@@ -37,7 +39,9 @@ shared_module('gnunet_plugin_namestore_sqlite',
libgnunetsq_dep,
libgnunetstatistics_dep,
sqlite_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
if pq_dep.found()
shared_module('gnunet_plugin_namestore_postgres',
@@ -48,7 +52,9 @@ if pq_dep.found()
libgnunetpq_dep,
libgnunetstatistics_dep,
pq_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet')
endif
executable ('gnunet-namestore',
@@ -57,7 +63,9 @@ executable ('gnunet-namestore',
libgnunetutil_dep,
libgnunetgnsrecord_dep,
libgnunetidentity_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('bindir'))
executable ('gnunet-service-namestore',
gnunetservicenamestore_src,
dependencies: [libgnunetnamestore_dep,
@@ -66,4 +74,7 @@ executable ('gnunet-service-namestore',
libgnunetgnsrecord_dep,
libgnunetidentity_dep,
libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet'/'libexec')
+
diff --git a/src/nat/meson.build b/src/nat/meson.build
index 23c2bb18d..e660f59be 100644
--- a/src/nat/meson.build
+++ b/src/nat/meson.build
@@ -15,19 +15,28 @@ configure_file(input : 'nat.conf.in',
install_dir: pkgcfgdir)
-if get_option('monolith') == false
- libgnunetnat = library('gnunetnat',
- libgnunetnat_src,
- dependencies: libgnunetutil_dep,
- include_directories: [incdir, configuration_inc])
- libgnunetnat_dep = declare_dependency(link_with : libgnunetnat)
- executable ('gnunet-service-nat',
- gnunetservicenat_src,
- dependencies: [libgnunetnat_dep, libgnunetutil_dep,
- libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
-else
+if get_option('monolith')
foreach p : libgnunetnat_src + gnunetservicenat_src
gnunet_src += 'nat/' + p
endforeach
+ subdir_done()
endif
+
+libgnunetnat = library('gnunetnat',
+ libgnunetnat_src,
+ dependencies: libgnunetutil_dep,
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
+libgnunetnat_dep = declare_dependency(link_with : libgnunetnat)
+pkg.generate(libgnunetnat, url: 'https://www.gnunet.org',
+ description : 'Provides API for accessing the NAT service')
+
+executable ('gnunet-service-nat',
+ gnunetservicenat_src,
+ dependencies: [libgnunetnat_dep, libgnunetutil_dep,
+ libgnunetstatistics_dep],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir')/'gnunet'/'libexec')
+
diff --git a/src/nse/meson.build b/src/nse/meson.build
index 1fe8fe39e..0aeb9c96d 100644
--- a/src/nse/meson.build
+++ b/src/nse/meson.build
@@ -9,21 +9,30 @@ configure_file(input : 'nse.conf.in',
install_dir: pkgcfgdir)
-if get_option('monolith') == false
- libgnunetnse = library('gnunetnse',
- libgnunetnse_src,
- dependencies: libgnunetutil_dep,
- include_directories: [incdir, configuration_inc])
- libgnunetnse_dep = declare_dependency(link_with : libgnunetnse)
- executable ('gnunet-service-nse',
- gnunetservicense_src,
- dependencies: [libgnunetnse_dep, libgnunetutil_dep,
- libgnunetcore_dep,
- m_dep,
- libgnunetstatistics_dep],
- include_directories: [incdir, configuration_inc])
-else
+if get_option('monolith')
foreach p : libgnunetnse_src + gnunetservicense_src
gnunet_src += 'nse/' + p
endforeach
+ subdir_done()
endif
+
+libgnunetnse = library('gnunetnse',
+ libgnunetnse_src,
+ dependencies: libgnunetutil_dep,
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
+libgnunetnse_dep = declare_dependency(link_with : libgnunetnse)
+pkg.generate(libgnunetnse, url: 'https://www.gnunet.org',
+ description : 'Provides API for accessing the NSE service')
+
+executable ('gnunet-service-nse',
+ gnunetservicense_src,
+ dependencies: [libgnunetnse_dep, libgnunetutil_dep,
+ libgnunetcore_dep,
+ m_dep,
+ libgnunetstatistics_dep],
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir') / 'gnunet' / 'libexec')
+
diff --git a/src/revocation/meson.build b/src/revocation/meson.build
index f1023b00a..fda4bc6f4 100644
--- a/src/revocation/meson.build
+++ b/src/revocation/meson.build
@@ -20,7 +20,9 @@ libgnunetrevocation = library('gnunetrevocation',
libgnunetrevocation_src,
soversion: '0.0.0',
dependencies: [libgnunetutil_dep, libgnunetidentity_dep],
- include_directories: [incdir, configuration_inc])
+ include_directories: [incdir, configuration_inc],
+ install: true,
+ install_dir: get_option('libdir'))
libgnunetrevocation_dep = declare_dependency(link_with : libgnunetrevocation)
pkg.generate(libgnunetrevocation, url: 'https://www.gnunet.org',
description : 'Provides API to perform key revocation in GNUnet')
@@ -32,7 +34,7 @@ shared_module('gnunet_plugin_block_revocation',
libgnunetblock_dep],
include_directories: [incdir, configuration_inc],
install: true,
- install_dir: get_option('libdir'))
+ install_dir: get_option('libdir')/'gnunet')
executable ('gnunet-revocation',
['gnunet-revocation.c'],
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.