1 LOCAL_PATH := $(call my-dir)
5 LOCAL_MODULE := tutorial-3
6 LOCAL_SRC_FILES := tutorial-3.c
7 LOCAL_SHARED_LIBRARIES := gstreamer_android
8 LOCAL_LDLIBS := -llog -landroid
9 include $(BUILD_SHARED_LIBRARY)
11 ifndef GSTREAMER_ROOT_ANDROID
12 $(error GSTREAMER_ROOT_ANDROID is not defined!)
15 ifeq ($(TARGET_ARCH_ABI),armeabi)
16 GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm
17 else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
18 GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/armv7
19 else ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
20 GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/arm64
21 else ifeq ($(TARGET_ARCH_ABI),x86)
22 GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86
23 else ifeq ($(TARGET_ARCH_ABI),x86_64)
24 GSTREAMER_ROOT := $(GSTREAMER_ROOT_ANDROID)/x86_64
26 $(error Target arch ABI not supported: $(TARGET_ARCH_ABI))
29 GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
30 include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
31 GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_SYS) $(GSTREAMER_PLUGINS_EFFECTS)
32 GSTREAMER_EXTRA_DEPS := gstreamer-video-1.0
33 include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk