diff options
-rw-r--r-- | meson.build | 21 | ||||
-rw-r--r-- | src/conversation/meson.build | 44 | ||||
-rw-r--r-- | src/meson.build | 4 |
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') |
264 | endif | 264 | endif |
265 | 265 | ||
266 | if pulse_dep.found() or ogg_dep.found() or opus_dep.found() | 266 | gst_dep = dependency('libgst', required : false) |
267 | gst_dep = dependency('libgst', required : false) | 267 | if 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) | 269 | endif |
270 | endif | 270 | if gst_dep.found() |
271 | if gst_dep.found() | 271 | add_project_arguments('-DHAVE_GST', language : 'c') |
272 | add_project_arguments('-DHAVE_GST', language : 'c') | 272 | endif |
273 | endif | 273 | |
274 | conversation_backend = 'none' | ||
275 | if pulse_dep.found() and opus_dep.found() and ogg_dep.found() | ||
276 | conversation_backend = 'pulse' | ||
277 | elif gst_dep.found() | ||
278 | conversation_backend = 'gst' | ||
274 | endif | 279 | endif |
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 @@ | |||
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,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 | |||
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 | |||
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') | |||
46 | subdir('vpn') | 46 | subdir('vpn') |
47 | subdir('gns') | 47 | subdir('gns') |
48 | subdir('zonemaster') | 48 | subdir('zonemaster') |
49 | #subdir('$(CONVERSATION_DIR)') | 49 | if conversation_backend != 'none' |
50 | subdir('conversation') | ||
51 | endif | ||
50 | subdir('fs') | 52 | subdir('fs') |
51 | subdir('exit') | 53 | subdir('exit') |
52 | subdir('pt') | 54 | subdir('pt') |