mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
parent
7f70d42837
commit
25d92711bc
2 changed files with 39 additions and 6 deletions
30
configure.ac
30
configure.ac
|
@ -528,6 +528,36 @@ AG_GST_CHECK_FEATURE(DIRECTDRAW, [DirectDraw plug-in], directdrawsink, [
|
|||
AC_SUBST(HAVE_DIRECTDRAW)
|
||||
])
|
||||
|
||||
dnl Direct3D9
|
||||
AM_CONDITIONAL(USE_DIRECT3D9, true)
|
||||
AG_GST_CHECK_FEATURE(DIRECT3D9, [Direct3D9], winscreencap, [
|
||||
HAVE_DIRECT3D="no"
|
||||
|
||||
save_LIBS="$LIBS"
|
||||
|
||||
LIBS="$LIBS -ld3d9 -lgdi32"
|
||||
AC_MSG_CHECKING(for Direct3D9 LDFLAGS)
|
||||
|
||||
AC_LINK_IFELSE([AC_LANG_PROGRAM([[
|
||||
#include <windows.h>
|
||||
#include <d3d9.h>
|
||||
]], [[
|
||||
Direct3DCreate9(D3D_SDK_VERSION);
|
||||
]])],
|
||||
[HAVE_DIRECT3D9="yes"],
|
||||
[HAVE_DIRECT3D9="no"])
|
||||
AC_MSG_RESULT($HAVE_DIRECT3D9)
|
||||
|
||||
LIBS=$save_LIBS
|
||||
|
||||
if test "x$HAVE_DIRECT3D9" = "xyes"; then
|
||||
|
||||
DIRECT3D9_LIBS="-ld3d9 -lgdi32"
|
||||
AC_SUBST(DIRECT3D9_LIBS)
|
||||
fi
|
||||
AC_SUBST(HAVE_DIRECT3D9)
|
||||
])
|
||||
|
||||
dnl *** AppleMedia (OS X and iOS) ***
|
||||
translit(dnm, m, l) AM_CONDITIONAL(USE_APPLE_MEDIA, true)
|
||||
HAVE_APPLE_MEDIA="no"
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
# This plugin isn't buildable with autotools at this point in time, so just
|
||||
# ensure everything's listed in EXTRA_DIST
|
||||
plugin_LTLIBRARIES = libgstwinscreencap.la
|
||||
|
||||
EXTRA_DIST = \
|
||||
gstdx9screencapsrc.c gstdx9screencapsrc.h \
|
||||
gstgdiscreencapsrc.c gstgdiscreencapsrc.h \
|
||||
gstwinscreencap.c gstwinscreencap.h
|
||||
libgstwinscreencap_la_SOURCES = gstdx9screencapsrc.c gstgdiscreencapsrc.c gstwinscreencap.c
|
||||
libgstwinscreencap_la_CFLAGS = $(GST_CFLAGS) $(GST_BASE_CFLAGS) \
|
||||
$(GST_PLUGINS_BASE_CFLAGS)
|
||||
libgstwinscreencap_la_LIBADD = $(GST_BASE_LIBS) $(GST_PLUGINS_BASE_LIBS) \
|
||||
$(DIRECT3D9_LIBS)
|
||||
libgstwinscreencap_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
libgstwinscreencap_la_LIBTOOLFLAGS = --tag=disable-static
|
||||
|
||||
noinst_HEADERS= gstwinscreencap.h
|
||||
|
|
Loading…
Reference in a new issue