wpe: Add autotools build support
authorPhilippe Normand <philn@igalia.com>
Mon, 21 Jan 2019 10:57:57 +0000 (10:57 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Tue, 22 Jan 2019 11:13:13 +0000 (11:13 +0000)
configure.ac
ext/Makefile.am
ext/wpe/Makefile.am [new file with mode: 0644]

index 276484f..9d1a067 100644 (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
index 8cf19f6..94d3bc4 100644 (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
diff --git a/ext/wpe/Makefile.am b/ext/wpe/Makefile.am
new file mode 100644 (file)
index 0000000..c291a88
--- /dev/null
@@ -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