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