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-net-0.10.pc \
21         pkgconfig/gstreamer-0.10-uninstalled.pc       \
22         pkgconfig/gstreamer-base-0.10-uninstalled.pc      \
23         pkgconfig/gstreamer-controller-0.10-uninstalled.pc    \
24         pkgconfig/gstreamer-net-0.10-uninstalled.pc     \
25         gst/Android.mk \
26         gst/parse/Android.mk \
27         libs/Android.mk \
28         libs/gst/Android.mk \
29         libs/gst/base/Android.mk \
30         libs/gst/controller/Android.mk \
31         libs/gst/net/Android.mk \
32         libs/gst/helpers/Android.mk \
33         plugins/Android.mk \
34         plugins/elements/Android.mk \
35         plugins/indexers/Android.mk \
36         tests/examples/controller/Android.mk \
37         tools/Android.mk
38
39 GST_BUILT_SOURCES := $(patsubst %, $(abspath $(gstreamer_TOP))/%, $(GST_BUILT_SOURCES))
40
41 .PHONY: gst-configure gst-configure-real
42 gst-configure-real:
43         echo $(GST_BUILT_SOURCES)
44         cd $(gstreamer_TOP) ; \
45         CC="$(CONFIGURE_CC)" \
46         CFLAGS="$(CONFIGURE_CFLAGS)" \
47         LD=$(TARGET_LD) \
48         LDFLAGS="$(CONFIGURE_LDFLAGS)" \
49         CPP=$(CONFIGURE_CPP) \
50         CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
51         PKG_CONFIG_LIBDIR=$(CONFIGURE_PKG_CONFIG_LIBDIR) \
52         PKG_CONFIG_TOP_BUILD_DIR=/ \
53         $(abspath $(gstreamer_TOP))/$(CONFIGURE) --host=arm-linux-androideabi \
54         --prefix=/system --disable-nls \
55         --disable-valgrind --disable-gtk-doc && \
56         for file in $(GST_BUILT_SOURCES); do \
57                 rm -f $$file && \
58                 make -C $$(dirname $$file) $$(basename $$file) ; \
59         done
60
61 gst-configure: gst-configure-real
62
63 CONFIGURE_TARGETS += gst-configure
64
65 -include $(gstreamer_TOP)/gst/Android.mk
66 -include $(gstreamer_TOP)/libs/Android.mk
67 -include $(gstreamer_TOP)/plugins/Android.mk
68 -include $(gstreamer_TOP)/tools/Android.mk
69 -include $(gstreamer_TOP)/tests/examples/controller/Android.mk