aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--meson.build21
-rw-r--r--src/conversation/meson.build44
-rw-r--r--src/meson.build4
3 files changed, 57 insertions, 12 deletions
diff --git a/meson.build b/meson.build
index 50556948f..523645c88 100644
--- a/meson.build
+++ b/meson.build
@@ -263,14 +263,19 @@ if ogg_dep.found()
263 add_project_arguments('-DHAVE_OGG', language : 'c') 263 add_project_arguments('-DHAVE_OGG', language : 'c')
264endif 264endif
265 265
266if pulse_dep.found() or ogg_dep.found() or opus_dep.found() 266gst_dep = dependency('libgst', required : false)
267 gst_dep = dependency('libgst', required : false) 267if not gst_dep.found()
268 if not gst_dep.found() 268 gst_dep = cc.find_library('gstreamer', required : false)
269 gst_dep = cc.find_library('gstreamer', required : false) 269endif
270 endif 270if gst_dep.found()
271 if gst_dep.found() 271 add_project_arguments('-DHAVE_GST', language : 'c')
272 add_project_arguments('-DHAVE_GST', language : 'c') 272endif
273 endif 273
274conversation_backend = 'none'
275if pulse_dep.found() and opus_dep.found() and ogg_dep.found()
276 conversation_backend = 'pulse'
277elif gst_dep.found()
278 conversation_backend = 'gst'
274endif 279endif
275## END conversation 280## END conversation
276 281
diff --git a/src/conversation/meson.build b/src/conversation/meson.build
index 95d27072c..824a850d1 100644
--- a/src/conversation/meson.build
+++ b/src/conversation/meson.build
@@ -1,8 +1,6 @@
1libgnunetconversation_src = ['conversation_api.c', 'conversation_api_call.c'] 1libgnunetconversation_src = ['conversation_api.c', 'conversation_api_call.c']
2 2
3gnunetserviceconversation_src = ['gnunet-service-conversation.c', 3gnunetserviceconversation_src = ['gnunet-service-conversation.c']
4 'gnunet-service-conversation_resolver.c',
5 'gnunet-service-conversation_interceptor.c']
6 4
7gnunetconversationproxy_src = ['gnunet-conversation-proxy.c'] 5gnunetconversationproxy_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
87executable ('gnunet-service-conversation', 86executable ('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,41 @@ 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
98helperrecord_src = ['gnunet-helper-audio-record.c']
99helperplayback_src = ['gnunet-helper-audio-record.c']
100if conversation_backend == 'gst'
101 helperrecord_src = ['gnunet-helper-audio-record-gst.c']
102 helperplayback_src = ['gnunet-helper-audio-playback-gst.c']
103endif
104
105executable ('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
120executable ('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
diff --git a/src/meson.build b/src/meson.build
index 2e3ee2df2..251e135f4 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -46,7 +46,9 @@ subdir('revocation')
46subdir('vpn') 46subdir('vpn')
47subdir('gns') 47subdir('gns')
48subdir('zonemaster') 48subdir('zonemaster')
49#subdir('$(CONVERSATION_DIR)') 49if conversation_backend != 'none'
50 subdir('conversation')
51endif
50subdir('fs') 52subdir('fs')
51subdir('exit') 53subdir('exit')
52subdir('pt') 54subdir('pt')