encoding-profile: add special-casing for asf/wmv/wma file extensions
[platform/upstream/gstreamer.git] / Android.mk
1 LOCAL_PATH := $(call my-dir)
2 include $(CLEAR_VARS)
3
4 GST_PLUGINS_BASE_TOP := $(LOCAL_PATH)
5
6 GST_PLUGINS_BASE_BUILT_SOURCES :=                                               \
7         pkgconfig/gstreamer-app-1.0.pc                          \
8         pkgconfig/gstreamer-audio-1.0.pc                        \
9         pkgconfig/gstreamer-fft-1.0.pc                          \
10         pkgconfig/gstreamer-interfaces-1.0.pc                   \
11         pkgconfig/gstreamer-pbutils-1.0.pc                      \
12         pkgconfig/gstreamer-plugins-base-1.0.pc         \
13         pkgconfig/gstreamer-riff-1.0.pc                 \
14         pkgconfig/gstreamer-rtp-1.0.pc                          \
15         pkgconfig/gstreamer-rtsp-1.0.pc                 \
16         pkgconfig/gstreamer-sdp-1.0.pc                          \
17         pkgconfig/gstreamer-tag-1.0.pc                          \
18         pkgconfig/gstreamer-video-1.0.pc                        \
19         pkgconfig/gstreamer-app-1.0-uninstalled.pc              \
20         pkgconfig/gstreamer-audio-1.0-uninstalled.pc            \
21         pkgconfig/gstreamer-fft-1.0-uninstalled.pc              \
22         pkgconfig/gstreamer-interfaces-1.0-uninstalled.pc       \
23         pkgconfig/gstreamer-pbutils-1.0-uninstalled.pc          \
24         pkgconfig/gstreamer-plugins-base-1.0-uninstalled.pc     \
25         pkgconfig/gstreamer-riff-1.0-uninstalled.pc             \
26         pkgconfig/gstreamer-rtp-1.0-uninstalled.pc              \
27         pkgconfig/gstreamer-rtsp-1.0-uninstalled.pc             \
28         pkgconfig/gstreamer-sdp-1.0-uninstalled.pc              \
29         pkgconfig/gstreamer-tag-1.0-uninstalled.pc              \
30         pkgconfig/gstreamer-video-1.0-uninstalled.pc            \
31         gst-libs/gst/interfaces/Android.mk                      \
32         gst-libs/gst/tag/Android.mk                             \
33         gst-libs/gst/audio/Android.mk                           \
34         gst-libs/gst/video/Android.mk                           \
35         gst-libs/gst/riff/Android.mk                            \
36         gst-libs/gst/pbutils/Android.mk                         \
37         gst-libs/gst/rtp/Android.mk                             \
38         gst-libs/gst/rtsp/Android.mk                            \
39         gst-libs/gst/sdp/Android.mk                             \
40         gst-libs/gst/app/Android.mk                             \
41         gst-libs/gst/fft/Android.mk                             \
42         gst/playback/Android.mk                                 \
43         gst/typefind/Android.mk                                 \
44         gst/app/Android.mk                                      \
45         gst/gdp/Android.mk                                      \
46         gst/tcp/Android.mk                                      \
47         gst/audioconvert/Android.mk                             \
48         gst/audioresample/Android.mk                            \
49         gst/audiotestsrc/Android.mk                             \
50         gst/videotestsrc/Android.mk                             \
51         gst/videoscale/Android.mk                               \
52         gst/videoconvert/Android.mk                             \
53         gst/videorate/Android.mk                                \
54         gst/encoding/Android.mk                                 \
55         gst/adder/Android.mk                                    \
56         gst/audiorate/Android.mk                                        \
57         gst/volume/Android.mk                                   \
58         tools/Android.mk                                        \
59         ext/ogg/Android.mk
60
61 ifneq ($(NDK_BUILD), true)
62 GST_PLUGINS_BASE_BUILT_SOURCES += ext/vorbis/Android.mk
63 ZLIB_CFLAGS = -I $(abspath $(GST_PLUGINS_BASE_TOP)/../../zlib)
64 endif
65
66 GST_PLUGINS_BASE_BUILT_SOURCES := $(patsubst %, $(abspath $(GST_PLUGINS_BASE_TOP))/%, $(GST_PLUGINS_BASE_BUILT_SOURCES))
67
68
69 .PHONY: gst-plugins-base-configure
70 gst-plugins-base-configure:
71         cd $(GST_PLUGINS_BASE_TOP) ; \
72         CC="$(CONFIGURE_CC)" \
73         CFLAGS="$(CONFIGURE_CFLAGS)" \
74         LD=$(TARGET_LD) \
75         LDFLAGS="$(CONFIGURE_LDFLAGS)" \
76         CPP=$(CONFIGURE_CPP) \
77         CPPFLAGS="$(CONFIGURE_CPPFLAGS)" \
78         PKG_CONFIG_LIBDIR="$(CONFIGURE_PKG_CONFIG_LIBDIR)" \
79         PKG_CONFIG_TOP_BUILD_DIR=/ \
80         IVORBIS_CFLAGS="-I$(TOP)/external/tremolo -DTREMOR" \
81         IVORBIS_LIBS="-lvorbisidec" \
82         ZLIB_CFLAGS="$(ZLIB_CFLAGS)" \
83         $(abspath $(GST_PLUGINS_BASE_TOP))/$(CONFIGURE) --host=arm-linux-androideabi \
84         --prefix=/system --disable-orc --disable-gio --enable-ivorbis \
85         --disable-valgrind --disable-gtk-doc && \
86         for file in $(GST_PLUGINS_BASE_BUILT_SOURCES); do \
87                 rm -f $$file && \
88                 make -C $$(dirname $$file) $$(basename $$file) ; \
89         done
90
91 CONFIGURE_TARGETS += gst-plugins-base-configure
92
93 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/interfaces/Android.mk
94 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/fft/Android.mk
95 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/tag/Android.mk
96 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/audio/Android.mk
97 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/video/Android.mk
98 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/riff/Android.mk
99 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/pbutils/Android.mk
100 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/rtp/Android.mk
101 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/rtsp/Android.mk
102 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/sdp/Android.mk
103 -include $(GST_PLUGINS_BASE_TOP)/gst-libs/gst/app/Android.mk
104 -include $(GST_PLUGINS_BASE_TOP)/gst/playback/Android.mk
105 -include $(GST_PLUGINS_BASE_TOP)/gst/typefind/Android.mk
106 -include $(GST_PLUGINS_BASE_TOP)/gst/app/Android.mk
107 -include $(GST_PLUGINS_BASE_TOP)/gst/gdp/Android.mk
108 -include $(GST_PLUGINS_BASE_TOP)/gst/tcp/Android.mk
109 -include $(GST_PLUGINS_BASE_TOP)/gst/audioconvert/Android.mk
110 -include $(GST_PLUGINS_BASE_TOP)/gst/audioresample/Android.mk
111 -include $(GST_PLUGINS_BASE_TOP)/gst/audiotestsrc/Android.mk
112 -include $(GST_PLUGINS_BASE_TOP)/gst/videotestsrc/Android.mk
113 -include $(GST_PLUGINS_BASE_TOP)/gst/videoscale/Android.mk
114 -include $(GST_PLUGINS_BASE_TOP)/gst/videoconvert/Android.mk
115 -include $(GST_PLUGINS_BASE_TOP)/gst/videorate/Android.mk
116 -include $(GST_PLUGINS_BASE_TOP)/gst/encoding/Android.mk
117 -include $(GST_PLUGINS_BASE_TOP)/gst/adder/Android.mk
118 -include $(GST_PLUGINS_BASE_TOP)/gst/audiorate/Android.mk
119 -include $(GST_PLUGINS_BASE_TOP)/gst/volume/Android.mk
120 -include $(GST_PLUGINS_BASE_TOP)/ext/ogg/Android.mk
121 ifneq ($(NDK_BUILD), true)
122 -include $(GST_PLUGINS_BASE_TOP)/ext/vorbis/Android.mk
123 endif
124 -include $(GST_PLUGINS_BASE_TOP)/tools/Android.mk