android: update for 0.11
[platform/upstream/gstreamer.git] / android / decodebin.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 include $(CLEAR_VARS)
4
5 LOCAL_ARM_MODE := arm
6
7 decodebin_LOCAL_SRC_FILES_BASE:= \
8         gst/playback/gstdecodebin.c 
9 decodebin_LOCAL_SRC_FILES_ANDROID:= \
10     gst/playback/gstplay-marshal.c
11
12 LOCAL_SRC_FILES:= $(addprefix ../,$(decodebin_LOCAL_SRC_FILES_BASE)) \
13                                   $(addprefix ../android/,$(decodebin_LOCAL_SRC_FILES_ANDROID))
14
15 LOCAL_SHARED_LIBRARIES := \
16     libgstreamer-0.11       \
17     libgstbase-0.11         \
18     libglib-2.0             \
19     libgthread-2.0          \
20     libgmodule-2.0          \
21     libgobject-2.0                      \
22         libgstpbutils-0.11
23
24 LOCAL_MODULE:= libgstdecodebin
25
26 LOCAL_C_INCLUDES := \
27     $(LOCAL_PATH)/../gst/playback               \
28     $(LOCAL_PATH)/../gst-libs                   \
29     $(LOCAL_PATH)/..                            \
30     $(LOCAL_PATH)                                       \
31         $(LOCAL_PATH)/gst/playback              \
32     $(TARGET_OUT_HEADERS)/gstreamer-0.11 \
33         $(TARGET_OUT_HEADERS)/glib-2.0          \
34     $(TARGET_OUT_HEADERS)/glib-2.0/glib \
35         external/libxml2/include
36
37 ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
38 LOCAL_SHARED_LIBRARIES += libicuuc 
39 LOCAL_C_INCLUDES += external/icu4c/common
40 endif
41
42 LOCAL_CFLAGS := -DHAVE_CONFIG_H -DGSTREAMER_BUILT_FOR_ANDROID
43 #
44 # define LOCAL_PRELINK_MODULE to false to not use pre-link map
45 #
46 LOCAL_PRELINK_MODULE := false
47
48 #It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11
49 LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11
50
51 include $(BUILD_SHARED_LIBRARY)