diff options
author | Bastian Krause <bst@pengutronix.de> | 2021-08-31 18:46:23 +0200 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2021-09-03 17:27:50 +0200 |
commit | 95d9fa18f2ff89acb3f47f171fbf09c7ca3365bd (patch) | |
tree | a27371fa540a5c5f25850cc709af1f050536b83d | |
parent | bdb966cbd32716822ae7cb2350f8ce6de6849402 (diff) | |
download | ptxdist-95d9fa18f2ff89acb3f47f171fbf09c7ca3365bd.tar.gz ptxdist-95d9fa18f2ff89acb3f47f171fbf09c7ca3365bd.tar.xz |
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 <bst@pengutronix.de>
Message-Id: <20210831164623.11889-1-bst@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | rules/wpewebkit.in | 7 | ||||
-rw-r--r-- | rules/wpewebkit.make | 6 |
2 files changed, 12 insertions, 1 deletions
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) |