videobuffer: wrap video meta into a surface buffer.
[vaapi:gstreamer-vaapi.git] / gst-libs / gst / vaapi / Makefile.am
1 lib_LTLIBRARIES = libgstvaapi-@GST_MAJORMINOR@.la
2
3 if USE_DRM
4 lib_LTLIBRARIES += libgstvaapi-drm-@GST_MAJORMINOR@.la
5 endif
6
7 if USE_X11
8 lib_LTLIBRARIES += libgstvaapi-x11-@GST_MAJORMINOR@.la
9 endif
10
11 if USE_GLX
12 lib_LTLIBRARIES += libgstvaapi-glx-@GST_MAJORMINOR@.la
13 endif
14
15 if USE_WAYLAND
16 lib_LTLIBRARIES += libgstvaapi-wayland-@GST_MAJORMINOR@.la
17 endif
18
19 libgstvaapi_includedir =                        \
20         $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/vaapi
21
22 libgstvaapi_cflags =                            \
23         -DGST_USE_UNSTABLE_API                  \
24         -I$(top_srcdir)/gst-libs                \
25         -I$(top_builddir)/gst-libs              \
26         $(GST_BASE_CFLAGS)                      \
27         $(GST_BASEVIDEO_CFLAGS)                 \
28         $(GST_VIDEO_CFLAGS)                     \
29         $(GST_CFLAGS)                           \
30         $(GST_CODEC_PARSERS_CFLAGS)             \
31         $(LIBVA_CFLAGS)                         \
32         $(NULL)
33
34 libgstvaapi_libs =                              \
35         $(GST_BASE_LIBS)                        \
36         $(GST_BASEVIDEO_LIBS)                   \
37         $(GST_LIBS)                             \
38         $(GST_VIDEO_LIBS)                       \
39         $(GST_CODEC_PARSERS_LIBS)               \
40         $(LIBVA_LIBS)                           \
41         $(top_builddir)/gst-libs/gst/video/libgstvaapi-videoutils.la \
42         $(top_builddir)/gst-libs/gst/codecparsers/libgstvaapi-codecparsers.la
43
44 libgstvaapi_source_c =                          \
45         gstvaapicodec_objects.c                 \
46         gstvaapicontext.c                       \
47         gstvaapidecoder.c                       \
48         gstvaapidecoder_dpb.c                   \
49         gstvaapidecoder_frame.c                 \
50         gstvaapidecoder_h264.c                  \
51         gstvaapidecoder_mpeg2.c                 \
52         gstvaapidecoder_mpeg4.c                 \
53         gstvaapidecoder_objects.c               \
54         gstvaapidecoder_unit.c                  \
55         gstvaapidecoder_vc1.c                   \
56         gstvaapidisplay.c                       \
57         gstvaapidisplaycache.c                  \
58         gstvaapiimage.c                         \
59         gstvaapiimageformat.c                   \
60         gstvaapiimagepool.c                     \
61         gstvaapiminiobject.c                    \
62         gstvaapiobject.c                        \
63         gstvaapiparamspecs.c                    \
64         gstvaapiprofile.c                       \
65         gstvaapisubpicture.c                    \
66         gstvaapisurface.c                       \
67         gstvaapisurfacepool.c                   \
68         gstvaapisurfaceproxy.c                  \
69         gstvaapiutils.c                         \
70         gstvaapivalue.c                         \
71         gstvaapivideobuffer.c                   \
72         gstvaapivideometa.c                     \
73         gstvaapivideopool.c                     \
74         gstvaapiwindow.c                        \
75         $(NULL)
76
77 libgstvaapi_source_h =                          \
78         gstvaapicontext.h                       \
79         gstvaapidecoder.h                       \
80         gstvaapidecoder_h264.h                  \
81         gstvaapidecoder_mpeg2.h                 \
82         gstvaapidecoder_mpeg4.h                 \
83         gstvaapidecoder_vc1.h                   \
84         gstvaapidisplay.h                       \
85         gstvaapidisplaycache.h                  \
86         gstvaapiimage.h                         \
87         gstvaapiimageformat.h                   \
88         gstvaapiimagepool.h                     \
89         gstvaapiobject.h                        \
90         gstvaapiparamspecs.h                    \
91         gstvaapiprofile.h                       \
92         gstvaapisubpicture.h                    \
93         gstvaapisurface.h                       \
94         gstvaapisurfacepool.h                   \
95         gstvaapisurfaceproxy.h                  \
96         gstvaapitypes.h                         \
97         gstvaapivalue.h                         \
98         gstvaapivideobuffer.h                   \
99         gstvaapivideometa.h                     \
100         gstvaapivideopool.h                     \
101         gstvaapiwindow.h                        \
102         $(NULL)
103
104 libgstvaapi_source_priv_h =                     \
105         glibcompat.h                            \
106         gstvaapi_priv.h                         \
107         gstvaapicodec_objects.h                 \
108         gstvaapicompat.h                        \
109         gstvaapidebug.h                         \
110         gstvaapidecoder_dpb.h                   \
111         gstvaapidecoder_frame.h                 \
112         gstvaapidecoder_objects.h               \
113         gstvaapidecoder_priv.h                  \
114         gstvaapidecoder_unit.h                  \
115         gstvaapidisplay_priv.h                  \
116         gstvaapiminiobject.h                    \
117         gstvaapiobject_priv.h                   \
118         gstvaapisurface_priv.h                  \
119         gstvaapiutils.h                         \
120         gstvaapiworkarounds.h                   \
121         sysdeps.h                               \
122         $(NULL)
123
124 if USE_JPEG_DECODER
125 libgstvaapi_source_c += gstvaapidecoder_jpeg.c
126 libgstvaapi_source_h += gstvaapidecoder_jpeg.h
127 endif
128
129 libgstvaapi_drm_source_c =                      \
130         gstvaapidisplay_drm.c                   \
131         gstvaapiwindow_drm.c                    \
132         gstvaapiutils.c                         \
133         $(NULL)
134
135 libgstvaapi_drm_source_h =                      \
136         gstvaapidisplay_drm.h                   \
137         gstvaapiwindow_drm.h                    \
138         $(NULL)
139
140 libgstvaapi_drm_source_priv_h =                 \
141         gstvaapicompat.h                        \
142         gstvaapidisplay_drm_priv.h              \
143         gstvaapiutils.h                         \
144         $(NULL)
145
146 libgstvaapi_x11_source_c =                      \
147         gstvaapidisplay_x11.c                   \
148         gstvaapiutils.c                         \
149         gstvaapiutils_x11.c                     \
150         gstvaapiwindow_x11.c                    \
151         $(NULL)
152
153 libgstvaapi_x11_source_h =                      \
154         gstvaapidisplay_x11.h                   \
155         gstvaapiwindow_x11.h                    \
156         $(NULL)
157
158 libgstvaapi_x11_source_priv_h =                 \
159         gstvaapicompat.h                        \
160         gstvaapidisplay_x11_priv.h              \
161         gstvaapiutils.h                         \
162         gstvaapiutils_x11.h                     \
163         $(NULL)
164
165 libgstvaapi_glx_source_c =                      \
166         gstvaapidisplay_glx.c                   \
167         gstvaapitexture.c                       \
168         gstvaapiutils.c                         \
169         gstvaapiutils_glx.c                     \
170         gstvaapiutils_x11.c                     \
171         gstvaapivideoconverter_glx.c            \
172         gstvaapiwindow_glx.c                    \
173         $(NULL)
174
175 libgstvaapi_glx_source_h =                      \
176         gstvaapidisplay_glx.h                   \
177         gstvaapitexture.h                       \
178         gstvaapivideoconverter_glx.h            \
179         gstvaapiwindow_glx.h                    \
180         $(NULL)
181
182 libgstvaapi_glx_source_priv_h =                 \
183         gstvaapicompat.h                        \
184         gstvaapidisplay_glx_priv.h              \
185         gstvaapiutils.h                         \
186         gstvaapiutils_glx.h                     \
187         gstvaapiutils_x11.h                     \
188         $(NULL)
189
190 libgstvaapi_wayland_source_c =                  \
191         gstvaapidisplay_wayland.c               \
192         gstvaapiutils.c                         \
193         gstvaapiwindow_wayland.c                \
194         $(NULL)
195
196 libgstvaapi_wayland_source_h =                  \
197         gstvaapidisplay_wayland.h               \
198         gstvaapiwindow_wayland.h                \
199         $(NULL)
200
201 libgstvaapi_wayland_source_priv_h =             \
202         gstvaapicompat.h                        \
203         gstvaapidisplay_wayland_priv.h          \
204         gstvaapiutils.h                         \
205         $(NULL)
206
207 libgstvaapi_@GST_MAJORMINOR@_la_SOURCES =       \
208         $(libgstvaapi_source_c)                 \
209         $(libgstvaapi_source_priv_h)            \
210         $(NULL)
211
212 libgstvaapi_@GST_MAJORMINOR@include_HEADERS =   \
213         $(libgstvaapi_source_h)                 \
214         $(NULL)
215
216 libgstvaapi_@GST_MAJORMINOR@includedir =        \
217         $(libgstvaapi_includedir)
218
219 libgstvaapi_@GST_MAJORMINOR@_la_CFLAGS =        \
220         $(libgstvaapi_cflags)                   \
221         $(NULL)
222
223 libgstvaapi_@GST_MAJORMINOR@_la_LIBADD =        \
224         $(libgstvaapi_libs)                     \
225         $(NULL)
226
227 libgstvaapi_@GST_MAJORMINOR@_la_LDFLAGS =       \
228         $(GST_ALL_LDFLAGS)                      \
229         $(GST_VAAPI_LT_LDFLAGS)                 \
230         -export-symbols-regex "^gst_.*vaapi.*"  \
231         $(NULL)
232
233 libgstvaapi_drm_@GST_MAJORMINOR@_la_SOURCES =   \
234         $(libgstvaapi_drm_source_c)             \
235         $(libgstvaapi_drm_source_priv_h)        \
236         $(NULL)
237
238 libgstvaapi_drm_@GST_MAJORMINOR@include_HEADERS = \
239         $(libgstvaapi_drm_source_h)             \
240         $(NULL)
241
242 libgstvaapi_drm_@GST_MAJORMINOR@includedir =    \
243         $(libgstvaapi_includedir)
244
245 libgstvaapi_drm_@GST_MAJORMINOR@_la_CFLAGS =    \
246         -DGST_USE_UNSTABLE_API                  \
247         -I$(top_srcdir)/gst-libs                \
248         $(GLIB_CFLAGS)                          \
249         $(GST_BASE_CFLAGS)                      \
250         $(UDEV_CFLAGS)                          \
251         $(DRM_CFLAGS)                           \
252         $(LIBVA_DRM_CFLAGS)                     \
253         $(NULL)
254
255 libgstvaapi_drm_@GST_MAJORMINOR@_la_LIBADD =    \
256         $(GLIB_LIBS)                            \
257         $(UDEV_LIBS)                            \
258         $(DRM_LIBS)                             \
259         $(LIBVA_DRM_LIBS)                       \
260         libgstvaapi-@GST_MAJORMINOR@.la         \
261         $(NULL)
262
263 libgstvaapi_drm_@GST_MAJORMINOR@_la_LDFLAGS =   \
264         $(GST_ALL_LDFLAGS)                      \
265         $(GST_VAAPI_LT_LDFLAGS)                 \
266         $(NULL)
267
268 libgstvaapi_x11_@GST_MAJORMINOR@_la_SOURCES =   \
269         $(libgstvaapi_x11_source_c)             \
270         $(libgstvaapi_x11_source_priv_h)        \
271         $(NULL)
272
273 libgstvaapi_x11_@GST_MAJORMINOR@include_HEADERS = \
274         $(libgstvaapi_x11_source_h)             \
275         $(NULL)
276
277 libgstvaapi_x11_@GST_MAJORMINOR@includedir =    \
278         $(libgstvaapi_includedir)
279
280 libgstvaapi_x11_@GST_MAJORMINOR@_la_CFLAGS =    \
281         -DGST_USE_UNSTABLE_API                  \
282         -I$(top_srcdir)/gst-libs                \
283         $(GLIB_CFLAGS)                          \
284         $(GST_BASE_CFLAGS)                      \
285         $(X11_CFLAGS)                           \
286         $(XRANDR_CFLAGS)                        \
287         $(LIBVA_X11_CFLAGS)                     \
288         $(NULL)
289
290 libgstvaapi_x11_@GST_MAJORMINOR@_la_LIBADD =    \
291         $(GLIB_LIBS)                            \
292         $(X11_LIBS)                             \
293         $(XRANDR_LIBS)                          \
294         $(LIBVA_X11_LIBS)                       \
295         libgstvaapi-@GST_MAJORMINOR@.la         \
296         $(NULL)
297
298 libgstvaapi_x11_@GST_MAJORMINOR@_la_LDFLAGS =   \
299         $(GST_ALL_LDFLAGS)                      \
300         $(GST_VAAPI_LT_LDFLAGS)                 \
301         $(NULL)
302
303 libgstvaapi_glx_@GST_MAJORMINOR@_la_SOURCES =   \
304         $(libgstvaapi_glx_source_c)             \
305         $(libgstvaapi_glx_source_priv_h)        \
306         $(NULL)
307
308 libgstvaapi_glx_@GST_MAJORMINOR@include_HEADERS = \
309         $(libgstvaapi_glx_source_h)             \
310         $(NULL)
311
312 libgstvaapi_glx_@GST_MAJORMINOR@includedir =    \
313         $(libgstvaapi_includedir)
314
315 libgstvaapi_glx_@GST_MAJORMINOR@_la_CFLAGS =    \
316         -DGST_USE_UNSTABLE_API                  \
317         -I$(top_srcdir)/gst-libs                \
318         $(GLIB_CFLAGS)                          \
319         $(GST_BASE_CFLAGS)                      \
320         $(GST_VIDEO_CFLAGS)                     \
321         $(GL_CFLAGS)                            \
322         $(LIBVA_GLX_CFLAGS)                     \
323         $(NULL)
324
325 libgstvaapi_glx_@GST_MAJORMINOR@_la_LIBADD =    \
326         $(GLIB_LIBS)                            \
327         $(GST_BASE_LIBS)                        \
328         $(GST_VIDEO_LIBS)                       \
329         $(GL_LIBS)                              \
330         $(LIBVA_GLX_LIBS)                       \
331         libgstvaapi-x11-@GST_MAJORMINOR@.la     \
332         $(NULL)
333
334 libgstvaapi_glx_@GST_MAJORMINOR@_la_LDFLAGS =   \
335         $(GST_ALL_LDFLAGS)                      \
336         $(GST_VAAPI_LT_LDFLAGS)                 \
337         $(NULL)
338
339 libgstvaapi_wayland_@GST_MAJORMINOR@_la_SOURCES = \
340         $(libgstvaapi_wayland_source_c)         \
341         $(libgstvaapi_wayland_source_priv_h)    \
342         $(NULL)
343
344 libgstvaapi_wayland_@GST_MAJORMINOR@include_HEADERS = \
345         $(libgstvaapi_wayland_source_h)         \
346         $(NULL)
347
348 libgstvaapi_wayland_@GST_MAJORMINOR@includedir = \
349         $(libgstvaapi_includedir)
350
351 libgstvaapi_wayland_@GST_MAJORMINOR@_la_CFLAGS = \
352         -DGST_USE_UNSTABLE_API                  \
353         -I$(top_srcdir)/gst-libs                \
354         $(GLIB_CFLAGS)                          \
355         $(GST_BASE_CFLAGS)                      \
356         $(WAYLAND_CFLAGS)                       \
357         $(LIBVA_WAYLAND_CFLAGS)                 \
358         $(NULL)
359
360 libgstvaapi_wayland_@GST_MAJORMINOR@_la_LIBADD = \
361         $(GLIB_LIBS)                            \
362         $(WAYLAND_LIBS)                         \
363         $(LIBVA_WAYLAND_LIBS)                   \
364         libgstvaapi-@GST_MAJORMINOR@.la         \
365         $(NULL)
366
367 libgstvaapi_wayland_@GST_MAJORMINOR@_la_LDFLAGS = \
368         $(GST_ALL_LDFLAGS)                      \
369         $(GST_VAAPI_LT_LDFLAGS)                 \
370         $(NULL)
371
372 # Extra clean files so that maintainer-clean removes *everything*
373 MAINTAINERCLEANFILES = Makefile.in