From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dude02.hi.pengutronix.de ([2001:67c:670:100:1d::28] helo=dude02.pengutronix.de.) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1jMGOg-0002t2-Pz for ptxdist@pengutronix.de; Wed, 08 Apr 2020 21:30:02 +0200 From: Lucas Stach Date: Wed, 8 Apr 2020 21:30:01 +0200 Message-Id: <20200408193002.18077-3-l.stach@pengutronix.de> In-Reply-To: <20200408193002.18077-1-l.stach@pengutronix.de> References: <20200408193002.18077-1-l.stach@pengutronix.de> MIME-Version: 1.0 Subject: [ptxdist] [PATCH 3/4] wpewebkit: new package List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de WebPlatformForEmbedded port for the WebKit cross-platform web browser engine. Signed-off-by: Lucas Stach --- rules/wpewebkit.in | 56 +++++++++++++++++++++++++++ rules/wpewebkit.make | 90 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 146 insertions(+) create mode 100644 rules/wpewebkit.in create mode 100644 rules/wpewebkit.make diff --git a/rules/wpewebkit.in b/rules/wpewebkit.in new file mode 100644 index 000000000000..0de12b36e36e --- /dev/null +++ b/rules/wpewebkit.in @@ -0,0 +1,56 @@ +## SECTION=multimedia_libs + +menuconfig WPEWEBKIT + tristate + prompt "wpewebkit " + select HOST_CMAKE + select HOST_NINJA + select HOST_SYSTEM_PERL + select HOST_SYSTEM_PERL_JSON + select GLIB + select LIBWPE + select CAIRO + select CAIRO_FREETYPE + select CAIRO_PNG + select FONTCONFIG + select FREETYPE + select ICU + select HARFBUZZ + select HARFBUZZ_ICU + select GLIB_NETWORKING if RUNTIME + select GNUTLS + select LIBJPEG + select LIBPCRE + select LIBWEBP + select LIBWEBP_DEMUX + select SQLITE + select ZLIB + select LIBPNG + select LIBSOUP + select LIBXML2 + select LIBXSLT + select LIBXSLT_LIBXSLT + select MESALIB + select MESALIB_EGL + select MESALIB_GLES2 + select LIBEPOXY + select LIBGCRYPT + select GSTREAMER1 + select GST_PLUGINS_BASE1 + select GST_PLUGINS_BASE1_APP + select GST_PLUGINS_BASE1_GL + select GST_PLUGINS_GOOD1 + select GST_PLUGINS_BAD1 + select WPEBACKEND_FDO + select QT5 if WPEWEBKIT_QT + select QT5_MODULE_QTDECLARATIVE if WPEWEBKIT_QT + help + WebPlatformForEmbedded port for the WebKit cross-platform web browser engine. + +if WPEWEBKIT + +config WPEWEBKIT_QT + bool + prompt "Qt API" + +endif diff --git a/rules/wpewebkit.make b/rules/wpewebkit.make new file mode 100644 index 000000000000..5958508d4eec --- /dev/null +++ b/rules/wpewebkit.make @@ -0,0 +1,90 @@ +# -*-makefile-*- +# +# Copyright (C) 2018 by Steffen Trumtrar +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_WPEWEBKIT) += wpewebkit + +# +# Paths and names +# +WPEWEBKIT_VERSION := 2.28.0 +WPEWEBKIT_MD5 := 4298b9d38b4f05f92995422ea9979893 +WPEWEBKIT := wpewebkit-$(WPEWEBKIT_VERSION) +WPEWEBKIT_SUFFIX := tar.xz +WPEWEBKIT_URL := https://wpewebkit.org/releases/$(WPEWEBKIT).$(WPEWEBKIT_SUFFIX) +WPEWEBKIT_SOURCE := $(SRCDIR)/$(WPEWEBKIT).$(WPEWEBKIT_SUFFIX) +WPEWEBKIT_DIR := $(BUILDDIR)/$(WPEWEBKIT) +WPEWEBKIT_LICENSE := BSD-2-Clause + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# cmake +# +WPEWEBKIT_CONF_TOOL := cmake +WPEWEBKIT_CONF_OPT := \ + $(CROSS_CMAKE_USR) \ + -G Ninja \ + -DCMAKE_BUILD_TYPE=Release \ + -DDEBUG_FISSION=OFF \ + -DENABLE_ACCELERATED_2D_CANVAS=ON \ + -DENABLE_ACCESSIBILITY=OFF \ + -DENABLE_BUBBLEWRAP_SANDBOX=OFF \ + -DENABLE_ENCRYPTED_MEDIA=OFF \ + -DENABLE_GTKDOC=OFF\ + -DENABLE_MEDIA_SOURCE=ON \ + -DENABLE_SHAREABLE_RESOURCE=ON \ + -DENABLE_VIDEO=ON \ + -DENABLE_WEBDRIVER=ON \ + -DENABLE_WEB_AUDIO=ON \ + -DENABLE_WEB_CRYPTO=ON \ + -DENABLE_WPE_QT_API=$(call ptx/onoff,PTXCONF_WPEWEBKIT_QT) \ + -DENABLE_XSLT=ON \ + -DPORT=WPE \ + -DSHOULD_INSTALL_JS_SHELL=OFF \ + -DSHOW_BINDINGS_GENERATION_PROGRESS=ON \ + -DUSE_LD_GOLD=OFF \ + -DUSE_OPENJPEG=OFF \ + -DUSE_THIN_ARCHIVES=ON \ + -DUSE_WOFF2=OFF \ + -DWTF_CPU_ARM64_CORTEXA53=OFF + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/wpewebkit.targetinstall: + @$(call targetinfo) + + @$(call install_init, wpewebkit) + @$(call install_fixup, wpewebkit,PRIORITY,optional) + @$(call install_fixup, wpewebkit,SECTION,base) + @$(call install_fixup, wpewebkit,AUTHOR,"Steffen Trumtrar ") + @$(call install_fixup, wpewebkit,DESCRIPTION,missing) + + @$(call install_lib, wpewebkit, 0, 0, 0644, libWPEWebKit-1.0) + + @$(call install_tree, wpewebkit, 0, 0, -, /usr/libexec/wpe-webkit-1.0) + @$(call install_tree, wpewebkit, 0, 0, -, /usr/lib/wpe-webkit-1.0) + +ifdef PTXCONF_WPEWEBKIT_QT + @$(call install_tree, wpewebkit, 0, 0, -, /usr/lib/qml) + @$(call install_link, wpewebkit, /usr/lib/qml/org/wpewebkit, /usr/lib/qt5/qml/org/wpewebkit) +endif + + @$(call install_finish, wpewebkit) + + @$(call touch) + +# vim: syntax=make -- 2.20.1 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de