codecparsers: always build the VC-1 parser library.
[vaapi:gstreamer-vaapi.git] / gst-libs / gst / codecparsers / Makefile.am
1 noinst_LTLIBRARIES =                            \
2         libgstvaapi-codecparsers.la             \
3         $(NULL)
4
5 local_codecparsers_srcdir = \
6         $(top_srcdir)/ext/codecparsers/gst-libs/gst/codecparsers
7
8 libgstvaapi_codecparsers_cflags =               \
9         -DGST_USE_UNSTABLE_API                  \
10         -I$(top_srcdir)/gst-libs                \
11         $(GST_BASE_CFLAGS)                      \
12         $(GST_CFLAGS)                           \
13         $(NULL)
14
15 libgstvaapi_codecparsers_libs =                 \
16         $(GST_BASE_LIBS)                        \
17         $(GST_LIBS)                             \
18         $(NULL)
19
20 gen_source_c = gstvc1parser.c parserutils.c
21 gen_source_h = gstvc1parser.h parserutils.h
22
23 if USE_LOCAL_CODEC_PARSERS_JPEG
24 gen_source_c += gstjpegparser.c
25 gen_source_h += gstjpegparser.h
26 endif
27
28 if USE_LOCAL_CODEC_PARSERS_MPEG2
29 gen_source_c += gstmpegvideoparser.c
30 gen_source_h += gstmpegvideoparser.h
31 endif
32
33 if USE_LOCAL_CODEC_PARSERS_H264
34 gen_source_c += gsth264parser.c
35 gen_source_h += gsth264parser.h
36 endif
37
38 GENFILES = \
39         $(gen_source_c)                         \
40         $(gen_source_h)                         \
41         $(NULL)
42
43 nodist_EXTRA_libgstvaapi_codecparsers_la_SOURCES = dummy.c
44
45 nodist_libgstvaapi_codecparsers_la_SOURCES =    \
46         $(gen_source_c)                         \
47         $(NULL)
48
49 libgstvaapi_codecparsers_la_CFLAGS =            \
50         $(libgstvaapi_codecparsers_cflags)      \
51         $(NULL)
52
53 libgstvaapi_codecparsers_la_LIBADD =            \
54         $(libgstvaapi_codecparsers_libs)        \
55         $(NULL)
56
57 libgstvaapi_codecparsers_la_LDFLAGS =           \
58         $(GST_ALL_LDFLAGS)                      \
59         $(NULL)
60
61 all-local: .timestamp.symlinks
62
63 .timestamp.symlinks: $(GENFILES)
64         touch $@
65
66 $(gen_source_c): %.c: $(local_codecparsers_srcdir)/%.c %.h
67         $(LN_S) -f $< $@
68 $(gen_source_h): %.h: $(local_codecparsers_srcdir)/%.h
69         $(LN_S) -f $< $@
70
71 DISTCLEANFILES = $(GENFILES) .timestamp.symlinks
72
73 # Extra clean files so that maintainer-clean removes *everything*
74 MAINTAINERCLEANFILES = Makefile.in