2014-07-28 18:09:55 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
2015-05-05 08:08:18 +00:00
|
|
|
GST_PATH := $(LOCAL_PATH)/../../../../../
|
|
|
|
|
2014-07-28 18:09:55 +00:00
|
|
|
LOCAL_MODULE := gstplayer
|
2015-05-05 08:08:18 +00:00
|
|
|
LOCAL_SRC_FILES := player.c \
|
|
|
|
$(GST_PATH)/lib/gst/player/gstplayer.c \
|
|
|
|
$(GST_PATH)/lib/gst/player/gstplayer-media-info.c
|
|
|
|
LOCAL_C_INCLUDES := $(GST_PATH)/lib
|
2014-07-28 18:09:55 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES := gstreamer_android
|
|
|
|
LOCAL_LDLIBS := -llog -landroid
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
2015-05-05 08:08:18 +00:00
|
|
|
ifeq ($(TARGET_ARCH_ABI),armeabi)
|
|
|
|
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ARM)
|
|
|
|
else ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
|
|
|
GSTREAMER_ROOT := $(GSTREAMER_ROOT_ARMV7)
|
|
|
|
else ifeq ($(TARGET_ARCH_ABI),x86)
|
|
|
|
GSTREAMER_ROOT := $(GSTREAMER_ROOT_X86)
|
|
|
|
else
|
|
|
|
$(error Target arch ABI $(TARGET_ARCH_ABI) not supported)
|
2014-07-28 18:09:55 +00:00
|
|
|
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) $(GSTREAMER_CODECS_RESTRICTED) $(GSTREAMER_CODECS_GPL) $(GSTREAMER_PLUGINS_ENCODING) $(GSTREAMER_PLUGINS_VIS) $(GSTREAMER_PLUGINS_EFFECTS) $(GSTREAMER_PLUGINS_NET_RESTRICTED)
|
2014-11-12 15:18:28 +00:00
|
|
|
GSTREAMER_EXTRA_DEPS := gstreamer-video-1.0 glib-2.0
|
2014-07-28 18:09:55 +00:00
|
|
|
|
|
|
|
include $(GSTREAMER_NDK_BUILD_PATH)/gstreamer-1.0.mk
|