summaryrefslogtreecommitdiff
path: root/gst-libs/gst/codecparsers/Makefile.am
blob: ac1654dd8b8719444855627d8cbe47edac174df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
noinst_LTLIBRARIES =				\
	libgstvaapi-codecparsers.la		\
	$(NULL)

local_codecparsers_srcdir = \
	$(top_srcdir)/ext/codecparsers/gst-libs/gst/codecparsers

libgstvaapi_codecparsers_cflags =		\
	-DGST_USE_UNSTABLE_API			\
	-I$(top_srcdir)/gst-libs		\
	-I$(top_builddir)/gst-libs		\
	$(GST_BASE_CFLAGS)			\
	$(GST_CFLAGS)				\
	$(NULL)

libgstvaapi_codecparsers_libs =			\
	$(GST_BASE_LIBS)			\
	$(GST_LIBS)				\
	$(NULL)

add_source_c =
add_source_h =
gen_source_c = parserutils.c nalutils.c
gen_source_h = parserutils.h nalutils.h

# Always build VC-1 and MPEG-4 parsers for now
gen_source_c += gstvc1parser.c gstmpeg4parser.c
gen_source_h += gstvc1parser.h gstmpeg4parser.h

if USE_LOCAL_CODEC_PARSERS_JPEG
gen_source_c += gstjpegparser.c
gen_source_h += gstjpegparser.h
endif

if USE_LOCAL_CODEC_PARSERS_MPEG2
gen_source_c += gstmpegvideoparser.c
gen_source_h += gstmpegvideoparser.h
endif

if USE_LOCAL_CODEC_PARSERS_H264
gen_source_c += gsth264parser.c
gen_source_h += gsth264parser.h
endif

if USE_LOCAL_CODEC_PARSERS_VP8
gen_source_c += gstvp8parser.c dboolhuff.c gstvp8rangedecoder.c vp8utils.c
gen_source_h += gstvp8parser.h gstvp8rangedecoder.h vp8utils.h dboolhuff.h
endif

if USE_LOCAL_CODEC_PARSERS_VP9
gen_source_c += gstvp9parser.c vp9utils.c
gen_source_h += gstvp9parser.h vp9utils.h
endif

if USE_LOCAL_CODEC_PARSERS_H265
gen_source_c += gsth265parser.c
gen_source_h += gsth265parser.h
endif

GENFILES = \
	$(gen_source_c)				\
	$(gen_source_h)				\
	$(NULL)

nodist_EXTRA_libgstvaapi_codecparsers_la_SOURCES = dummy.c

nodist_libgstvaapi_codecparsers_la_SOURCES =	\
	$(gen_source_c)				\
	$(add_source_c)				\
	$(NULL)

libgstvaapi_codecparsers_la_CFLAGS =		\
	$(libgstvaapi_codecparsers_cflags)	\
	$(NULL)

libgstvaapi_codecparsers_la_LIBADD =		\
	$(libgstvaapi_codecparsers_libs)	\
	$(NULL)

libgstvaapi_codecparsers_la_LDFLAGS =		\
	$(GST_ALL_LDFLAGS)			\
	$(NULL)

all-local: .timestamp.symlinks

.timestamp.symlinks: $(GENFILES)
	touch $@

$(gen_source_c): %.c: $(local_codecparsers_srcdir)/%.c $(gen_source_h)
	$(LN_S) -f $< $@
$(gen_source_h): %.h: $(local_codecparsers_srcdir)/%.h
	$(LN_S) -f $< $@

DISTCLEANFILES = $(GENFILES) .timestamp.symlinks

-include $(top_srcdir)/git.mk