omxvideoenc: drain encoder on ALLOCATION and DRAIN queries
[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 if HAVE_HEVC
14 H265_C_FILES = \
15         gstomxh265dec.c \
16         gstomxh265enc.c \
17         gstomxh265utils.c
18 H265_H_FILES = \
19         gstomxh265dec.h \
20         gstomxh265enc.h \
21         gstomxh265utils.h
22 endif
23
24 libgstomx_la_SOURCES = \
25         gstomx.c \
26         gstomxallocator.c \
27         gstomxbufferpool.c \
28         gstomxvideo.c \
29         gstomxvideodec.c \
30         gstomxvideoenc.c \
31         gstomxaudiodec.c \
32         gstomxaudioenc.c \
33         gstomxmjpegdec.c \
34         gstomxmpeg4videodec.c \
35         gstomxmpeg2videodec.c \
36         gstomxh264dec.c \
37         gstomxh264utils.c \
38         gstomxh263dec.c \
39         gstomxwmvdec.c \
40         $(VP8_C_FILES) \
41         $(THEORA_C_FILES) \
42         $(H265_C_FILES) \
43         gstomxmpeg4videoenc.c \
44         gstomxh264enc.c \
45         gstomxh263enc.c \
46         gstomxaacdec.c \
47         gstomxmp3dec.c \
48         gstomxmp3enc.c \
49         gstomxaacenc.c \
50         gstomxamrdec.c \
51         gstomxaudiosink.c \
52         gstomxanalogaudiosink.c \
53         gstomxhdmiaudiosink.c   
54
55 noinst_HEADERS = \
56         gstomx.h \
57         gstomxallocator.h \
58         gstomxbufferpool.h \
59         gstomxvideo.h \
60         gstomxvideodec.h \
61         gstomxvideoenc.h \
62         gstomxaudiodec.h \
63         gstomxaudioenc.h \
64         gstomxmjpegdec.h \
65         gstomxmpeg2videodec.h \
66         gstomxmpeg4videodec.h \
67         gstomxh264dec.h \
68         gstomxh264utils.h \
69         gstomxh263dec.h \
70         gstomxwmvdec.h \
71         $(VP8_H_FILES) \
72         $(THEORA_H_FILES) \
73         $(H265_H_FILES) \
74         gstomxmpeg4videoenc.h \
75         gstomxh264enc.h \
76         gstomxh263enc.h \
77         gstomxaacdec.h \
78         gstomxmp3dec.h \
79         gstomxmp3enc.h \
80         gstomxaacenc.h \
81         gstomxamrdec.h \
82         gstomxaudiosink.h \
83         gstomxanalogaudiosink.h \
84         gstomxhdmiaudiosink.h   
85
86 if !HAVE_EXTERNAL_OMX
87 OMX_INCLUDEPATH = -I$(abs_srcdir)/openmax
88 endif
89
90 libgstomx_la_CFLAGS = \
91         -DGST_USE_UNSTABLE_API=1 \
92         $(OMX_INCLUDEPATH) \
93         $(GST_GL_CFLAGS) \
94         $(GST_PLUGINS_BASE_CFLAGS) \
95         $(GST_BASE_CFLAGS) \
96         $(GST_CFLAGS) \
97         $(GST_ALLOCATORS_CFLAGS) \
98         $(GMODULE_NO_EXPORT_CFLAGS)
99 libgstomx_la_LIBADD = \
100         $(GST_GL_LIBS) \
101         $(GST_PLUGINS_BASE_LIBS) \
102         -lgstaudio-@GST_API_VERSION@ \
103         -lgstpbutils-@GST_API_VERSION@ \
104         -lgstvideo-@GST_API_VERSION@ \
105         $(GST_BASE_LIBS) \
106         $(GST_LIBS) \
107         $(GST_ALLOCATORS_LIBS) \
108         $(GMODULE_NO_EXPORT_LIBS)
109 libgstomx_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
110
111 EXTRA_DIST = \
112         openmax \
113         gstomxvp8dec.c \
114         gstomxvp8dec.h \
115         gstomxtheoradec.c \
116         gstomxtheoradec.h