Merge branch 'master' into 0.11
[platform/upstream/gstreamer.git] / Android.mk
1 # This file is the top android makefile for all sub-modules.
2
3 LOCAL_PATH := $(call my-dir)
4 include $(CLEAR_VARS)
5
6 gstreamer_TOP := $(LOCAL_PATH)
7
8 GST_BUILT_SOURCES :=            \
9         gst/gstenumtypes.h              \
10         gst/gstenumtypes.c              \
11         gst/gstmarshal.h                \
12         gst/gstmarshal.c                \
13         gst/parse/grammar.tab.h \
14         gst/parse/grammar.tab.c \
15         gst/parse/grammar.output        \
16         gst/parse/lex._gst_parse_yy.c \
17         pkgconfig/gstreamer-0.10.pc       \
18         pkgconfig/gstreamer-base-0.10.pc      \
19         pkgconfig/gstreamer-controller-0.10.pc    \
20         pkgconfig/gstreamer-dataprotocol-0.10.pc    \
21         pkgconfig/gstreamer-net-0.10.pc \
22         pkgconfig/gstreamer-0.10-uninstalled.pc       \
23         pkgconfig/gstreamer-base-0.10-uninstalled.pc      \
24         pkgconfig/gstreamer-controller-0.10-uninstalled.pc    \
25         pkgconfig/gstreamer-dataprotocol-0.10-uninstalled.pc    \
26         pkgconfig/gstreamer-net-0.10-uninstalled.pc     \
27         gst/Android.mk \
28         gst/parse/Android.mk \
29         libs/Android.mk \
30         libs/gst/Android.mk \
31         libs/gst/base/Android.mk \
32         libs/gst/controller/Android.mk \
33         libs/gst/dataprotocol/Android.mk \
34         libs/gst/net/Android.mk \
35         libs/gst/helpers/Android.mk \
36         plugins/Android.mk \
37         plugins/elements/Android.mk \
38         plugins/indexers/Android.mk \
39         tools/Android.mk
40
41 GST_BUILT_SOURCES := $(patsubst %, $(abspath $(gstreamer_TOP))/%, $(GST_BUILT_SOURCES))
42
43 .PHONY: gst-configure gst-configure-real
44 gst-configure-real:
45         echo $(GST_BUILT_SOURCES)
46         cd $(gstreamer_TOP) ; \
47         CC="$(CONFIGURE_CC)" \
48         CFLAGS="$(CONFIGURE_CFLAGS)" \
49         LD=$(TARGET_LD) \
50         LDFLAGS="$(CONFIGURE_LDFLAGS)" \
51         CPP=$(CONFIGURE_CPP) \
52         CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
53         PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
54         PKG_CONFIG_TOP_BUILD_DIR=/ \
55         $(abspath $(gstreamer_TOP))/$(CONFIGURE) --host=arm-linux-androideabi \
56         --prefix=/system --disable-nls \
57         --disable-valgrind --disable-gtk-doc && \
58         for file in $(GST_BUILT_SOURCES); do \
59                 rm -f $$file && \
60                 make -C $$(dirname $$file) $$(basename $$file) ; \
61         done
62
63 gst-configure: gst-configure-real
64
65 CONFIGURE_TARGETS += gst-configure
66
67 -include $(gstreamer_TOP)/gst/Android.mk
68 -include $(gstreamer_TOP)/libs/Android.mk
69 -include $(gstreamer_TOP)/plugins/Android.mk
70 -include $(gstreamer_TOP)/tools/Android.mk