diff options
Diffstat (limited to 'src/conversation/meson.build')
-rw-r--r-- | src/conversation/meson.build | 96 |
1 files changed, 96 insertions, 0 deletions
diff --git a/src/conversation/meson.build b/src/conversation/meson.build new file mode 100644 index 000000000..95d27072c --- /dev/null +++ b/src/conversation/meson.build | |||
@@ -0,0 +1,96 @@ | |||
1 | libgnunetconversation_src = ['conversation_api.c', 'conversation_api_call.c'] | ||
2 | |||
3 | gnunetserviceconversation_src = ['gnunet-service-conversation.c', | ||
4 | 'gnunet-service-conversation_resolver.c', | ||
5 | 'gnunet-service-conversation_interceptor.c'] | ||
6 | |||
7 | gnunetconversationproxy_src = ['gnunet-conversation-proxy.c'] | ||
8 | |||
9 | configure_file(input : 'conversation.conf.in', | ||
10 | output : 'conversation.conf', | ||
11 | configuration : cdata, | ||
12 | install: true, | ||
13 | install_dir: pkgcfgdir) | ||
14 | |||
15 | |||
16 | if get_option('monolith') | ||
17 | foreach p : libgnunetconversation_src + gnunetserviceconversation_src | ||
18 | gnunet_src += 'conversation/' + p | ||
19 | endforeach | ||
20 | subdir_done() | ||
21 | endif | ||
22 | |||
23 | libgnunetmicrophone = library('gnunetmicrophone', | ||
24 | ['microphone.c'], | ||
25 | soversion: '0', | ||
26 | version: '0.0.0', | ||
27 | dependencies: [libgnunetutil_dep], | ||
28 | include_directories: [incdir, configuration_inc], | ||
29 | install: true, | ||
30 | install_dir: get_option('libdir')) | ||
31 | libgnunetmicrophone_dep = declare_dependency(link_with : libgnunetmicrophone) | ||
32 | pkg.generate(libgnunetmicrophone, url: 'https://www.gnunet.org', | ||
33 | description : 'Provides API to access to microphone') | ||
34 | |||
35 | libgnunetspeaker = library('gnunetspeaker', | ||
36 | ['speaker.c'], | ||
37 | soversion: '0', | ||
38 | version: '0.0.0', | ||
39 | dependencies: [libgnunetutil_dep], | ||
40 | include_directories: [incdir, configuration_inc], | ||
41 | install: true, | ||
42 | install_dir: get_option('libdir')) | ||
43 | libgnunetspeaker_dep = declare_dependency(link_with : libgnunetspeaker) | ||
44 | pkg.generate(libgnunetspeaker, url: 'https://www.gnunet.org', | ||
45 | description : 'Provides API to access to speaker') | ||
46 | |||
47 | libgnunetconversation = library('gnunetconversation', | ||
48 | libgnunetconversation_src, | ||
49 | soversion: '0', | ||
50 | version: '0.0.0', | ||
51 | dependencies: [libgnunetutil_dep, | ||
52 | libgnunetgnsrecord_dep, | ||
53 | libgnunetgns_dep, | ||
54 | libgnunetnamestore_dep, | ||
55 | libgnunetidentity_dep], | ||
56 | include_directories: [incdir, configuration_inc], | ||
57 | install: true, | ||
58 | install_dir: get_option('libdir')) | ||
59 | libgnunetconversation_dep = declare_dependency(link_with : libgnunetconversation) | ||
60 | pkg.generate(libgnunetconversation, url: 'https://www.gnunet.org', | ||
61 | description : 'Provides API to access to conversation') | ||
62 | |||
63 | shared_module('gnunet_plugin_gnsrecord_conversation', | ||
64 | ['plugin_gnsrecord_conversation.c'], | ||
65 | dependencies: [libgnunetutil_dep, | ||
66 | libgnunetconversation_dep, | ||
67 | libgnunetgns_dep, | ||
68 | libgnunetgnsrecord_dep, | ||
69 | libgnunetidentity_dep], | ||
70 | include_directories: [incdir, configuration_inc], | ||
71 | install: true, | ||
72 | install_dir: get_option('libdir')/'gnunet') | ||
73 | |||
74 | executable ('gnunet-conversation', | ||
75 | 'gnunet-conversation.c', | ||
76 | dependencies: [libgnunetconversation_dep, | ||
77 | libgnunetgns_dep, | ||
78 | libgnunetgnsrecord_dep, | ||
79 | libgnunetnamestore_dep, | ||
80 | libgnunetspeaker_dep, | ||
81 | libgnunetmicrophone_dep, | ||
82 | libgnunetidentity_dep, | ||
83 | libgnunetutil_dep], | ||
84 | include_directories: [incdir, configuration_inc], | ||
85 | install: true, | ||
86 | install_dir: get_option('bindir')) | ||
87 | executable ('gnunet-service-conversation', | ||
88 | gnunetserviceconversation_src, | ||
89 | dependencies: [libgnunetconversation_dep, | ||
90 | libgnunetspeaker_dep, | ||
91 | libgnunetmicrophone_dep, | ||
92 | libgnunetidentity_dep, | ||
93 | libgnunetcadet_dep], | ||
94 | include_directories: [incdir, configuration_inc], | ||
95 | install: true, | ||
96 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||