diff options
Diffstat (limited to 'src/conversation/meson.build')
-rw-r--r-- | src/conversation/meson.build | 103 |
1 files changed, 100 insertions, 3 deletions
diff --git a/src/conversation/meson.build b/src/conversation/meson.build index 95d27072c..b3fb070d9 100644 --- a/src/conversation/meson.build +++ b/src/conversation/meson.build | |||
@@ -1,8 +1,6 @@ | |||
1 | libgnunetconversation_src = ['conversation_api.c', 'conversation_api_call.c'] | 1 | libgnunetconversation_src = ['conversation_api.c', 'conversation_api_call.c'] |
2 | 2 | ||
3 | gnunetserviceconversation_src = ['gnunet-service-conversation.c', | 3 | gnunetserviceconversation_src = ['gnunet-service-conversation.c'] |
4 | 'gnunet-service-conversation_resolver.c', | ||
5 | 'gnunet-service-conversation_interceptor.c'] | ||
6 | 4 | ||
7 | gnunetconversationproxy_src = ['gnunet-conversation-proxy.c'] | 5 | gnunetconversationproxy_src = ['gnunet-conversation-proxy.c'] |
8 | 6 | ||
@@ -84,9 +82,11 @@ executable ('gnunet-conversation', | |||
84 | include_directories: [incdir, configuration_inc], | 82 | include_directories: [incdir, configuration_inc], |
85 | install: true, | 83 | install: true, |
86 | install_dir: get_option('bindir')) | 84 | install_dir: get_option('bindir')) |
85 | |||
87 | executable ('gnunet-service-conversation', | 86 | executable ('gnunet-service-conversation', |
88 | gnunetserviceconversation_src, | 87 | gnunetserviceconversation_src, |
89 | dependencies: [libgnunetconversation_dep, | 88 | dependencies: [libgnunetconversation_dep, |
89 | libgnunetutil_dep, | ||
90 | libgnunetspeaker_dep, | 90 | libgnunetspeaker_dep, |
91 | libgnunetmicrophone_dep, | 91 | libgnunetmicrophone_dep, |
92 | libgnunetidentity_dep, | 92 | libgnunetidentity_dep, |
@@ -94,3 +94,100 @@ executable ('gnunet-service-conversation', | |||
94 | include_directories: [incdir, configuration_inc], | 94 | include_directories: [incdir, configuration_inc], |
95 | install: true, | 95 | install: true, |
96 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | 96 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') |
97 | |||
98 | helperrecord_src = ['gnunet-helper-audio-record.c'] | ||
99 | helperplayback_src = ['gnunet-helper-audio-record.c'] | ||
100 | if conversation_backend == 'gst' | ||
101 | helperrecord_src = ['gnunet-helper-audio-record-gst.c'] | ||
102 | helperplayback_src = ['gnunet-helper-audio-playback-gst.c'] | ||
103 | endif | ||
104 | |||
105 | executable ('gnunet-helper-audio-record', | ||
106 | helperrecord_src, | ||
107 | dependencies: [libgnunetconversation_dep, | ||
108 | libgnunetutil_dep, | ||
109 | libgnunetspeaker_dep, | ||
110 | libgnunetmicrophone_dep, | ||
111 | gst_dep, | ||
112 | ogg_dep, | ||
113 | pulse_dep, | ||
114 | opus_dep | ||
115 | ], | ||
116 | include_directories: [incdir, configuration_inc], | ||
117 | install: true, | ||
118 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
119 | |||
120 | executable ('gnunet-helper-audio-playback', | ||
121 | helperplayback_src, | ||
122 | dependencies: [libgnunetconversation_dep, | ||
123 | libgnunetutil_dep, | ||
124 | libgnunetspeaker_dep, | ||
125 | libgnunetmicrophone_dep, | ||
126 | gst_dep, | ||
127 | ogg_dep, | ||
128 | pulse_dep, | ||
129 | opus_dep | ||
130 | ], | ||
131 | include_directories: [incdir, configuration_inc], | ||
132 | install: true, | ||
133 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
134 | |||
135 | testconvapi = executable ('test_conversation_api', | ||
136 | ['test_conversation_api.c'], | ||
137 | dependencies: [libgnunetconversation_dep, | ||
138 | libgnunetutil_dep, | ||
139 | libgnunetidentity_dep, | ||
140 | libgnunettesting_dep, | ||
141 | libgnunetgnsrecord_dep, | ||
142 | libgnunetnamestore_dep, | ||
143 | libgnunetspeaker_dep, | ||
144 | libgnunetmicrophone_dep, | ||
145 | ], | ||
146 | include_directories: [incdir, configuration_inc], | ||
147 | install: true, | ||
148 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
149 | |||
150 | testconvapitwo = executable ('test_conversation_api_twocalls', | ||
151 | ['test_conversation_api_twocalls.c'], | ||
152 | dependencies: [libgnunetconversation_dep, | ||
153 | libgnunetutil_dep, | ||
154 | libgnunetidentity_dep, | ||
155 | libgnunettesting_dep, | ||
156 | libgnunetgnsrecord_dep, | ||
157 | libgnunetnamestore_dep, | ||
158 | libgnunetspeaker_dep, | ||
159 | libgnunetmicrophone_dep, | ||
160 | ], | ||
161 | include_directories: [incdir, configuration_inc], | ||
162 | install: true, | ||
163 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
164 | |||
165 | testconvapireject = executable ('test_conversation_api_reject', | ||
166 | ['test_conversation_api_reject.c'], | ||
167 | dependencies: [libgnunetconversation_dep, | ||
168 | libgnunetutil_dep, | ||
169 | libgnunetidentity_dep, | ||
170 | libgnunettesting_dep, | ||
171 | libgnunetgnsrecord_dep, | ||
172 | libgnunetnamestore_dep, | ||
173 | libgnunetspeaker_dep, | ||
174 | libgnunetmicrophone_dep, | ||
175 | ], | ||
176 | include_directories: [incdir, configuration_inc], | ||
177 | install: true, | ||
178 | install_dir: get_option('libdir') / 'gnunet' / 'libexec') | ||
179 | |||
180 | configure_file(input : 'test_conversation.conf', | ||
181 | output : 'test_conversation.conf', | ||
182 | copy: true, | ||
183 | install: false) | ||
184 | |||
185 | test('test_conversation_api', testconvapi, workdir: meson.current_build_dir(), | ||
186 | suite: 'conversation') | ||
187 | |||
188 | test('test_conversation_api_twocalls', testconvapitwo, workdir: meson.current_build_dir(), | ||
189 | suite: 'conversation') | ||
190 | |||
191 | test('test_conversation_api_reject', testconvapireject, workdir: meson.current_build_dir(), | ||
192 | suite: 'conversation') | ||
193 | |||