1 # external/gstreamer/gstplayer/Android.mk
3 # Copyright 2009 STN wireless
5 ifeq ($(USE_HARDWARE_MM),true)
7 LOCAL_PATH:= $(call my-dir)
9 # -------------------------------------
10 # gstaudioflinger library
16 gstaudioflinger_FILES := \
17 audioflinger_wrapper.cpp \
18 gstaudioflingersink.c \
21 gstaudioflinger_C_INCLUDES := \
23 $(LOCAL_PATH)/audioflingersink \
24 $(TARGET_OUT_HEADERS)/gstreamer-0.10 \
25 $(TARGET_OUT_HEADERS)/gstreamer-0.10/gst/audio \
26 $(TARGET_OUT_HEADERS)/glib-2.0 \
27 $(TARGET_OUT_HEADERS)/glib-2.0/glib \
28 external/gst/gstreamer/android \
29 external/libxml2/include \
30 external/icebird/gstreamer-icb-video \
31 external/icebird/include \
32 frameworks/base/libs/audioflinger \
33 frameworks/base/media/libmediaplayerservice \
34 frameworks/base/media/libmedia \
35 frameworks/base/include/media
37 ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
38 gstaudioflinger_C_INCLUDES += external/icu4c/common
41 LOCAL_SRC_FILES := $(gstaudioflinger_FILES)
43 LOCAL_C_INCLUDES += $(gstaudioflinger_C_INCLUDES)
45 LOCAL_CFLAGS += -DHAVE_CONFIG_H
46 LOCAL_CFLAGS += -Wall -Wdeclaration-after-statement -g -O2
47 LOCAL_CFLAGS += -DANDROID_USE_GSTREAMER
49 ifeq ($(USE_AUDIO_PURE_CODEC),true)
50 LOCAL_CFLAGS += -DAUDIO_PURE_CODEC
53 LOCAL_SHARED_LIBRARIES += libdl
54 LOCAL_SHARED_LIBRARIES += \
64 LOCAL_SHARED_LIBRARIES += \
73 LOCAL_MODULE:= libgstaudioflinger
74 LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10
77 # define LOCAL_PRELINK_MODULE to false to not use pre-link map
79 LOCAL_PRELINK_MODULE := false
81 ifeq ($(STECONF_ANDROID_VERSION),"DONUT")
82 LOCAL_CFLAGS += -DSTECONF_ANDROID_VERSION_DONUT
86 include $(BUILD_SHARED_LIBRARY)
89 endif # USE_HARDWARE_MM == true