2012-10-08 09:55:59 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := tutorial-2
|
|
|
|
LOCAL_SRC_FILES := tutorial-2.c
|
|
|
|
LOCAL_SHARED_LIBRARIES := gstreamer_android
|
2012-10-08 13:36:16 +00:00
|
|
|
LOCAL_LDLIBS := -llog
|
2012-10-08 09:55:59 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
2013-10-31 09:24:52 +00:00
|
|
|
ifndef GSTREAMER_ROOT_ANDROID
|
|
|
|
$(error GSTREAMER_ROOT_ANDROID is not defined!)
|
2012-10-08 09:55:59 +00:00
|
|
|
endif
|
2016-10-06 20:49:19 +00:00
|
|
|
|
|
|
|
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))
|
2012-10-08 09:55:59 +00:00
|
|
|
endif
|
2016-10-06 20:49:19 +00:00
|
|
|
|
2013-10-31 09:24:52 +00:00
|
|
|
GSTREAMER_NDK_BUILD_PATH := $(GSTREAMER_ROOT)/share/gst-android/ndk-build/
|
2012-10-08 09:55:59 +00:00
|
|
|
include $(GSTREAMER_NDK_BUILD_PATH)/plugins.mk
|
|
|
|
GSTREAMER_PLUGINS := $(GSTREAMER_PLUGINS_CORE) $(GSTREAMER_PLUGINS_SYS)
|
2013-10-31 09:24:52 +00:00
|
|
|
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk
|