android: update for 0.11
[platform/upstream/gstreamer.git] / android / interfaces.mk
1 LOCAL_PATH:= $(call my-dir)
2 #----------------------------------------
3 # include 
4 gst_interfaces_COPY_HEADERS_TO := gstreamer-0.11/gst/interfaces
5 gst_interfaces_COPY_HEADERS_BASE := \
6         gst-libs/gst/interfaces/colorbalance.h \
7         gst-libs/gst/interfaces/colorbalancechannel.h \
8         gst-libs/gst/interfaces/mixer.h \
9         gst-libs/gst/interfaces/mixeroptions.h \
10         gst-libs/gst/interfaces/mixertrack.h \
11         gst-libs/gst/interfaces/navigation.h \
12         gst-libs/gst/interfaces/propertyprobe.h \
13         gst-libs/gst/interfaces/streamvolume.h \
14         gst-libs/gst/interfaces/tuner.h \
15         gst-libs/gst/interfaces/tunerchannel.h \
16         gst-libs/gst/interfaces/tunernorm.h \
17         gst-libs/gst/interfaces/videoorientation.h \
18         gst-libs/gst/interfaces/xoverlay.h
19 gst_interfaces_COPY_HEADERS_ANDROID := \
20         gst-libs/gst/interfaces/interfaces-enumtypes.h 
21
22 gst_interfaces_COPY_HEADERS := $(addprefix ../,$(gst_interfaces_COPY_HEADERS_BASE)) \
23                                                        $(addprefix ../android/,$(gst_interfaces_COPY_HEADERS_ANDROID))
24
25 include $(CLEAR_VARS)
26
27 LOCAL_ARM_MODE := arm
28
29 interfaces_LOCAL_SRC_FILES_BASE:= \
30         gst-libs/gst/interfaces/colorbalance.c \
31         gst-libs/gst/interfaces/colorbalancechannel.c \
32         gst-libs/gst/interfaces/mixer.c \
33         gst-libs/gst/interfaces/mixeroptions.c \
34         gst-libs/gst/interfaces/mixertrack.c \
35         gst-libs/gst/interfaces/navigation.c \
36         gst-libs/gst/interfaces/propertyprobe.c \
37         gst-libs/gst/interfaces/streamvolume.c \
38         gst-libs/gst/interfaces/tuner.c \
39         gst-libs/gst/interfaces/tunernorm.c \
40         gst-libs/gst/interfaces/tunerchannel.c \
41         gst-libs/gst/interfaces/videoorientation.c \
42         gst-libs/gst/interfaces/xoverlay.c 
43 interfaces_LOCAL_SRC_FILES_ANDROID:= \
44         gst-libs/gst/interfaces/interfaces-marshal.c \
45         gst-libs/gst/interfaces/interfaces-enumtypes.c
46
47 LOCAL_SRC_FILES:= $(addprefix ../,$(interfaces_LOCAL_SRC_FILES_BASE)) \
48                                   $(addprefix ../android/,$(interfaces_LOCAL_SRC_FILES_ANDROID))
49
50 LOCAL_SHARED_LIBRARIES := \
51     libgstreamer-0.11       \
52     libgstbase-0.11         \
53     libglib-2.0             \
54     libgthread-2.0          \
55     libgmodule-2.0          \
56     libgobject-2.0
57
58 LOCAL_MODULE:= libgstinterfaces-0.11
59
60 LOCAL_C_INCLUDES := \
61     $(LOCAL_PATH)/../gst-libs/gst/interfaces \
62     $(LOCAL_PATH)/../gst-libs           \
63     $(LOCAL_PATH)/..                            \
64     $(LOCAL_PATH)                                       \
65         $(LOCAL_PATH)/gst-libs/gst/interfaces \
66     $(TARGET_OUT_HEADERS)/gstreamer-0.11 \
67         $(TARGET_OUT_HEADERS)/glib-2.0          \
68     $(TARGET_OUT_HEADERS)/glib-2.0/glib \
69         external/libxml2/include
70
71 ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
72 LOCAL_SHARED_LIBRARIES += libicuuc 
73 LOCAL_C_INCLUDES += external/icu4c/common
74 endif
75
76
77 LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID
78 #
79 # define LOCAL_PRELINK_MODULE to false to not use pre-link map
80 #
81 LOCAL_PRELINK_MODULE := false
82
83 LOCAL_COPY_HEADERS_TO := $(gst_interfaces_COPY_HEADERS_TO)
84 LOCAL_COPY_HEADERS := $(gst_interfaces_COPY_HEADERS)
85
86 include $(BUILD_SHARED_LIBRARY)