summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMatthieu Bouron <matthieu.bouron@gmail.com>2015-04-13 23:39:29 +0200
committerSebastian Dröge <sebastian@centricular.com>2015-05-04 09:38:20 +0200
commitfd7f655c132c07e6a34cad04f8caf0567448c818 (patch)
treeeb56114bf828c4ca398bed7938c02f4a72304ece /data
parent09c96dd74773ccb945254438e9fe0e9358937efb (diff)
gst-android: Automatically install plugins java classes
https://bugzilla.gnome.org/show_bug.cgi?id=748688
Diffstat (limited to 'data')
-rwxr-xr-xdata/ndk-build/gstreamer-1.0.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/data/ndk-build/gstreamer-1.0.mk b/data/ndk-build/gstreamer-1.0.mk
index 853e405c..29d3326c 100755
--- a/data/ndk-build/gstreamer-1.0.mk
+++ b/data/ndk-build/gstreamer-1.0.mk
@@ -134,6 +134,16 @@ GSTREAMER_PLUGINS_LIBS := $(call fix-plugin-name,sdp,sdpelem)
GSTREAMER_PLUGINS_LIBS := $(call fix-plugin-name,scaletempo,scaletempoplugin)
GSTREAMER_PLUGINS_LIBS := $(call fix-plugin-name,realmedia,rmdemux)
+GSTREAMER_PLUGINS_CLASSES := $(strip \
+ $(subst $(GSTREAMER_NDK_BUILD_PATH),, \
+ $(foreach plugin, $(GSTREAMER_PLUGINS), \
+ $(wildcard $(GSTREAMER_NDK_BUILD_PATH)$(plugin)/*.java))))
+
+GSTREAMER_PLUGINS_WITH_CLASSES := $(strip \
+ $(subst $(GSTREAMER_NDK_BUILD_PATH),, \
+ $(foreach plugin, $(GSTREAMER_PLUGINS), \
+ $(wildcard $(GSTREAMER_NDK_BUILD_PATH)$(plugin)))))
+
# Generate the plugins' declaration strings
GSTREAMER_PLUGINS_DECLARE := $(foreach plugin, $(GSTREAMER_PLUGINS), \
GST_PLUGIN_STATIC_DECLARE($(plugin));\n)
@@ -226,6 +236,12 @@ buildsharedlibrary_$(TARGET_ARCH_ABI): $(GSTREAMER_ANDROID_O)
copyjavasource_$(TARGET_ARCH_ABI):
@$(call host-mkdir,$(GSTREAMER_JAVA_SRC_DIR)/org/freedesktop/gstreamer)
@$(call host-cp,$(GSTREAMER_NDK_BUILD_PATH)/GStreamer.java,$(GSTREAMER_JAVA_SRC_DIR)/org/freedesktop/gstreamer)
+ @$(foreach plugin,$(GSTREAMER_PLUGINS_WITH_CLASSES), \
+ $(call host-mkdir, $(GSTREAMER_JAVA_SRC_DIR)/org/freedesktop/gstreamer/$(plugin)))
+ @$(foreach file,$(GSTREAMER_PLUGINS_CLASSES), \
+ $(call host-cp, \
+ $(GSTREAMER_NDK_BUILD_PATH)$(file), \
+ $(GSTREAMER_JAVA_SRC_DIR)/org/freedesktop/gstreamer/$(file)))
ifeq ($(GSTREAMER_INCLUDE_FONTS),yes)
@$(HOST_SED) -i "s;@INCLUDE_FONTS@;;g" $(GSTREAMER_JAVA_SRC_DIR)/org/freedesktop/gstreamer/GStreamer.java
else