mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-15 12:56:33 +00:00
5441a572d9
libc++_shared needs to be enabled in the application in order for it to be included and used correctly for c++ plugins. Only symbols from libraries explicitly mentioned are exported from libgstreamer_android.so so we need to add a couple of deps to be able to access the necessary functions. Requires https://gitlab.freedesktop.org/gstreamer/cerbero/merge_requests/31 https://gitlab.freedesktop.org/gstreamer/cerbero/merge_requests/1
34 lines
1.3 KiB
Makefile
Executable file
34 lines
1.3 KiB
Makefile
Executable file
LOCAL_PATH := $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE := tutorial-5
|
|
LOCAL_SRC_FILES := tutorial-5.c dummy.cpp
|
|
LOCAL_SHARED_LIBRARIES := gstreamer_android
|
|
LOCAL_LDLIBS := -llog -landroid
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
ifndef GSTREAMER_ROOT_ANDROID
|
|
$(error GSTREAMER_ROOT_ANDROID is not defined!)
|
|
endif
|
|
|
|
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
|
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm
|
|
else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
|
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/armv7
|
|
else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
|
|
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm64
|
|
else ifeq ($(TARGET_ARCH_ABI),x86)
|
|
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86
|
|
else ifeq ($(TARGET_ARCH_ABI),x86_64)
|
|
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86_64
|
|
else
|
|
$(error Target arch ABI not supported: $(TARGET_ARCH_ABI))
|
|
endif
|
|
|
|
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
|
|
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
|
|
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_PLAYBACK) $(GSTREAMER_PLUGINS_CODECS) $(GSTREAMER_PLUGINS_NET) $(GSTREAMER_PLUGINS_SYS)
|
|
G_IO_MODULES := gnutls
|
|
GSTREAMER_EXTRA_DEPS := gstreamer-video-1.0
|
|
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk
|