enabling omx decoder
[platform/upstream/gstreamer.git] / omx / Makefile.am
1 plugin_LTLIBRARIES = libgstomx.la
2
3 if HAVE_VP8
4 VP8_C_FILES=gstomxvp8dec.c
5 VP8_H_FILES=gstomxvp8dec.h
6 endif
7
8 if HAVE_THEORA
9 THEORA_C_FILES=gstomxtheoradec.c
10 THEORA_H_FILES=gstomxtheoradec.h
11 endif
12
13 libgstomx_la_SOURCES = \
14         gstomx.c \
15         gstomxbufferpool.c \
16         gstomxvideo.c \
17         gstomxvideodec.c \
18         gstomxvideoenc.c \
19         gstomxaudiodec.c \
20         gstomxaudioenc.c \
21         gstomxmjpegdec.c \
22         gstomxmpeg4videodec.c \
23         gstomxmpeg2videodec.c \
24         gstomxh264dec.c \
25         gstomxh263dec.c \
26         gstomxwmvdec.c \
27         $(VP8_C_FILES) \
28         $(THEORA_C_FILES) \
29         gstomxmpeg4videoenc.c \
30         gstomxh264enc.c \
31         gstomxh263enc.c \
32         gstomxaacdec.c \
33         gstomxmp3dec.c \
34         gstomxaacenc.c \
35         gstomxamrdec.c \
36         gstomxaudiosink.c \
37         gstomxanalogaudiosink.c \
38         gstomxhdmiaudiosink.c   
39
40 noinst_HEADERS = \
41         gstomx.h \
42         gstomxbufferpool.h \
43         gstomxvideo.h \
44         gstomxvideodec.h \
45         gstomxvideoenc.h \
46         gstomxaudiodec.h \
47         gstomxaudioenc.h \
48         gstomxmjpegdec.h \
49         gstomxmpeg2videodec.h \
50         gstomxmpeg4videodec.h \
51         gstomxh264dec.h \
52         gstomxh263dec.h \
53         gstomxwmvdec.h \
54         $(VP8_H_FILES) \
55         $(THEORA_H_FILES) \
56         gstomxmpeg4videoenc.h \
57         gstomxh264enc.h \
58         gstomxh263enc.h \
59         gstomxaacdec.h \
60         gstomxmp3dec.h \
61         gstomxaacenc.h \
62         gstomxamrdec.h \
63         gstomxaudiosink.h \
64         gstomxanalogaudiosink.h \
65         gstomxhdmiaudiosink.h
66
67 if !HAVE_EXTERNAL_OMX
68 OMX_INCLUDEPATH = -I$(abs_srcdir)/openmax
69 endif
70
71 libgstomx_la_CFLAGS = \
72         -DGST_USE_UNSTABLE_API=1 \
73         $(OMX_INCLUDEPATH) \
74         $(GST_GL_CFLAGS) \
75         $(GST_PLUGINS_BASE_CFLAGS) \
76         $(GST_BASE_CFLAGS) \
77         $(GST_CFLAGS) \
78         $(TBM_CFLAGS) \
79         $(GMODULE_NO_EXPORT_CFLAGS) \
80         $(MM_COMMON_CFLAGS)
81
82 libgstomx_la_LIBADD = \
83         $(GST_GL_LIBS) \
84         $(GST_PLUGINS_BASE_LIBS) \
85         -lgstaudio-@GST_API_VERSION@ \
86         -lgstpbutils-@GST_API_VERSION@ \
87         -lgstvideo-@GST_API_VERSION@ \
88         $(GST_BASE_LIBS) \
89         $(GST_LIBS) \
90         $(TBM_LIBS) \
91         $(GMODULE_NO_EXPORT_LIBS) \
92         $(MM_COMMON_LIBS)
93 libgstomx_la_LDFLAGS = \
94         $(GST_PLUGIN_LDFLAGS) \
95         $(TBM_LDFLAGS) \
96         $(MM_COMMON_LDFLAGS)
97
98
99 EXTRA_DIST = \
100         openmax \
101         gstomxvp8dec.c \
102         gstomxvp8dec.h \
103         gstomxtheoradec.c \
104         gstomxtheoradec.h
105
106 Android.mk: Makefile.am $(BUILT_SOURCES)
107         androgenizer \
108         -:PROJECT libgstomx -:SHARED libgstomx \
109          -:TAGS eng debug \
110          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
111          -:SOURCES $(libgstomx_la_SOURCES) \
112                    $(nodist_libgstomx_la_SOURCES) \
113          -:CFLAGS $(DEFS) $(DEFAULT_INCLUDES) $(libgstomx_la_CFLAGS) \
114          -:LDFLAGS $(libgstomx_la_LDFLAGS) \
115                    $(libgstomx_la_LIBADD) \
116                    -ldl \
117          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
118                        LOCAL_MODULE_PATH:='$$(TARGET_OUT)/lib/gstreamer-$(GST_API_VERSION)' \
119         > $@