From c357e1211865bc7e76ddd740611669437f8496e2 Mon Sep 17 00:00:00 2001 From: Philippe Normand Date: Mon, 21 Jan 2019 10:57:57 +0000 Subject: [PATCH] wpe: Add autotools build support --- configure.ac | 10 ++++++++++ ext/Makefile.am | 12 ++++++++++-- ext/wpe/Makefile.am | 29 +++++++++++++++++++++++++++++ 3 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 ext/wpe/Makefile.am diff --git a/configure.ac b/configure.ac index 276484f..9d1a067 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/ext/Makefile.am b/ext/Makefile.am index 8cf19f6..94d3bc4 100644 --- a/ext/Makefile.am +++ b/ext/Makefile.am @@ -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 diff --git a/ext/wpe/Makefile.am b/ext/wpe/Makefile.am new file mode 100644 index 0000000..c291a88 --- /dev/null +++ b/ext/wpe/Makefile.am @@ -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 -- 2.7.4