cfa49e3f30982aa41f26d8690afd21f8b8537b6b
[platform/upstream/gstreamer.git] / sys / audioflingersink / Android.mk
1 # external/gstreamer/gstplayer/Android.mk
2 #
3 #  Copyright 2009 STN wireless
4 #
5 ifeq ($(USE_HARDWARE_MM),true)
6
7 LOCAL_PATH:= $(call my-dir)
8
9 # -------------------------------------
10 # gstaudioflinger library
11 #
12 include $(CLEAR_VARS)
13  
14 LOCAL_ARM_MODE := arm
15
16 gstaudioflinger_FILES := \
17          audioflinger_wrapper.cpp \
18          gstaudioflingersink.c \
19          GstAndroid.cpp 
20          
21 gstaudioflinger_C_INCLUDES := \
22         $(LOCAL_PATH)/                                                  \
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
36
37 ifeq ($(STECONF_ANDROID_VERSION),"FROYO")      
38 gstaudioflinger_C_INCLUDES += external/icu4c/common
39 endif
40
41 LOCAL_SRC_FILES := $(gstaudioflinger_FILES)
42
43 LOCAL_C_INCLUDES += $(gstaudioflinger_C_INCLUDES)
44
45 LOCAL_CFLAGS += -DHAVE_CONFIG_H
46 LOCAL_CFLAGS += -Wall -Wdeclaration-after-statement -g -O2
47 LOCAL_CFLAGS += -DANDROID_USE_GSTREAMER
48
49 ifeq ($(USE_AUDIO_PURE_CODEC),true)
50 LOCAL_CFLAGS += -DAUDIO_PURE_CODEC
51 endif
52
53 LOCAL_SHARED_LIBRARIES += libdl
54 LOCAL_SHARED_LIBRARIES += \
55         libgstreamer-0.10     \
56         libgstbase-0.10       \
57         libglib-2.0           \
58         libgthread-2.0        \
59         libgmodule-2.0        \
60         libgobject-2.0        \
61         libgstvideo-0.10      \
62         libgstaudio-0.10
63
64 LOCAL_SHARED_LIBRARIES += \
65         libutils \
66         libcutils \
67         libui \
68         libhardware \
69         libandroid_runtime \
70         libmedia 
71
72
73 LOCAL_MODULE:= libgstaudioflinger
74 LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.10
75
76 #
77 # define LOCAL_PRELINK_MODULE to false to not use pre-link map
78 #
79 LOCAL_PRELINK_MODULE := false 
80
81 ifeq ($(STECONF_ANDROID_VERSION),"DONUT")       
82 LOCAL_CFLAGS += -DSTECONF_ANDROID_VERSION_DONUT
83 endif
84
85
86 include $(BUILD_SHARED_LIBRARY)
87
88
89 endif  # USE_HARDWARE_MM == true