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