4f0767090926429bde94d69a1a6812f53df1adc9
[platform/upstream/gstreamer.git] / android / gst.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 #------------------------------------
4 #  include section 
5 #-----------------------------------
6 gst_COPY_HEADERS_TO := gstreamer-0.10/gst
7 gst_COPY_HEADERS_BASE := \
8                 glib-compat.h       \
9                 gst.h                           \
10                 gstbin.h                        \
11                 gstbuffer.h             \
12                 gstbufferlist.h         \
13                 gstbus.h                        \
14                 gstcaps.h                       \
15                 gstchildproxy.h         \
16                 gstclock.h                      \
17                 gstcompat.h             \
18                 gstdebugutils.h         \
19                 gstelement.h            \
20                 gstelementfactory.h \
21                 gsterror.h                      \
22                 gstevent.h                      \
23                 gstfilter.h             \
24                 gstformat.h             \
25                 gstghostpad.h           \
26                 gstindex.h                      \
27                 gstindexfactory.h       \
28                 gstinfo.h                       \
29                 gstinterface.h          \
30                 gstiterator.h           \
31                 gstmacros.h             \
32                 gstmessage.h            \
33                 gstminiobject.h         \
34                 gstobject.h             \
35                 gstpad.h                        \
36                 gstpadtemplate.h        \
37                 gstparamspecs.h         \
38                 gstparse.h                      \
39                 gstpipeline.h           \
40                 gstplugin.h             \
41                 gstpluginfeature.h      \
42                 gstpluginloader.h       \
43                 gstpoll.h                       \
44                 gstpreset.h             \
45                 gstquery.h                      \
46                 gstregistry.h           \
47                 gstregistrychunks.h \
48                 gstsegment.h            \
49                 gststructure.h          \
50                 gstsystemclock.h        \
51                 gsttaglist.h            \
52                 gsttagsetter.h          \
53                 gsttask.h                       \
54                 gsttaskpool.h           \
55                 gsttrace.h                      \
56                 gsttypefind.h           \
57                 gsttypefindfactory.h \
58                 gsturi.h                        \
59                 gstutils.h                      \
60                 gstvalue.h                      \
61                 gstxml.h                        
62
63 gst_COPY_HEADERS_ANDROID := \
64                 gstconfig.h     \
65                 gstversion.h    \
66                 gstenumtypes.h  \
67                 gstmarshal.h    
68
69 gst_COPY_HEADERS := $(addprefix ../gst/,$(gst_COPY_HEADERS_BASE)) \
70                                         $(addprefix ../android/gst/,$(gst_COPY_HEADERS_ANDROID))
71
72 #------------------------------------
73 include $(CLEAR_VARS)
74
75 LOCAL_ARM_MODE := arm
76
77 GST_MAJORMINOR:= 0.10
78
79 gst_LOCAL_SRC_FILES_BASE:= \
80         gst.c                           \
81         gstobject.c             \
82         gstbin.c                        \
83         gstbuffer.c             \
84         gstbufferlist.c     \
85         gstbus.c                        \
86         gstcaps.c                       \
87         gstchildproxy.c         \
88         gstclock.c                      \
89         gstdebugutils.c         \
90         gstelement.c            \
91         gstelementfactory.c \
92         gsterror.c                      \
93         gstevent.c                      \
94         gstfilter.c             \
95         gstformat.c             \
96         gstghostpad.c           \
97         gstindex.c                      \
98         gstindexfactory.c       \
99         gstinfo.c                       \
100         gstinterface.c          \
101         gstiterator.c           \
102         gstmessage.c            \
103         gstminiobject.c         \
104         gstpad.c                        \
105         gstpadtemplate.c        \
106         gstparamspecs.c         \
107         gstpipeline.c           \
108         gstplugin.c             \
109         gstpluginfeature.c      \
110         gstpluginloader.c       \
111         gstpoll.c                       \
112         gstpreset.c             \
113         gstquark.c                      \
114         gstquery.c                      \
115         gstregistry.c           \
116         gstregistrychunks.c     \
117         gstsegment.c            \
118         gststructure.c          \
119         gstsystemclock.c        \
120         gsttaglist.c            \
121         gsttagsetter.c          \
122         gsttask.c                       \
123         gsttaskpool.c       \
124         gsttrace.c                      \
125         gsttypefind.c           \
126         gsttypefindfactory.c \
127         gsturi.c                        \
128         gstutils.c                      \
129         gstvalue.c                      \
130         gstparse.c                      \
131         gstregistrybinary.c \
132         gstxml.c                        
133
134
135 gst_LOCAL_SRC_FILES_ANDROID:= \
136         gstenumtypes.c          \
137         gstmarshal.c            \
138         parse/grammar.tab.c \
139         parse/lex._gst_parse_yy.c
140
141 LOCAL_SRC_FILES:= $(addprefix ../gst/,$(gst_LOCAL_SRC_FILES_BASE)) \
142                                   $(addprefix ../android/gst/,$(gst_LOCAL_SRC_FILES_ANDROID))   
143          
144 LOCAL_STATIC_LIBRARIES := libxml2  
145            
146 LOCAL_SHARED_LIBRARIES := \
147     libglib-2.0           \
148     libgthread-2.0        \
149     libgmodule-2.0        \
150     libgobject-2.0 
151
152 LOCAL_MODULE:= libgstreamer-$(GST_MAJORMINOR)
153
154 LOCAL_C_INCLUDES := \
155     $(LOCAL_PATH)                                               \
156         $(LOCAL_PATH)/gst                                       \
157         $(LOCAL_PATH)/gst/parse                         \
158         $(LOCAL_PATH)/../gst                    \
159     $(LOCAL_PATH)/..                                    \
160     $(LOCAL_PATH)/../gst/parse          \
161         $(TARGET_OUT_HEADERS)/glib-2.0          \
162     $(TARGET_OUT_HEADERS)/glib-2.0/glib \
163         external/libxml2/include
164
165 ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
166 LOCAL_SHARED_LIBRARIES += libicuuc 
167 LOCAL_C_INCLUDES += external/icu4c/common
168 endif
169
170 LOCAL_CFLAGS := \
171     -D_GNU_SOURCE                                \
172     -DG_LOG_DOMAIN=g_log_domain_gstreamer        \
173     -DGST_MAJORMINOR=\""$(GST_MAJORMINOR)"\"     \
174     -DGST_DISABLE_DEPRECATED                     \
175     -DHAVE_CONFIG_H   
176
177 #
178 # define LOCAL_PRELINK_MODULE to false to not use pre-link map
179 #
180 LOCAL_PRELINK_MODULE := false 
181
182 LOCAL_COPY_HEADERS_TO := $(gst_COPY_HEADERS_TO)
183 LOCAL_COPY_HEADERS := $(gst_COPY_HEADERS)
184
185 include $(BUILD_SHARED_LIBRARY)