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.priv_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         tests/examples/controller/Android.mk \
40         tools/Android.mk
41
42 GST_BUILT_SOURCES := $(patsubst %, $(abspath $(gstreamer_TOP))/%, $(GST_BUILT_SOURCES))
43
44 .PHONY: gst-configure gst-configure-real
45 gst-configure-real:
46         echo $(GST_BUILT_SOURCES)
47         cd $(gstreamer_TOP) ; \
48         CC="$(CONFIGURE_CC)" \
49         CFLAGS="$(CONFIGURE_CFLAGS)" \
50         LD=$(TARGET_LD) \
51         LDFLAGS="$(CONFIGURE_LDFLAGS)" \
52         CPP=$(CONFIGURE_CPP) \
53         CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
54         PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
55         PKG_CONFIG_TOP_BUILD_DIR=/ \
56         $(abspath $(gstreamer_TOP))/$(CONFIGURE) --host=arm-linux-androideabi \
57         --prefix=/system --disable-nls \
58         --disable-valgrind --disable-gtk-doc && \
59         for file in $(GST_BUILT_SOURCES); do \
60                 rm -f $$file && \
61                 make -C $$(dirname $$file) $$(basename $$file) ; \
62         done
63
64 gst-configure: gst-configure-real
65
66 CONFIGURE_TARGETS += gst-configure
67
68 -include $(gstreamer_TOP)/gst/Android.mk
69 -include $(gstreamer_TOP)/libs/Android.mk
70 -include $(gstreamer_TOP)/plugins/Android.mk
71 -include $(gstreamer_TOP)/tools/Android.mk
72 -include $(gstreamer_TOP)/tests/examples/controller/Android.mk