gstreamer/gst-libs/gst/vaapi/Makefile.am

418 lines
9.7 KiB
Makefile
Raw Normal View History

lib_LTLIBRARIES = libgstvaapi-@GST_API_VERSION@.la
2012-08-01 13:44:02 +00:00
if USE_DRM
lib_LTLIBRARIES += libgstvaapi-drm-@GST_API_VERSION@.la
2012-08-01 13:44:02 +00:00
endif
if USE_X11
lib_LTLIBRARIES += libgstvaapi-x11-@GST_API_VERSION@.la
endif
2010-03-25 17:28:49 +00:00
if USE_GLX
lib_LTLIBRARIES += libgstvaapi-glx-@GST_API_VERSION@.la
2010-03-25 17:28:49 +00:00
endif
if USE_WAYLAND
lib_LTLIBRARIES += libgstvaapi-wayland-@GST_API_VERSION@.la
endif
libgstvaapi_includedir = \
$(includedir)/gstreamer-$(GST_API_VERSION)/gst/vaapi
libgstvaapi_cflags = \
-DGST_VAAPI_CORE \
-DGST_USE_UNSTABLE_API \
-I$(top_srcdir)/gst-libs \
-I$(top_builddir)/gst-libs \
$(GST_BASE_CFLAGS) \
$(GST_BASEVIDEO_CFLAGS) \
$(GST_VIDEO_CFLAGS) \
$(GST_CFLAGS) \
$(GST_CODEC_PARSERS_CFLAGS) \
$(LIBVA_CFLAGS) \
$(NULL)
libgstvaapi_libs = \
$(GST_BASE_LIBS) \
$(GST_BASEVIDEO_LIBS) \
$(GST_LIBS) \
2012-06-25 15:25:44 +00:00
$(GST_VIDEO_LIBS) \
$(GST_CODEC_PARSERS_LIBS) \
$(LIBVA_LIBS) \
$(top_builddir)/gst-libs/gst/video/libgstvaapi-videoutils.la \
$(top_builddir)/gst-libs/gst/codecparsers/libgstvaapi-codecparsers.la
libgstvaapi_source_c = \
gstvaapicodec_objects.c \
gstvaapicontext.c \
gstvaapidecoder.c \
gstvaapidecoder_dpb.c \
gstvaapidecoder_h264.c \
gstvaapidecoder_mpeg2.c \
gstvaapidecoder_mpeg4.c \
gstvaapidecoder_objects.c \
gstvaapidecoder_unit.c \
gstvaapidecoder_vc1.c \
2010-01-25 16:15:01 +00:00
gstvaapidisplay.c \
2012-01-12 11:46:34 +00:00
gstvaapidisplaycache.c \
gstvaapiimage.c \
gstvaapiimageformat.c \
gstvaapiimagepool.c \
gstvaapiminiobject.c \
gstvaapiobject.c \
gstvaapiparser_frame.c \
2010-04-20 13:36:04 +00:00
gstvaapiprofile.c \
gstvaapisubpicture.c \
gstvaapisurface.c \
2010-03-12 17:45:18 +00:00
gstvaapisurfacepool.c \
gstvaapisurfaceproxy.c \
2010-03-16 09:15:48 +00:00
gstvaapiutils.c \
gstvaapivalue.c \
gstvaapivideopool.c \
2010-03-15 15:12:27 +00:00
gstvaapiwindow.c \
video-format.c \
2010-01-25 16:15:01 +00:00
$(NULL)
libgstvaapi_source_h = \
gstvaapicontext.h \
gstvaapidecoder.h \
gstvaapidecoder_h264.h \
gstvaapidecoder_mpeg2.h \
gstvaapidecoder_mpeg4.h \
gstvaapidecoder_vc1.h \
2010-01-25 16:15:01 +00:00
gstvaapidisplay.h \
2012-01-12 11:46:34 +00:00
gstvaapidisplaycache.h \
gstvaapiimage.h \
gstvaapiimageformat.h \
gstvaapiimagepool.h \
gstvaapiobject.h \
2010-04-20 13:36:04 +00:00
gstvaapiprofile.h \
gstvaapisubpicture.h \
gstvaapisurface.h \
2010-03-12 17:45:18 +00:00
gstvaapisurfacepool.h \
gstvaapisurfaceproxy.h \
gstvaapitypes.h \
gstvaapivalue.h \
gstvaapivideopool.h \
2010-03-15 15:12:27 +00:00
gstvaapiwindow.h \
video-format.h \
$(NULL)
2010-03-16 09:21:15 +00:00
libgstvaapi_source_priv_h = \
glibcompat.h \
gstcompat.h \
gstvaapicodec_objects.h \
gstvaapicompat.h \
2010-03-16 09:21:15 +00:00
gstvaapidebug.h \
gstvaapidecoder_dpb.h \
gstvaapidecoder_objects.h \
gstvaapidecoder_priv.h \
gstvaapidecoder_unit.h \
gstvaapidisplay_priv.h \
gstvaapiminiobject.h \
gstvaapiobject_priv.h \
gstvaapiparser_frame.h \
2011-12-13 15:53:15 +00:00
gstvaapisurface_priv.h \
gstvaapisurfaceproxy_priv.h \
2010-03-16 09:21:15 +00:00
gstvaapiutils.h \
gstvaapiversion.h \
gstvaapivideopool_priv.h \
gstvaapiwindow_priv.h \
2012-01-24 09:06:37 +00:00
gstvaapiworkarounds.h \
sysdeps.h \
2010-03-16 09:21:15 +00:00
$(NULL)
libgstvaapi_jpegdec_source_c = gstvaapidecoder_jpeg.c
libgstvaapi_jpegdec_source_h = gstvaapidecoder_jpeg.h
if USE_JPEG_DECODER
libgstvaapi_source_c += $(libgstvaapi_jpegdec_source_c)
libgstvaapi_source_h += $(libgstvaapi_jpegdec_source_h)
endif
2012-08-01 13:44:02 +00:00
libgstvaapi_drm_source_c = \
gstvaapidisplay_drm.c \
gstvaapiwindow_drm.c \
gstvaapiutils.c \
$(NULL)
libgstvaapi_drm_source_h = \
gstvaapidisplay_drm.h \
gstvaapiwindow_drm.h \
$(NULL)
libgstvaapi_drm_source_priv_h = \
gstvaapicompat.h \
gstvaapidisplay_drm_priv.h \
gstvaapiutils.h \
$(NULL)
libgstvaapi_x11_source_c = \
gstvaapidisplay_x11.c \
gstvaapiutils.c \
gstvaapiutils_x11.c \
gstvaapiwindow_x11.c \
$(NULL)
libgstvaapi_x11_source_h = \
gstvaapidisplay_x11.h \
gstvaapiwindow_x11.h \
$(NULL)
libgstvaapi_x11_source_priv_h = \
gstvaapicompat.h \
gstvaapidisplay_x11_priv.h \
gstvaapiutils.h \
gstvaapiutils_x11.h \
gstvaapiwindow_x11_priv.h \
$(NULL)
2010-03-25 17:28:49 +00:00
libgstvaapi_glx_source_c = \
gstvaapidisplay_glx.c \
gstvaapitexture.c \
2010-03-25 17:28:49 +00:00
gstvaapiutils.c \
gstvaapiutils_glx.c \
gstvaapiutils_x11.c \
gstvaapiwindow_glx.c \
$(NULL)
libgstvaapi_glx_source_h = \
gstvaapidisplay_glx.h \
gstvaapitexture.h \
2010-03-25 17:28:49 +00:00
gstvaapiwindow_glx.h \
$(NULL)
libgstvaapi_glx_source_priv_h = \
gstvaapicompat.h \
gstvaapidisplay_glx_priv.h \
2010-03-25 17:28:49 +00:00
gstvaapiutils.h \
gstvaapiutils_glx.h \
gstvaapiutils_x11.h \
$(NULL)
libgstvaapi_wayland_source_c = \
gstvaapidisplay_wayland.c \
gstvaapiutils.c \
gstvaapiwindow_wayland.c \
$(NULL)
libgstvaapi_wayland_source_h = \
gstvaapidisplay_wayland.h \
gstvaapiwindow_wayland.h \
$(NULL)
libgstvaapi_wayland_source_priv_h = \
gstvaapicompat.h \
gstvaapidisplay_wayland_priv.h \
gstvaapiutils.h \
$(NULL)
libgstvaapi_@GST_API_VERSION@_la_SOURCES = \
$(libgstvaapi_source_c) \
2010-03-16 09:21:15 +00:00
$(libgstvaapi_source_priv_h) \
$(NULL)
libgstvaapi_@GST_API_VERSION@include_HEADERS = \
$(libgstvaapi_source_h) \
$(NULL)
libgstvaapi_@GST_API_VERSION@includedir = \
$(libgstvaapi_includedir)
libgstvaapi_@GST_API_VERSION@_la_CFLAGS = \
$(libgstvaapi_cflags) \
2010-01-25 16:15:01 +00:00
$(NULL)
libgstvaapi_@GST_API_VERSION@_la_LIBADD = \
$(libgstvaapi_libs) \
2010-01-25 16:15:01 +00:00
$(NULL)
libgstvaapi_@GST_API_VERSION@_la_LDFLAGS = \
$(GST_ALL_LDFLAGS) \
$(GST_VAAPI_LT_LDFLAGS) \
-export-symbols-regex "^gst_(.*vaapi|video_format).*" \
$(NULL)
libgstvaapi_drm_@GST_API_VERSION@_la_SOURCES = \
2012-08-01 13:44:02 +00:00
$(libgstvaapi_drm_source_c) \
$(libgstvaapi_drm_source_priv_h) \
$(NULL)
libgstvaapi_drm_@GST_API_VERSION@include_HEADERS = \
2012-08-01 13:44:02 +00:00
$(libgstvaapi_drm_source_h) \
$(NULL)
libgstvaapi_drm_@GST_API_VERSION@includedir = \
2012-08-01 13:44:02 +00:00
$(libgstvaapi_includedir)
libgstvaapi_drm_@GST_API_VERSION@_la_CFLAGS = \
2012-08-01 13:44:02 +00:00
-DGST_USE_UNSTABLE_API \
-I$(top_srcdir)/gst-libs \
$(GLIB_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(UDEV_CFLAGS) \
$(DRM_CFLAGS) \
$(LIBVA_DRM_CFLAGS) \
$(NULL)
libgstvaapi_drm_@GST_API_VERSION@_la_LIBADD = \
2012-08-01 13:44:02 +00:00
$(GLIB_LIBS) \
$(UDEV_LIBS) \
$(DRM_LIBS) \
$(LIBVA_DRM_LIBS) \
libgstvaapi-$(GST_API_VERSION).la \
2012-08-01 13:44:02 +00:00
$(NULL)
libgstvaapi_drm_@GST_API_VERSION@_la_LDFLAGS = \
2012-08-01 13:44:02 +00:00
$(GST_ALL_LDFLAGS) \
$(GST_VAAPI_LT_LDFLAGS) \
2012-08-01 13:44:02 +00:00
$(NULL)
libgstvaapi_x11_@GST_API_VERSION@_la_SOURCES = \
$(libgstvaapi_x11_source_c) \
$(libgstvaapi_x11_source_priv_h) \
2010-01-25 16:15:01 +00:00
$(NULL)
libgstvaapi_x11_@GST_API_VERSION@include_HEADERS = \
$(libgstvaapi_x11_source_h) \
2010-01-25 16:15:01 +00:00
$(NULL)
libgstvaapi_x11_@GST_API_VERSION@includedir = \
$(libgstvaapi_includedir)
libgstvaapi_x11_@GST_API_VERSION@_la_CFLAGS = \
-DGST_USE_UNSTABLE_API \
-I$(top_srcdir)/gst-libs \
$(GLIB_CFLAGS) \
$(GST_BASE_CFLAGS) \
2010-03-26 08:00:32 +00:00
$(X11_CFLAGS) \
$(XRANDR_CFLAGS) \
2010-01-25 16:15:01 +00:00
$(LIBVA_X11_CFLAGS) \
$(NULL)
libgstvaapi_x11_@GST_API_VERSION@_la_LIBADD = \
$(GLIB_LIBS) \
2010-03-26 08:00:32 +00:00
$(X11_LIBS) \
$(XRANDR_LIBS) \
2010-01-25 16:15:01 +00:00
$(LIBVA_X11_LIBS) \
libgstvaapi-$(GST_API_VERSION).la \
$(NULL)
libgstvaapi_x11_@GST_API_VERSION@_la_LDFLAGS = \
$(GST_ALL_LDFLAGS) \
$(GST_VAAPI_LT_LDFLAGS) \
$(NULL)
libgstvaapi_glx_@GST_API_VERSION@_la_SOURCES = \
$(libgstvaapi_glx_source_c) \
$(libgstvaapi_glx_source_priv_h) \
$(NULL)
libgstvaapi_glx_@GST_API_VERSION@include_HEADERS = \
$(libgstvaapi_glx_source_h) \
$(NULL)
libgstvaapi_glx_@GST_API_VERSION@includedir = \
$(libgstvaapi_includedir)
libgstvaapi_glx_@GST_API_VERSION@_la_CFLAGS = \
-DGST_USE_UNSTABLE_API \
-I$(top_srcdir)/gst-libs \
$(GLIB_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_VIDEO_CFLAGS) \
$(GL_CFLAGS) \
$(LIBVA_GLX_CFLAGS) \
$(NULL)
libgstvaapi_glx_@GST_API_VERSION@_la_LIBADD = \
$(GLIB_LIBS) \
$(GST_BASE_LIBS) \
$(GST_VIDEO_LIBS) \
$(GL_LIBS) \
$(LIBVA_GLX_LIBS) \
libgstvaapi-x11-$(GST_API_VERSION).la \
$(DLOPEN_LIBS) \
$(NULL)
libgstvaapi_glx_@GST_API_VERSION@_la_LDFLAGS = \
$(GST_ALL_LDFLAGS) \
$(GST_VAAPI_LT_LDFLAGS) \
$(NULL)
libgstvaapi_wayland_@GST_API_VERSION@_la_SOURCES = \
$(libgstvaapi_wayland_source_c) \
$(libgstvaapi_wayland_source_priv_h) \
2010-03-25 17:28:49 +00:00
$(NULL)
libgstvaapi_wayland_@GST_API_VERSION@include_HEADERS = \
$(libgstvaapi_wayland_source_h) \
2010-03-25 17:28:49 +00:00
$(NULL)
libgstvaapi_wayland_@GST_API_VERSION@includedir = \
2010-03-25 17:28:49 +00:00
$(libgstvaapi_includedir)
libgstvaapi_wayland_@GST_API_VERSION@_la_CFLAGS = \
-DGST_USE_UNSTABLE_API \
2010-03-25 17:28:49 +00:00
-I$(top_srcdir)/gst-libs \
$(GLIB_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(WAYLAND_CFLAGS) \
$(LIBVA_WAYLAND_CFLAGS) \
2010-03-25 17:28:49 +00:00
$(NULL)
libgstvaapi_wayland_@GST_API_VERSION@_la_LIBADD = \
2010-03-25 17:28:49 +00:00
$(GLIB_LIBS) \
$(WAYLAND_LIBS) \
$(LIBVA_WAYLAND_LIBS) \
libgstvaapi-$(GST_API_VERSION).la \
2010-03-25 17:28:49 +00:00
$(NULL)
libgstvaapi_wayland_@GST_API_VERSION@_la_LDFLAGS = \
$(GST_ALL_LDFLAGS) \
$(GST_VAAPI_LT_LDFLAGS) \
$(NULL)
VERSION_FILE = .VERSION
OLD_VERSION_FILE = $(VERSION_FILE).old
NEW_VERSION_FILE = $(VERSION_FILE).new
PKG_VERSION_FILE = $(VERSION_FILE).pkg
gstvaapiversion.h: gen-version
$(AM_V_GEN) \
OV=`[ -f $(OLD_VERSION_FILE) ] && cat $(OLD_VERSION_FILE) || :`; \
NV=`cat $(NEW_VERSION_FILE)`; \
if [ "$$OV" != "$$NV" -o ! -f gstvaapiversion.h ]; then \
cp -f $(NEW_VERSION_FILE) $(OLD_VERSION_FILE); \
$(SED) -e "s|\@GST_VAAPI_VERSION_ID\@|$${NV}|" \
$(srcdir)/gstvaapiversion.h.in > gstvaapiversion.h; \
fi
gen-version:
@echo $(VERSION) > $(NEW_VERSION_FILE)
if HAVE_GIT
@[ -d $(top_srcdir)/.git ] && \
(cd $(top_srcdir) && $(GIT) describe --tags) > $(NEW_VERSION_FILE) || :
endif
@[ -f $(srcdir)/$(PKG_VERSION_FILE) ] && \
cp -f $(srcdir)/$(PKG_VERSION_FILE) $(NEW_VERSION_FILE) || :
$(PKG_VERSION_FILE): $(NEW_VERSION_FILE)
@cp -f $< $@
BUILT_SOURCES = gstvaapiversion.h
EXTRA_DIST = gstvaapiversion.h.in $(PKG_VERSION_FILE)
EXTRA_DIST += \
$(libgstvaapi_jpegdec_source_c) \
$(libgstvaapi_jpegdec_source_h) \
$(NULL)
CLEANFILES = \
$(OLD_VERSION_FILE) \
$(NEW_VERSION_FILE) \
$(PKG_VERSION_FILE) \
$(NULL)
# Extra clean files so that maintainer-clean removes *everything*
MAINTAINERCLEANFILES = Makefile.in