diff options
Diffstat (limited to 'src/service/fs/meson.build')
-rw-r--r-- | src/service/fs/meson.build | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/src/service/fs/meson.build b/src/service/fs/meson.build new file mode 100644 index 000000000..9e3e05cf7 --- /dev/null +++ b/src/service/fs/meson.build | |||
@@ -0,0 +1,82 @@ | |||
1 | libgnunetfs_src = ['fs_api.c', | ||
2 | 'fs_directory.c', | ||
3 | 'fs_dirmetascan.c', | ||
4 | 'fs_download.c', | ||
5 | 'fs_file_information.c', | ||
6 | 'fs_getopt.c', | ||
7 | 'fs_list_indexed.c', | ||
8 | 'fs_publish.c', | ||
9 | 'fs_publish_ksk.c', | ||
10 | 'fs_publish_ublock.c', | ||
11 | 'fs_misc.c', | ||
12 | 'fs_namespace.c', | ||
13 | 'fs_search.c', | ||
14 | 'fs_sharetree.c', | ||
15 | 'fs_tree.c', | ||
16 | 'fs_unindex.c', | ||
17 | 'fs_uri.c', | ||
18 | 'meta_data.c'] | ||
19 | |||
20 | gnunetservicefs_src = ['gnunet-service-fs.c', | ||
21 | 'gnunet-service-fs_cp.c', | ||
22 | 'gnunet-service-fs_indexing.c', | ||
23 | 'gnunet-service-fs_pe.c', | ||
24 | 'gnunet-service-fs_pr.c', | ||
25 | 'gnunet-service-fs_push.c', | ||
26 | 'gnunet-service-fs_put.c', | ||
27 | 'gnunet-service-fs_cadet_client.c', | ||
28 | 'gnunet-service-fs_cadet_server.c'] | ||
29 | |||
30 | configure_file(input : 'fs.conf.in', | ||
31 | output : 'fs.conf', | ||
32 | configuration : cdata, | ||
33 | install: true, | ||
34 | install_dir: pkgcfgdir) | ||
35 | |||
36 | |||
37 | if get_option('monolith') | ||
38 | foreach p : libgnunetfs_src + gnunetservicefs_src | ||
39 | gnunet_src += 'fs/' + p | ||
40 | endforeach | ||
41 | endif | ||
42 | |||
43 | libgnunetfs = library('gnunetfs', | ||
44 | libgnunetfs_src, | ||
45 | soversion: '2', | ||
46 | version: '2.1.1', | ||
47 | dependencies: [libgnunetutil_dep, | ||
48 | libgnunetdatastore_dep, | ||
49 | libgnunetstatistics_dep, | ||
50 | unistr_dep], | ||
51 | include_directories: [incdir, configuration_inc], | ||
52 | install: true, | ||
53 | install_dir: get_option('libdir')) | ||
54 | libgnunetfs_dep = declare_dependency(link_with : libgnunetfs) | ||
55 | pkg.generate(libgnunetfs, url: 'https://www.gnunet.org', | ||
56 | description : 'Provides API for GNUnet File-Sharing service') | ||
57 | |||
58 | executable ('gnunet-service-fs', | ||
59 | gnunetservicefs_src, | ||
60 | dependencies: [libgnunetfs_dep, | ||
61 | libgnunetutil_dep, | ||
62 | libgnunetstatistics_dep, | ||
63 | libgnunetcore_dep, | ||
64 | libgnunetdht_dep, | ||
65 | libgnunetidentity_dep, | ||
66 | m_dep, | ||
67 | libgnunetcadet_dep, | ||
68 | libgnunetpeerstore_dep, | ||
69 | libgnunetdatastore_dep, | ||
70 | libgnunetblock_dep], | ||
71 | include_directories: [incdir, configuration_inc], | ||
72 | install: true, | ||
73 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
74 | executable ('gnunet-helper-fs-publish', | ||
75 | ['gnunet-helper-fs-publish.c'], | ||
76 | dependencies: [libgnunetfs_dep, | ||
77 | libgnunetutil_dep, | ||
78 | libgnunetblock_dep], | ||
79 | include_directories: [incdir, configuration_inc], | ||
80 | install: true, | ||
81 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
82 | |||