[WPE] Pass the backend library name as command line parameter to the web process
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2018 05:56:15 +0000 (05:56 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Jul 2018 05:56:15 +0000 (05:56 +0000)
commitc82c9f97f046a2053bc775b98bd15acb38ab2f4d
tree7bc001f0d222f1babbf4a0247e19bfd0a75ac6ff
parentb9a0395f991cf4aeeab52b01a24635ed649bd742
[WPE] Pass the backend library name as command line parameter to the web process
https://bugs.webkit.org/show_bug.cgi?id=186841

Reviewed by Žan Doberšek.

Source/WebKit:

* UIProcess/Launcher/glib/ProcessLauncherGLib.cpp:
(WebKit::ProcessLauncher::launchProcess): Add --backend-library parameter when launching the web process.
* WebProcess/wpe/WebProcessMainWPE.cpp: Call wpe_loader_init() with the library passed as --backend-library parameter.

Tools:

* MiniBrowser/wpe/main.cpp:
(main): Stop using WPE_BACKEND_LIBRARY env var.
* Scripts/run-wpe-tests:
(WPETestRunner.__init__): Ditto.
* Scripts/webkitpy/port/wpe.py:
(WPEPort.setup_environ_for_server): Ditto.
* wpe/backends/ViewBackend.cpp:
(WPEToolingBackends::ViewBackend::ViewBackend): Call wpe_loader_init() to ensure WPEBackend-fdo is used.
* wpe/jhbuild.modules: Upgrade WPEBackend to version 0.2.0.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@233763 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/ChangeLog
Source/WebKit/UIProcess/Launcher/glib/ProcessLauncherGLib.cpp
Source/WebKit/WebProcess/wpe/WebProcessMainWPE.cpp
Tools/ChangeLog
Tools/MiniBrowser/wpe/main.cpp
Tools/Scripts/run-wpe-tests
Tools/Scripts/webkitpy/port/wpe.py
Tools/wpe/backends/ViewBackend.cpp
Tools/wpe/jhbuild.modules