summaryrefslogtreecommitdiff
path: root/recipes/gst-android-1.0.recipe
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-16 10:51:35 +0200
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2013-04-22 08:35:29 +0200
commit5586da3302015e50372cd2e444bf247f988661d7 (patch)
tree5ab65cb8ad921cb7482b34a1f53ef14c8326fc36 /recipes/gst-android-1.0.recipe
parent7a0b20f74adb69693f9f2812516061d1a3a7dff3 (diff)
gstreamer-1.0: Add Android specific 1.0 changes
Diffstat (limited to 'recipes/gst-android-1.0.recipe')
-rw-r--r--recipes/gst-android-1.0.recipe37
1 files changed, 37 insertions, 0 deletions
diff --git a/recipes/gst-android-1.0.recipe b/recipes/gst-android-1.0.recipe
new file mode 100644
index 00000000..779849a9
--- /dev/null
+++ b/recipes/gst-android-1.0.recipe
@@ -0,0 +1,37 @@
+# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
+from cerbero.utils import shell
+from custom import list_gstreamer_1_0_plugins_by_category
+
+class Recipe(recipe.Recipe):
+ name = 'gst-android-1.0'
+ version = '0.1'
+ licenses = [License.LGPLv2_1]
+ stype = SourceType.CUSTOM
+ btype = BuildType.CUSTOM
+
+ files_devel = [
+ 'share/gst-android/ndk-build-1.0/gstreamer_android.c.in',
+ 'share/gst-android/ndk-build-1.0/gstreamer.mk',
+ 'share/gst-android/ndk-build-1.0/gstreamer_prebuilt.mk',
+ 'share/gst-android/ndk-build-1.0/tools.mk',
+ 'share/gst-android/ndk-build-1.0/plugins.mk',
+ 'share/gst-android/ndk-build-1.0/GStreamer.java',
+ 'share/gst-android/ndk-build-1.0/tools/windows',
+ 'share/gst-android/ndk-build-1.0/fontconfig',
+ ]
+
+ def install(self):
+ ndk_build_dir = os.path.join(self.config.prefix, 'share', 'gst-android', 'ndk-build-1.0')
+ shell.copy_dir(os.path.join(self.config.data_dir, 'ndk-build-1.0'),
+ ndk_build_dir)
+
+ plugins, replacements = list_gstreamer_1_0_plugins_by_category(self.config)
+ f = open(os.path.join(ndk_build_dir, 'plugins.mk'), 'w')
+ for c, p in plugins.iteritems():
+ p = ' '.join(p)
+ for k,v in replacements.iteritems():
+ p = p.replace(k, v)
+ f.write('GSTREAMER_PLUGINS_%s := %s\n' % (c.upper(), p))
+ f.close()
+
+