meson: Added meson.build for gsm
authorYasushi SHOJI <yashi@atmark-techno.com>
Fri, 7 Jul 2017 11:20:35 +0000 (20:20 +0900)
committerNirbheek Chauhan <nirbheek@centricular.com>
Fri, 7 Jul 2017 11:32:14 +0000 (17:02 +0530)
https://bugzilla.gnome.org/show_bug.cgi?id=784646

ext/gsm/meson.build [new file with mode: 0644]
ext/meson.build

diff --git a/ext/gsm/meson.build b/ext/gsm/meson.build
new file mode 100644 (file)
index 0000000..327d619
--- /dev/null
@@ -0,0 +1,13 @@
+gsm_dep = cc.find_library('gsm', required : false)
+
+if gsm_dep.found() and (cc.has_header_symbol('gsm.h', 'gsm_create') or
+                       cc.has_header_symbol('gsm/smg.h', 'gsm_create'))
+  gstgsm = library('gstgsm',
+    ['gstgsm.c', 'gstgsmenc.c', 'gstgsmdec.c'],
+    c_args : gst_plugins_bad_args,
+    include_directories : [configinc],
+    dependencies : [gstaudio_dep, gsm_dep],
+    install : true,
+    install_dir : plugins_install_dir,
+  )
+endif
index f6ec86421a517c274aa6cd08d82cb76c90e93c0d..2f3eeb6f08f32e587345ca7d49c58d0aed7dd810 100644 (file)
@@ -16,7 +16,7 @@ subdir('flite')
 subdir('fluidsynth')
 subdir('gl')
 #subdir('gme')
-#subdir('gsm')
+subdir('gsm')
 subdir('gtk')
 subdir('hls')
 subdir('iqa')