diff options
Diffstat (limited to 'src/contrib/service/conversation/meson.build')
-rw-r--r-- | src/contrib/service/conversation/meson.build | 203 |
1 files changed, 203 insertions, 0 deletions
diff --git a/src/contrib/service/conversation/meson.build b/src/contrib/service/conversation/meson.build new file mode 100644 index 000000000..4ecc0fc93 --- /dev/null +++ b/src/contrib/service/conversation/meson.build | |||
@@ -0,0 +1,203 @@ | |||
1 | libgnunetconversation_src = ['conversation_api.c', 'conversation_api_call.c'] | ||
2 | |||
3 | gnunetserviceconversation_src = ['gnunet-service-conversation.c'] | ||
4 | |||
5 | gnunetconversationproxy_src = ['gnunet-conversation-proxy.c'] | ||
6 | |||
7 | configure_file(input : 'conversation.conf.in', | ||
8 | output : 'conversation.conf', | ||
9 | configuration : cdata, | ||
10 | install: true, | ||
11 | install_dir: pkgcfgdir) | ||
12 | |||
13 | |||
14 | if get_option('monolith') | ||
15 | foreach p : libgnunetconversation_src + gnunetserviceconversation_src | ||
16 | gnunet_src += 'conversation/' + p | ||
17 | endforeach | ||
18 | endif | ||
19 | |||
20 | libgnunetmicrophone = library('gnunetmicrophone', | ||
21 | ['microphone.c'], | ||
22 | soversion: '0', | ||
23 | version: '0.0.0', | ||
24 | dependencies: [libgnunetutil_dep], | ||
25 | include_directories: [incdir, configuration_inc], | ||
26 | install: true, | ||
27 | install_dir: get_option('libdir')) | ||
28 | libgnunetmicrophone_dep = declare_dependency(link_with : libgnunetmicrophone) | ||
29 | pkg.generate(libgnunetmicrophone, url: 'https://www.gnunet.org', | ||
30 | description : 'Provides API to access to microphone') | ||
31 | |||
32 | libgnunetspeaker = library('gnunetspeaker', | ||
33 | ['speaker.c'], | ||
34 | soversion: '0', | ||
35 | version: '0.0.0', | ||
36 | dependencies: [libgnunetutil_dep], | ||
37 | include_directories: [incdir, configuration_inc], | ||
38 | install: true, | ||
39 | install_dir: get_option('libdir')) | ||
40 | libgnunetspeaker_dep = declare_dependency(link_with : libgnunetspeaker) | ||
41 | pkg.generate(libgnunetspeaker, url: 'https://www.gnunet.org', | ||
42 | description : 'Provides API to access to speaker') | ||
43 | |||
44 | libgnunetconversation = library('gnunetconversation', | ||
45 | libgnunetconversation_src, | ||
46 | soversion: '0', | ||
47 | version: '0.0.0', | ||
48 | dependencies: [libgnunetutil_dep, | ||
49 | libgnunetgnsrecord_dep, | ||
50 | libgnunetgns_dep, | ||
51 | libgnunetnamestore_dep, | ||
52 | libgnunetidentity_dep], | ||
53 | include_directories: [incdir, configuration_inc], | ||
54 | install: true, | ||
55 | install_dir: get_option('libdir')) | ||
56 | libgnunetconversation_dep = declare_dependency(link_with : libgnunetconversation) | ||
57 | pkg.generate(libgnunetconversation, url: 'https://www.gnunet.org', | ||
58 | description : 'Provides API to access to conversation') | ||
59 | |||
60 | shared_module('gnunet_plugin_gnsrecord_conversation', | ||
61 | ['plugin_gnsrecord_conversation.c'], | ||
62 | dependencies: [libgnunetutil_dep, | ||
63 | libgnunetconversation_dep, | ||
64 | libgnunetgns_dep, | ||
65 | libgnunetgnsrecord_dep, | ||
66 | libgnunetidentity_dep], | ||
67 | include_directories: [incdir, configuration_inc], | ||
68 | install: true, | ||
69 | install_dir: get_option('libdir')/'gnunet') | ||
70 | |||
71 | executable ('gnunet-conversation', | ||
72 | 'gnunet-conversation.c', | ||
73 | dependencies: [libgnunetconversation_dep, | ||
74 | libgnunetgns_dep, | ||
75 | libgnunetgnsrecord_dep, | ||
76 | libgnunetnamestore_dep, | ||
77 | libgnunetspeaker_dep, | ||
78 | libgnunetmicrophone_dep, | ||
79 | libgnunetidentity_dep, | ||
80 | libgnunetutil_dep], | ||
81 | include_directories: [incdir, configuration_inc], | ||
82 | install: true, | ||
83 | install_dir: get_option('bindir')) | ||
84 | |||
85 | executable ('gnunet-conversation-test', | ||
86 | 'gnunet-conversation-test.c', | ||
87 | dependencies: [libgnunetconversation_dep, | ||
88 | libgnunetspeaker_dep, | ||
89 | libgnunetmicrophone_dep, | ||
90 | libgnunetutil_dep], | ||
91 | include_directories: [incdir, configuration_inc], | ||
92 | install: true, | ||
93 | install_dir: get_option('bindir')) | ||
94 | |||
95 | executable ('gnunet-service-conversation', | ||
96 | gnunetserviceconversation_src, | ||
97 | dependencies: [libgnunetconversation_dep, | ||
98 | libgnunetutil_dep, | ||
99 | libgnunetspeaker_dep, | ||
100 | libgnunetmicrophone_dep, | ||
101 | libgnunetidentity_dep, | ||
102 | libgnunetcadet_dep], | ||
103 | include_directories: [incdir, configuration_inc], | ||
104 | install: true, | ||
105 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
106 | |||
107 | helperrecord_src = ['gnunet-helper-audio-record.c'] | ||
108 | helperplayback_src = ['gnunet-helper-audio-record.c'] | ||
109 | if conversation_backend == 'gst' | ||
110 | helperrecord_src = ['gnunet-helper-audio-record-gst.c'] | ||
111 | helperplayback_src = ['gnunet-helper-audio-playback-gst.c'] | ||
112 | endif | ||
113 | |||
114 | executable ('gnunet-helper-audio-record', | ||
115 | helperrecord_src, | ||
116 | dependencies: [libgnunetconversation_dep, | ||
117 | libgnunetutil_dep, | ||
118 | libgnunetspeaker_dep, | ||
119 | libgnunetmicrophone_dep, | ||
120 | gst_dep, | ||
121 | gst_app_dep, | ||
122 | gst_audio_dep, | ||
123 | ogg_dep, | ||
124 | pulse_dep, | ||
125 | opus_dep | ||
126 | ], | ||
127 | include_directories: [incdir, configuration_inc], | ||
128 | install: true, | ||
129 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
130 | |||
131 | executable ('gnunet-helper-audio-playback', | ||
132 | helperplayback_src, | ||
133 | dependencies: [libgnunetconversation_dep, | ||
134 | libgnunetutil_dep, | ||
135 | libgnunetspeaker_dep, | ||
136 | libgnunetmicrophone_dep, | ||
137 | gst_dep, | ||
138 | gst_app_dep, | ||
139 | gst_audio_dep, | ||
140 | ogg_dep, | ||
141 | pulse_dep, | ||
142 | opus_dep | ||
143 | ], | ||
144 | include_directories: [incdir, configuration_inc], | ||
145 | install: true, | ||
146 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
147 | |||
148 | testconvapi = executable ('test_conversation_api', | ||
149 | ['test_conversation_api.c'], | ||
150 | dependencies: [libgnunetconversation_dep, | ||
151 | libgnunetutil_dep, | ||
152 | libgnunetidentity_dep, | ||
153 | libgnunettesting_dep, | ||
154 | libgnunetgnsrecord_dep, | ||
155 | libgnunetnamestore_dep, | ||
156 | libgnunetspeaker_dep, | ||
157 | libgnunetmicrophone_dep, | ||
158 | ], | ||
159 | include_directories: [incdir, configuration_inc], | ||
160 | install: false) | ||
161 | |||
162 | testconvapitwo = executable ('test_conversation_api_twocalls', | ||
163 | ['test_conversation_api_twocalls.c'], | ||
164 | dependencies: [libgnunetconversation_dep, | ||
165 | libgnunetutil_dep, | ||
166 | libgnunetidentity_dep, | ||
167 | libgnunettesting_dep, | ||
168 | libgnunetgnsrecord_dep, | ||
169 | libgnunetnamestore_dep, | ||
170 | libgnunetspeaker_dep, | ||
171 | libgnunetmicrophone_dep, | ||
172 | ], | ||
173 | include_directories: [incdir, configuration_inc], | ||
174 | install: false) | ||
175 | |||
176 | testconvapireject = executable ('test_conversation_api_reject', | ||
177 | ['test_conversation_api_reject.c'], | ||
178 | dependencies: [libgnunetconversation_dep, | ||
179 | libgnunetutil_dep, | ||
180 | libgnunetidentity_dep, | ||
181 | libgnunettesting_dep, | ||
182 | libgnunetgnsrecord_dep, | ||
183 | libgnunetnamestore_dep, | ||
184 | libgnunetspeaker_dep, | ||
185 | libgnunetmicrophone_dep, | ||
186 | ], | ||
187 | include_directories: [incdir, configuration_inc], | ||
188 | install: false) | ||
189 | |||
190 | configure_file(input : 'test_conversation.conf', | ||
191 | output : 'test_conversation.conf', | ||
192 | copy: true, | ||
193 | install: false) | ||
194 | |||
195 | test('test_conversation_api', testconvapi, workdir: meson.current_build_dir(), | ||
196 | suite: ['conversation', 'contrib']) | ||
197 | |||
198 | test('test_conversation_api_twocalls', testconvapitwo, workdir: meson.current_build_dir(), | ||
199 | suite: ['conversation', 'contrib']) | ||
200 | |||
201 | test('test_conversation_api_reject', testconvapireject, workdir: meson.current_build_dir(), | ||
202 | suite: ['conversation', 'contrib']) | ||
203 | |||