2010-12-03 16:46:27 +00:00
|
|
|
# external/gstreamer/gstplayer/Android.mk
|
|
|
|
#
|
|
|
|
# Copyright 2009 STN wireless
|
|
|
|
#
|
2011-04-11 04:36:35 +00:00
|
|
|
#ifeq ($(USE_HARDWARE_MM),true)
|
2010-12-03 16:46:27 +00:00
|
|
|
|
|
|
|
LOCAL_PATH:= $(call my-dir)
|
|
|
|
|
|
|
|
# -------------------------------------
|
|
|
|
# gstaudioflinger library
|
|
|
|
#
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_ARM_MODE := arm
|
|
|
|
|
|
|
|
gstaudioflinger_FILES := \
|
|
|
|
audioflinger_wrapper.cpp \
|
|
|
|
gstaudioflingersink.c \
|
|
|
|
GstAndroid.cpp
|
|
|
|
|
|
|
|
LOCAL_SRC_FILES := $(gstaudioflinger_FILES)
|
2011-04-11 04:36:35 +00:00
|
|
|
LOCAL_C_INCLUDES = $(LOCAL_PATH) \
|
|
|
|
$(LOCAL_PATH)/include \
|
|
|
|
$(TOP)/frameworks/base
|
2010-12-03 16:46:27 +00:00
|
|
|
|
|
|
|
LOCAL_CFLAGS += -DHAVE_CONFIG_H
|
|
|
|
LOCAL_CFLAGS += -Wall -Wdeclaration-after-statement -g -O2
|
2011-04-11 04:36:35 +00:00
|
|
|
LOCAL_CFLAGS += -DANDROID_USE_GSTREAMER \
|
|
|
|
$(shell $(PKG_CONFIG) gstreamer-plugins-bad-0.10 --cflags) \
|
|
|
|
$(shell $(PKG_CONFIG) gstreamer-audio-0.10 --cflags)
|
2010-12-03 16:46:27 +00:00
|
|
|
|
|
|
|
ifeq ($(USE_AUDIO_PURE_CODEC),true)
|
|
|
|
LOCAL_CFLAGS += -DAUDIO_PURE_CODEC
|
|
|
|
endif
|
|
|
|
|
|
|
|
LOCAL_SHARED_LIBRARIES += libdl
|
|
|
|
LOCAL_SHARED_LIBRARIES += \
|
|
|
|
libgstreamer-0.10 \
|
|
|
|
libgstbase-0.10 \
|
|
|
|
libglib-2.0 \
|
|
|
|
libgthread-2.0 \
|
|
|
|
libgmodule-2.0 \
|
|
|
|
libgobject-2.0 \
|
|
|
|
libgstvideo-0.10 \
|
|
|
|
libgstaudio-0.10
|
|
|
|
|
2011-04-11 04:36:35 +00:00
|
|
|
LOCAL_LDFLAGS := -L$(SYSROOT)/usr/lib -llog
|
|
|
|
|
2010-12-03 16:46:27 +00:00
|
|
|
LOCAL_SHARED_LIBRARIES += \
|
|
|
|
libutils \
|
|
|
|
libcutils \
|
|
|
|
libui \
|
|
|
|
libhardware \
|
|
|
|
libandroid_runtime \
|
|
|
|
libmedia
|
|
|
|
|
|
|
|
|
|
|
|
LOCAL_MODULE:= libgstaudioflinger
|
|
|
|
LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10
|
|
|
|
|
|
|
|
#
|
|
|
|
# define LOCAL_PRELINK_MODULE to false to not use pre-link map
|
|
|
|
#
|
|
|
|
LOCAL_PRELINK_MODULE := false
|
2011-04-11 04:36:35 +00:00
|
|
|
LOCAL_MODULE_TAGS := eng debug
|
2010-12-03 16:46:27 +00:00
|
|
|
|
|
|
|
include $(BUILD_SHARED_LIBRARY)
|
|
|
|
|
2011-04-11 04:36:35 +00:00
|
|
|
#endif # USE_HARDWARE_MM == true
|