gstreamer/sys/audioflingersink/Android.mk
2010-12-03 17:46:27 +01:00

89 lines
2 KiB
Makefile

# external/gstreamer/gstplayer/Android.mk
#
# Copyright 2009 STN wireless
#
ifeq ($(USE_HARDWARE_MM),true)
LOCAL_PATH:= $(call my-dir)
# -------------------------------------
# gstaudioflinger library
#
include $(CLEAR_VARS)
LOCAL_ARM_MODE := arm
gstaudioflinger_FILES := \
audioflinger_wrapper.cpp \
gstaudioflingersink.c \
GstAndroid.cpp
gstaudioflinger_C_INCLUDES := \
$(LOCAL_PATH)/ \
$(LOCAL_PATH)/audioflingersink \
$(TARGET_OUT_HEADERS)/gstreamer-0.10 \
$(TARGET_OUT_HEADERS)/gstreamer-0.10/gst/audio \
$(TARGET_OUT_HEADERS)/glib-2.0 \
$(TARGET_OUT_HEADERS)/glib-2.0/glib \
external/gst/gstreamer/android \
external/libxml2/include \
external/icebird/gstreamer-icb-video \
external/icebird/include \
frameworks/base/libs/audioflinger \
frameworks/base/media/libmediaplayerservice \
frameworks/base/media/libmedia \
frameworks/base/include/media
ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
gstaudioflinger_C_INCLUDES += external/icu4c/common
endif
LOCAL_SRC_FILES := $(gstaudioflinger_FILES)
LOCAL_C_INCLUDES += $(gstaudioflinger_C_INCLUDES)
LOCAL_CFLAGS += -DHAVE_CONFIG_H
LOCAL_CFLAGS += -Wall -Wdeclaration-after-statement -g -O2
LOCAL_CFLAGS += -DANDROID_USE_GSTREAMER
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
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
ifeq ($(STECONF_ANDROID_VERSION),"DONUT")
LOCAL_CFLAGS += -DSTECONF_ANDROID_VERSION_DONUT
endif
include $(BUILD_SHARED_LIBRARY)
endif # USE_HARDWARE_MM == true