android: update for 0.11
[platform/upstream/gstreamer.git] / android / playbin.mk
1 LOCAL_PATH:= $(call my-dir)
2
3 include $(CLEAR_VARS)
4
5 LOCAL_ARM_MODE := arm
6 playbin_LOCAL_SRC_FILES_BASE:= \
7         gst/playback/gstinputselector.c \
8         gst/playback/gstplayback.c \
9         gst/playback/gstplaybin.c \
10         gst/playback/gstplaybin2.c \
11         gst/playback/gstplaysink.c \
12         gst/playback/gstplaybasebin.c \
13         gst/playback/gstplay-enum.c \
14         gst/playback/gstfactorylists.c \
15         gst/playback/gstscreenshot.c \
16         gst/playback/gststreaminfo.c \
17         gst/playback/gststreamselector.c \
18         gst/playback/gstsubtitleoverlay.c
19 playbin_LOCAL_SRC_FILES_ANDROID:= \
20         gst/playback/gstplay-marshal.c
21
22 LOCAL_SRC_FILES:= $(addprefix ../,$(playbin_LOCAL_SRC_FILES_BASE)) \
23                                   $(addprefix ../android/,$(playbin_LOCAL_SRC_FILES_ANDROID))
24
25 LOCAL_SHARED_LIBRARIES := \
26     libgstreamer-0.11       \
27     libgstbase-0.11         \
28     libglib-2.0             \
29     libgthread-2.0          \
30     libgmodule-2.0          \
31     libgobject-2.0                      \
32         libgstpbutils-0.11              \
33         libgstinterfaces-0.11   \
34         libgstvideo-0.11
35
36 LOCAL_MODULE:= libgstplaybin
37
38 LOCAL_C_INCLUDES := \
39     $(LOCAL_PATH)/../gst/playback               \
40     $(LOCAL_PATH)/../gst-libs                   \
41     $(LOCAL_PATH)/..                            \
42     $(LOCAL_PATH)                                       \
43         $(LOCAL_PATH)/gst/playback              \
44     $(TARGET_OUT_HEADERS)/gstreamer-0.11 \
45         $(TARGET_OUT_HEADERS)/glib-2.0          \
46     $(TARGET_OUT_HEADERS)/glib-2.0/glib \
47         external/libxml2/include
48
49
50 ifeq ($(STECONF_ANDROID_VERSION),"FROYO")
51 LOCAL_SHARED_LIBRARIES += libicuuc 
52 LOCAL_C_INCLUDES += external/icu4c/common
53 endif
54
55 LOCAL_CFLAGS := -DHAVE_CONFIG_H  -DGSTREAMER_BUILT_FOR_ANDROID
56 #
57 # define LOCAL_PRELINK_MODULE to false to not use pre-link map
58 #
59 LOCAL_PRELINK_MODULE := false
60
61 #It's a gstreamer plugins, and it must be installed on ..../lib/gstreamer-0.11
62 LOCAL_MODULE_PATH := $(TARGET_OUT)/lib/gstreamer-0.11
63
64 include $(BUILD_SHARED_LIBRARY)