display: implement a VA display cache.
[platform/upstream/gstreamer-vaapi.git] / gst-libs / gst / vaapi / Makefile.am
1 lib_LTLIBRARIES =                               \
2         libgstvaapi-@GST_MAJORMINOR@.la         \
3         libgstvaapi-x11-@GST_MAJORMINOR@.la     \
4         $(NULL)
5
6 if USE_GLX
7 lib_LTLIBRARIES += libgstvaapi-glx-@GST_MAJORMINOR@.la
8 endif
9
10 libgstvaapi_includedir =                        \
11         $(includedir)/gstreamer-@GST_MAJORMINOR@/gst/vaapi
12
13 libgstvaapi_ffmpeg_source_c =                   \
14         gstvaapidecoder_ffmpeg.c                \
15         $(NULL)
16
17 libgstvaapi_ffmpeg_source_h =                   \
18         gstvaapidecoder_ffmpeg.h                \
19         $(NULL)
20
21 libgstvaapi_ffmpeg_source_priv_h =              \
22         $(NULL)
23
24 libgstvaapi_source_c =                          \
25         gstvaapicontext.c                       \
26         gstvaapidecoder.c                       \
27         gstvaapidisplay.c                       \
28         gstvaapidisplaycache.c                  \
29         gstvaapiimage.c                         \
30         gstvaapiimageformat.c                   \
31         gstvaapiimagepool.c                     \
32         gstvaapimarshal.c                       \
33         gstvaapiobject.c                        \
34         gstvaapiparamspecs.c                    \
35         gstvaapiprofile.c                       \
36         gstvaapisubpicture.c                    \
37         gstvaapisurface.c                       \
38         gstvaapisurfacepool.c                   \
39         gstvaapisurfaceproxy.c                  \
40         gstvaapiutils.c                         \
41         gstvaapivalue.c                         \
42         gstvaapivideobuffer.c                   \
43         gstvaapivideopool.c                     \
44         gstvaapivideosink.c                     \
45         gstvaapiwindow.c                        \
46         $(libgstvaapi_ffmpeg_source_c)          \
47         $(NULL)
48
49 libgstvaapi_source_h =                          \
50         gstvaapicontext.h                       \
51         gstvaapidecoder.h                       \
52         gstvaapidisplay.h                       \
53         gstvaapidisplaycache.h                  \
54         gstvaapiimage.h                         \
55         gstvaapiimageformat.h                   \
56         gstvaapiimagepool.h                     \
57         gstvaapiobject.h                        \
58         gstvaapiparamspecs.h                    \
59         gstvaapiprofile.h                       \
60         gstvaapisubpicture.h                    \
61         gstvaapisurface.h                       \
62         gstvaapisurfacepool.h                   \
63         gstvaapisurfaceproxy.h                  \
64         gstvaapitypes.h                         \
65         gstvaapivalue.h                         \
66         gstvaapivideobuffer.h                   \
67         gstvaapivideopool.h                     \
68         gstvaapivideosink.h                     \
69         gstvaapiwindow.h                        \
70         $(libgstvaapi_ffmpeg_source_h)          \
71         $(NULL)
72
73 libgstvaapi_source_priv_h =                     \
74         gstvaapi_priv.h                         \
75         gstvaapicompat.h                        \
76         gstvaapidebug.h                         \
77         gstvaapidecoder_priv.h                  \
78         gstvaapidisplay_priv.h                  \
79         gstvaapiobject_priv.h                   \
80         gstvaapisurface_priv.h                  \
81         gstvaapiutils.h                         \
82         gstvaapivideobuffer_priv.h              \
83         $(libgst_vaapi_ffmpeg_source_priv_h)    \
84         $(NULL)
85
86 libgstvaapi_x11_source_c =                      \
87         gstvaapidisplay_x11.c                   \
88         gstvaapiutils.c                         \
89         gstvaapiutils_x11.c                     \
90         gstvaapiwindow_x11.c                    \
91         $(NULL)
92
93 libgstvaapi_x11_source_h =                      \
94         gstvaapidisplay_x11.h                   \
95         gstvaapiwindow_x11.h                    \
96         $(NULL)
97
98 libgstvaapi_x11_source_priv_h =                 \
99         gstvaapicompat.h                        \
100         gstvaapidisplay_x11_priv.h              \
101         gstvaapiutils.h                         \
102         gstvaapiutils_x11.h                     \
103         $(NULL)
104
105 libgstvaapi_glx_source_c =                      \
106         gstvaapidisplay_glx.c                   \
107         gstvaapitexture.c                       \
108         gstvaapiutils.c                         \
109         gstvaapiutils_glx.c                     \
110         gstvaapiutils_x11.c                     \
111         gstvaapivideobuffer_glx.c               \
112         gstvaapivideoconverter_glx.c            \
113         gstvaapiwindow_glx.c                    \
114         $(NULL)
115
116 libgstvaapi_glx_source_h =                      \
117         gstvaapidisplay_glx.h                   \
118         gstvaapitexture.h                       \
119         gstvaapivideobuffer_glx.h               \
120         gstvaapivideoconverter_glx.h            \
121         gstvaapiwindow_glx.h                    \
122         $(NULL)
123
124 libgstvaapi_glx_source_priv_h =                 \
125         gstvaapicompat.h                        \
126         gstvaapidisplay_glx_priv.h              \
127         gstvaapiutils.h                         \
128         gstvaapiutils_glx.h                     \
129         gstvaapiutils_x11.h                     \
130         $(NULL)
131
132 libgstvaapi_@GST_MAJORMINOR@_la_SOURCES =       \
133         $(libgstvaapi_source_c)                 \
134         $(libgstvaapi_source_priv_h)            \
135         $(NULL)
136
137 libgstvaapi_@GST_MAJORMINOR@include_HEADERS =   \
138         $(libgstvaapi_source_h)                 \
139         $(NULL)
140
141 libgstvaapi_@GST_MAJORMINOR@includedir =        \
142         $(libgstvaapi_includedir)
143
144 libgstvaapi_@GST_MAJORMINOR@_la_CFLAGS =        \
145         -DGST_USE_UNSTABLE_API                  \
146         -I$(top_srcdir)/gst-libs                \
147         $(GST_BASE_CFLAGS)                      \
148         $(GST_BASEVIDEO_CFLAGS)                 \
149         $(GST_VIDEO_CFLAGS)                     \
150         $(GST_CFLAGS)                           \
151         $(LIBAVCODEC_CFLAGS)                    \
152         $(LIBVA_CFLAGS)                         \
153         $(NULL)
154
155 libgstvaapi_@GST_MAJORMINOR@_la_LIBADD =        \
156         $(GST_BASE_LIBS)                        \
157         $(GST_BASEVIDEO_LIBS)                   \
158         $(GST_LIBS)                             \
159         $(LIBAVCODEC_LIBS)                      \
160         $(LIBVA_LIBS)                           \
161         $(NULL)
162
163 libgstvaapi_@GST_MAJORMINOR@_la_LDFLAGS =       \
164         $(GST_ALL_LDFLAGS)                      \
165         $(NULL)
166
167 libgstvaapi_x11_@GST_MAJORMINOR@_la_SOURCES =   \
168         $(libgstvaapi_x11_source_c)             \
169         $(libgstvaapi_x11_source_priv_h)        \
170         $(NULL)
171
172 libgstvaapi_x11_@GST_MAJORMINOR@include_HEADERS = \
173         $(libgstvaapi_x11_source_h)             \
174         $(NULL)
175
176 libgstvaapi_x11_@GST_MAJORMINOR@includedir =    \
177         $(libgstvaapi_includedir)
178
179 libgstvaapi_x11_@GST_MAJORMINOR@_la_CFLAGS =    \
180         -DGST_USE_UNSTABLE_API                  \
181         -I$(top_srcdir)/gst-libs                \
182         $(GLIB_CFLAGS)                          \
183         $(GST_BASE_CFLAGS)                      \
184         $(X11_CFLAGS)                           \
185         $(LIBVA_X11_CFLAGS)                     \
186         $(NULL)
187
188 libgstvaapi_x11_@GST_MAJORMINOR@_la_LIBADD =    \
189         $(GLIB_LIBS)                            \
190         $(X11_LIBS)                             \
191         $(LIBVA_X11_LIBS)                       \
192         libgstvaapi-@GST_MAJORMINOR@.la         \
193         $(NULL)
194
195 libgstvaapi_x11_@GST_MAJORMINOR@_la_LDFLAGS =   \
196         $(GST_ALL_LDFLAGS)                      \
197         $(NULL)
198
199 libgstvaapi_glx_@GST_MAJORMINOR@_la_SOURCES =   \
200         $(libgstvaapi_glx_source_c)             \
201         $(libgstvaapi_glx_source_priv_h)        \
202         $(NULL)
203
204 libgstvaapi_glx_@GST_MAJORMINOR@include_HEADERS = \
205         $(libgstvaapi_glx_source_h)             \
206         $(NULL)
207
208 libgstvaapi_glx_@GST_MAJORMINOR@includedir =    \
209         $(libgstvaapi_includedir)
210
211 libgstvaapi_glx_@GST_MAJORMINOR@_la_CFLAGS =    \
212         -DGST_USE_UNSTABLE_API                  \
213         -I$(top_srcdir)/gst-libs                \
214         $(GLIB_CFLAGS)                          \
215         $(GST_BASE_CFLAGS)                      \
216         $(GLX_CFLAGS)                           \
217         $(LIBVA_GLX_CFLAGS)                     \
218         $(NULL)
219
220 libgstvaapi_glx_@GST_MAJORMINOR@_la_LIBADD =    \
221         $(GLIB_LIBS)                            \
222         $(GLX_LIBS)                             \
223         $(LIBVA_GLX_LIBS)                       \
224         libgstvaapi-x11-@GST_MAJORMINOR@.la     \
225         $(NULL)
226
227 libgstvaapi_glx_@GST_MAJORMINOR@_la_LDFLAGS =   \
228         $(GST_ALL_LDFLAGS)                      \
229         $(NULL)
230
231 # Extra clean files so that maintainer-clean removes *everything*
232 MAINTAINERCLEANFILES = Makefile.in
233
234 # glib-genmarshal rules
235 glib_marshal_list = gstvaapimarshal.list
236 glib_marshal_prefix = gst_vaapi_marshal
237
238 marshal_h = $(glib_marshal_list:.list=.h)
239 marshal_c = $(glib_marshal_list:.list=.c)
240
241 CLEANFILES      = stamp-marshal
242 DISTCLEANFILES  = $(marshal_h) $(marshal_c)
243 BUILT_SOURCES   = $(marshal_h) $(marshal_c)
244 EXTRA_DIST      = $(srcdir)/$(glib_marshal_list)
245
246 stamp-marshal: $(glib_marshal_list)
247         $(GLIB_GENMARSHAL) \
248                 --prefix=$(glib_marshal_prefix) \
249                 --header \
250         $(srcdir)/$(glib_marshal_list) > xgen-mh \
251         && (cmp -s xgen-mh $(marshal_h) || cp -f xgen-mh $(marshal_h)) \
252         && rm -f xgen-mh \
253         && echo timestamp > $(@F)
254
255 $(marshal_h): stamp-marshal
256         @true
257
258 $(marshal_c): $(marshal_h)
259         (echo "#include \"$(marshal_h)\"" ; \
260         $(GLIB_GENMARSHAL) \
261                 --prefix=$(glib_marshal_prefix) \
262                 --body \
263         $(srcdir)/$(glib_marshal_list)) > xgen-mc \
264         && cp xgen-mc $(marshal_c) \
265         && rm -f xgen-mc