From 95d9fa18f2ff89acb3f47f171fbf09c7ca3365bd Mon Sep 17 00:00:00 2001 From: Bastian Krause Date: Tue, 31 Aug 2021 18:46:23 +0200 Subject: wpewebkit: add WebDriver config switch Prior to this commit, WebDriver was always built, but not installed. Now it is only built *and* installed if the corresponding option is enabled. Signed-off-by: Bastian Krause Message-Id: <20210831164623.11889-1-bst@pengutronix.de> Signed-off-by: Michael Olbrich --- rules/wpewebkit.in | 7 +++++++ rules/wpewebkit.make | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/rules/wpewebkit.in b/rules/wpewebkit.in index 084874067..8c1f6c50e 100644 --- a/rules/wpewebkit.in +++ b/rules/wpewebkit.in @@ -98,4 +98,11 @@ config WPEWEBKIT_ENABLE_LOGGING Enable this option if you want to get some more logging information. For more information check https://trac.webkit.org/wiki/WebKitGTK/Debugging. +config WPEWEBKIT_WEBDRIVER + bool + prompt "WebDriver support" + help + WebDriver is a standalone server that implements the W3C WebDriver standard + for automated testing. + endif diff --git a/rules/wpewebkit.make b/rules/wpewebkit.make index 26d2c0e08..d1a7fa120 100644 --- a/rules/wpewebkit.make +++ b/rules/wpewebkit.make @@ -43,7 +43,7 @@ WPEWEBKIT_CONF_OPT := \ -DENABLE_GTKDOC=OFF\ -DENABLE_MEDIA_SOURCE=ON \ -DENABLE_VIDEO=$(call ptx/onoff,PTXCONF_WPEWEBKIT_VIDEO) \ - -DENABLE_WEBDRIVER=ON \ + -DENABLE_WEBDRIVER=$(call ptx/onoff,PTXCONF_WPEWEBKIT_WEBDRIVER) \ -DENABLE_WEB_AUDIO=$(call ptx/onoff,PTXCONF_WPEWEBKIT_AUDIO) \ \ -DENABLE_WEB_CRYPTO=ON \ -DENABLE_WPE_QT_API=$(call ptx/onoff,PTXCONF_WPEWEBKIT_QT) \ @@ -102,6 +102,10 @@ ifdef PTXCONF_WPEWEBKIT_QT @$(call install_tree, wpewebkit, 0, 0, -, /usr/lib/qt5/qml/org/wpewebkit) endif +ifdef PTXCONF_WPEWEBKIT_WEBDRIVER + @$(call install_copy, wpewebkit, 0, 0, 0755, -, /usr/bin/WPEWebDriver) +endif + @$(call install_finish, wpewebkit) @$(call touch) -- cgit v1.2.3