vp8: use range decoder from libvpx.
[platform/upstream/gstreamer.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         -I$(top_builddir)/gst-libs              \
12         $(GST_BASE_CFLAGS)                      \
13         $(GST_CFLAGS)                           \
14         $(NULL)
15
16 libgstvaapi_codecparsers_libs =                 \
17         $(GST_BASE_LIBS)                        \
18         $(GST_LIBS)                             \
19         $(NULL)
20
21 add_source_c =
22 add_source_h =
23 gen_source_c = parserutils.c nalutils.c
24 gen_source_h = parserutils.h nalutils.h
25
26 # Always build VC-1 and MPEG-4 parsers for now
27 gen_source_c += gstvc1parser.c gstmpeg4parser.c
28 gen_source_h += gstvc1parser.h gstmpeg4parser.h
29
30 if USE_LOCAL_CODEC_PARSERS_JPEG
31 gen_source_c += gstjpegparser.c
32 gen_source_h += gstjpegparser.h
33 endif
34
35 if USE_LOCAL_CODEC_PARSERS_MPEG2
36 gen_source_c += gstmpegvideoparser.c
37 gen_source_h += gstmpegvideoparser.h
38 endif
39
40 if USE_LOCAL_CODEC_PARSERS_H264
41 gen_source_c += gsth264parser.c
42 gen_source_h += gsth264parser.h
43 endif
44
45 if USE_LOCAL_CODEC_PARSERS_VP8
46 gen_source_c += gstvp8parser.c
47 gen_source_h += gstvp8parser.h gstvp8rangedecoder.h vp8utils.h
48 #gen_source_c += dboolhuff.c gstvp8rangedecoder.c vp8utils.c
49 #gen_source_h += dboolhuff.h
50 add_source_c += gstvaapilibvpx.c
51
52 libgstvaapi_codecparsers_cflags += \
53         -I$(top_srcdir)/ext/libvpx \
54         -I$(top_srcdir)/ext/libvpx/upstream \
55         -I$(top_builddir)/ext/libvpx/upstream
56
57 libgstvaapi_codecparsers_libs += \
58         $(top_builddir)/ext/libvpx/libgstcodecparsers_vpx.la
59 endif
60
61 GENFILES = \
62         $(gen_source_c)                         \
63         $(gen_source_h)                         \
64         $(NULL)
65
66 nodist_EXTRA_libgstvaapi_codecparsers_la_SOURCES = dummy.c
67
68 nodist_libgstvaapi_codecparsers_la_SOURCES =    \
69         $(gen_source_c)                         \
70         $(add_source_c)                         \
71         $(NULL)
72
73 libgstvaapi_codecparsers_la_CFLAGS =            \
74         $(libgstvaapi_codecparsers_cflags)      \
75         $(NULL)
76
77 libgstvaapi_codecparsers_la_LIBADD =            \
78         $(libgstvaapi_codecparsers_libs)        \
79         $(NULL)
80
81 libgstvaapi_codecparsers_la_LDFLAGS =           \
82         $(GST_ALL_LDFLAGS)                      \
83         $(NULL)
84
85 all-local: .timestamp.symlinks
86
87 .timestamp.symlinks: $(GENFILES)
88         touch $@
89
90 $(gen_source_c): %.c: $(local_codecparsers_srcdir)/%.c $(gen_source_h)
91         $(LN_S) -f $< $@
92 $(gen_source_h): %.h: $(local_codecparsers_srcdir)/%.h
93         $(LN_S) -f $< $@
94 $(top_builddir)/ext/libvpx/libgstcodecparsers_vpx.la:
95         $(MAKE) -C $(top_builddir)/ext/libvpx
96
97 EXTRA_DIST = \
98         $(add_source_c) \
99         $(NULL)
100
101 DISTCLEANFILES = $(GENFILES) .timestamp.symlinks
102
103 # Extra clean files so that maintainer-clean removes *everything*
104 MAINTAINERCLEANFILES = Makefile.in