2012-02-09 16:21:04 +00:00
|
|
|
noinst_LTLIBRARIES = \
|
|
|
|
libgstvaapi-codecparsers.la \
|
|
|
|
$(NULL)
|
|
|
|
|
2012-10-11 11:23:02 +00:00
|
|
|
local_codecparsers_srcdir = \
|
|
|
|
$(top_srcdir)/ext/codecparsers/gst-libs/gst/codecparsers
|
|
|
|
|
2012-02-09 16:21:04 +00:00
|
|
|
libgstvaapi_codecparsers_cflags = \
|
|
|
|
-DGST_USE_UNSTABLE_API \
|
|
|
|
-I$(top_srcdir)/gst-libs \
|
2013-01-11 12:34:45 +00:00
|
|
|
-I$(top_builddir)/gst-libs \
|
2012-02-09 16:21:04 +00:00
|
|
|
$(GST_BASE_CFLAGS) \
|
|
|
|
$(GST_CFLAGS) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
libgstvaapi_codecparsers_libs = \
|
|
|
|
$(GST_BASE_LIBS) \
|
|
|
|
$(GST_LIBS) \
|
|
|
|
$(NULL)
|
|
|
|
|
2014-02-13 20:17:23 +00:00
|
|
|
add_source_c =
|
|
|
|
add_source_h =
|
2014-03-21 14:09:14 +00:00
|
|
|
gen_source_c = parserutils.c nalutils.c
|
|
|
|
gen_source_h = parserutils.h nalutils.h
|
2012-11-16 15:18:52 +00:00
|
|
|
|
2013-06-14 09:39:54 +00:00
|
|
|
# Always build VC-1 and MPEG-4 parsers for now
|
|
|
|
gen_source_c += gstvc1parser.c gstmpeg4parser.c
|
|
|
|
gen_source_h += gstvc1parser.h gstmpeg4parser.h
|
2012-02-09 16:21:04 +00:00
|
|
|
|
2012-10-11 11:23:02 +00:00
|
|
|
if USE_LOCAL_CODEC_PARSERS_JPEG
|
|
|
|
gen_source_c += gstjpegparser.c
|
|
|
|
gen_source_h += gstjpegparser.h
|
|
|
|
endif
|
|
|
|
|
2012-11-08 09:40:47 +00:00
|
|
|
if USE_LOCAL_CODEC_PARSERS_MPEG2
|
|
|
|
gen_source_c += gstmpegvideoparser.c
|
|
|
|
gen_source_h += gstmpegvideoparser.h
|
|
|
|
endif
|
|
|
|
|
2012-10-11 11:49:14 +00:00
|
|
|
if USE_LOCAL_CODEC_PARSERS_H264
|
2012-11-08 09:40:47 +00:00
|
|
|
gen_source_c += gsth264parser.c
|
|
|
|
gen_source_h += gsth264parser.h
|
2012-10-11 11:49:14 +00:00
|
|
|
endif
|
|
|
|
|
2013-12-26 23:18:24 +00:00
|
|
|
if USE_LOCAL_CODEC_PARSERS_VP8
|
|
|
|
gen_source_c += gstvp8parser.c
|
|
|
|
gen_source_h += gstvp8parser.h gstvp8rangedecoder.h vp8utils.h
|
2014-04-21 15:49:38 +00:00
|
|
|
|
|
|
|
if USE_BUILTIN_LIBVPX
|
2014-02-13 20:17:23 +00:00
|
|
|
add_source_c += gstvaapilibvpx.c
|
2013-12-26 23:18:24 +00:00
|
|
|
|
2014-02-13 20:17:23 +00:00
|
|
|
libgstvaapi_codecparsers_cflags += \
|
|
|
|
-I$(top_srcdir)/ext/libvpx \
|
|
|
|
-I$(top_srcdir)/ext/libvpx/upstream \
|
|
|
|
-I$(top_builddir)/ext/libvpx/upstream
|
|
|
|
|
|
|
|
libgstvaapi_codecparsers_libs += \
|
|
|
|
$(top_builddir)/ext/libvpx/libgstcodecparsers_vpx.la
|
2014-04-21 15:49:38 +00:00
|
|
|
else
|
|
|
|
gen_source_c += dboolhuff.c gstvp8rangedecoder.c vp8utils.c
|
|
|
|
gen_source_h += dboolhuff.h
|
|
|
|
endif
|
2013-12-26 23:18:24 +00:00
|
|
|
endif
|
|
|
|
|
2015-04-13 11:51:51 +00:00
|
|
|
if USE_LOCAL_CODEC_PARSERS_H265
|
|
|
|
gen_source_c += gsth265parser.c
|
|
|
|
gen_source_h += gsth265parser.h
|
|
|
|
endif
|
|
|
|
|
2012-10-11 11:23:02 +00:00
|
|
|
GENFILES = \
|
|
|
|
$(gen_source_c) \
|
|
|
|
$(gen_source_h) \
|
2012-02-09 16:21:04 +00:00
|
|
|
$(NULL)
|
|
|
|
|
2012-10-11 11:23:02 +00:00
|
|
|
nodist_EXTRA_libgstvaapi_codecparsers_la_SOURCES = dummy.c
|
|
|
|
|
|
|
|
nodist_libgstvaapi_codecparsers_la_SOURCES = \
|
|
|
|
$(gen_source_c) \
|
2014-02-13 20:17:23 +00:00
|
|
|
$(add_source_c) \
|
2012-02-09 16:21:04 +00:00
|
|
|
$(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)
|
|
|
|
|
2012-10-11 11:23:02 +00:00
|
|
|
all-local: .timestamp.symlinks
|
|
|
|
|
|
|
|
.timestamp.symlinks: $(GENFILES)
|
|
|
|
touch $@
|
|
|
|
|
2013-02-17 08:28:47 +00:00
|
|
|
$(gen_source_c): %.c: $(local_codecparsers_srcdir)/%.c $(gen_source_h)
|
2012-10-11 11:23:02 +00:00
|
|
|
$(LN_S) -f $< $@
|
|
|
|
$(gen_source_h): %.h: $(local_codecparsers_srcdir)/%.h
|
|
|
|
$(LN_S) -f $< $@
|
2014-02-13 20:17:23 +00:00
|
|
|
$(top_builddir)/ext/libvpx/libgstcodecparsers_vpx.la:
|
|
|
|
$(MAKE) -C $(top_builddir)/ext/libvpx
|
|
|
|
|
2014-04-27 06:55:24 +00:00
|
|
|
EXTRA_DIST = gstvaapilibvpx.c
|
2012-10-11 11:23:02 +00:00
|
|
|
|
|
|
|
DISTCLEANFILES = $(GENFILES) .timestamp.symlinks
|
|
|
|
|
2012-02-09 16:21:04 +00:00
|
|
|
# Extra clean files so that maintainer-clean removes *everything*
|
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|