wpe: Add autotools build support

This commit is contained in:
Philippe Normand 2019-01-21 10:57:57 +00:00 committed by Tim-Philipp Müller
parent dc28105220
commit c357e12118
3 changed files with 49 additions and 2 deletions

View file

@ -2305,6 +2305,15 @@ AG_GST_CHECK_FEATURE(WEBRTC, [WebRTC], webrtc, [
])
])
dnl *** WPE ***
translit(dnm, m, l) AM_CONDITIONAL(USE_WPE, true)
AG_GST_CHECK_FEATURE(WPE, [WPE plug-in], wpe, [
PKG_CHECK_MODULES(WPE, [ wpe-webkit-0.1 >= 2.22 wpebackend-fdo-0.1 egl xkbcommon ], [
HAVE_WPE="yes" ], [
HAVE_WPE="no"
])
])
dnl *** usrsctp ***
translit(dnm, m, l) AM_CONDITIONAL(USE_SCTP, true)
AG_GST_CHECK_FEATURE(SCTP, [sctp plug-in], sctp, [
@ -2695,6 +2704,7 @@ ext/zbar/Makefile
ext/dtls/Makefile
ext/webrtc/Makefile
ext/webrtcdsp/Makefile
ext/wpe/Makefile
ext/ttml/Makefile
po/Makefile.in
docs/Makefile

View file

@ -394,6 +394,12 @@ else
TTML_DIR=
endif
if USE_WPE
WPE_DIR=wpe
else
WPE_DIR=
endif
SUBDIRS=\
$(VOAACENC_DIR) \
$(ASSRENDER_DIR) \
@ -461,7 +467,8 @@ SUBDIRS=\
$(VULKAN_DIR) \
$(WEBRTCDSP_DIR) \
$(TTML_DIR) \
$(WEBRTC_DIR)
$(WEBRTC_DIR) \
$(WPE_DIR)
DIST_SUBDIRS = \
assrender \
@ -527,6 +534,7 @@ DIST_SUBDIRS = \
vulkan \
webrtcdsp \
ttml \
webrtc
webrtc \
wpe
include $(top_srcdir)/common/parallel-subdirs.mak

29
ext/wpe/Makefile.am Normal file
View file

@ -0,0 +1,29 @@
plugin_LTLIBRARIES = libgstwpe.la
# sources used to compile this plug-in
libgstwpe_la_SOURCES = \
gstwpesrc.cpp \
WPEThreadedView.cpp
# compiler and linker flags used to compile this plugin, set in configure.ac
libgstwpe_la_CXXFLAGS = \
$(GST_PLUGINS_BASE_CFLAGS) \
$(GST_BASE_CFLAGS) \
$(GST_GL_CFLAGS) \
$(GST_CFLAGS) \
$(WPE_CFLAGS)
libgstwpe_la_LIBADD = \
$(GST_PLUGINS_BASE_LIBS) \
-lgstvideo-$(GST_API_VERSION) \
$(GST_BASE_LIBS) \
$(GST_GL_LIBS) \
$(GST_LIBS) \
$(WPE_LIBS)
libgstwpe_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
# headers we need but don't want installed
noinst_HEADERS = \
gstwpesrc.h \
WPEThreadedView.h