diff options
Diffstat (limited to 'src/regex/meson.build')
-rw-r--r-- | src/regex/meson.build | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/src/regex/meson.build b/src/regex/meson.build new file mode 100644 index 000000000..24bc8e31e --- /dev/null +++ b/src/regex/meson.build | |||
@@ -0,0 +1,80 @@ | |||
1 | libgnunetregex_src = ['regex_api_announce.c', | ||
2 | 'regex_api_search.c'] | ||
3 | libgnunetregexblock_src = ['regex_block_lib.c'] | ||
4 | |||
5 | gnunetserviceregex_src = ['gnunet-service-regex.c', | ||
6 | 'regex_internal_dht.c', | ||
7 | 'regex_internal.c'] | ||
8 | |||
9 | configure_file(input : 'regex.conf.in', | ||
10 | output : 'regex.conf', | ||
11 | configuration : cdata, | ||
12 | install: true, | ||
13 | install_dir: pkgcfgdir) | ||
14 | |||
15 | |||
16 | if get_option('monolith') | ||
17 | foreach p : libgnunetregex_src + libgnunetregexblock_src + gnunetserviceregex_src | ||
18 | gnunet_src += 'regex/' + p | ||
19 | endforeach | ||
20 | subdir_done() | ||
21 | endif | ||
22 | |||
23 | libgnunetregex = library('gnunetregex', | ||
24 | libgnunetregex_src, | ||
25 | soversion: '3', | ||
26 | version: '3.0.1', | ||
27 | dependencies: libgnunetutil_dep, | ||
28 | include_directories: [incdir, configuration_inc], | ||
29 | install: true, | ||
30 | install_dir: get_option('libdir')) | ||
31 | pkg.generate(libgnunetregex, url: 'https://www.gnunet.org', | ||
32 | description : 'Provides API for accessing the regex service') | ||
33 | libgnunetregex_dep = declare_dependency(link_with : libgnunetregex) | ||
34 | libgnunetregexblock = library('gnunetregexblock', | ||
35 | libgnunetregexblock_src, | ||
36 | soversion: '1', | ||
37 | version: '1.0.0', | ||
38 | dependencies: libgnunetutil_dep, | ||
39 | include_directories: [incdir, configuration_inc], | ||
40 | install: true, | ||
41 | install_dir: get_option('libdir')) | ||
42 | libgnunetregexblock_dep = declare_dependency(link_with : libgnunetregexblock) | ||
43 | |||
44 | shared_module('gnunet_plugin_block_regex', | ||
45 | ['plugin_block_regex.c'], | ||
46 | dependencies: [libgnunetutil_dep, | ||
47 | libgnunetregexblock_dep, | ||
48 | libgnunetblock_dep, | ||
49 | libgnunetblockgroup_dep], | ||
50 | include_directories: [incdir, configuration_inc], | ||
51 | install:true, | ||
52 | install_dir: get_option('libdir')/'gnunet') | ||
53 | |||
54 | |||
55 | executable ('gnunet-service-regex', | ||
56 | gnunetserviceregex_src, | ||
57 | dependencies: [libgnunetregex_dep, libgnunetutil_dep, | ||
58 | libgnunetdht_dep, | ||
59 | libgnunetstatistics_dep, | ||
60 | libgnunetregex_dep, | ||
61 | libgnunetregexblock_dep], | ||
62 | include_directories: [incdir, configuration_inc], | ||
63 | install: true, | ||
64 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
65 | executable ('gnunet-daemon-regexprofiler', | ||
66 | ['gnunet-daemon-regexprofiler.c', | ||
67 | 'regex_internal.c', | ||
68 | 'regex_internal_dht.c', | ||
69 | 'regex_test_lib.c', | ||
70 | 'regex_test_graph.c', | ||
71 | 'regex_test_random.c'], | ||
72 | dependencies: [libgnunetregex_dep, libgnunetutil_dep, | ||
73 | libgnunetdht_dep, | ||
74 | libgnunetstatistics_dep, | ||
75 | libgnunetregex_dep, | ||
76 | libgnunetregexblock_dep], | ||
77 | include_directories: [incdir, configuration_inc], | ||
78 | install: true, | ||
79 | install_dir: get_option('libdir')/'gnunet'/'libexec') | ||
80 | |||