зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1908788 - Ensure we build geckodriver for host platform, r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D217953
This commit is contained in:
Родитель
18ee1f22f1
Коммит
8bf3ea8331
|
@ -7,14 +7,23 @@ the WebDriver protocol. geckodriver translates WebDriver [commands],
|
|||
[responses], and [errors] to the [Marionette protocol], and acts
|
||||
as a proxy between [WebDriver] and [Marionette].
|
||||
|
||||
To build geckodriver:
|
||||
To build geckodriver as part of a source Firefox build, add the
|
||||
following to `mozconfig`:
|
||||
|
||||
```shell
|
||||
ac_add_options --enable-geckodriver
|
||||
```
|
||||
|
||||
With this addition geckodriver will be built when Firefox is built. It
|
||||
can also be built alone by passing in the source path to the `mach
|
||||
build` command:
|
||||
|
||||
```shell
|
||||
% ./mach build testing/geckodriver
|
||||
```
|
||||
|
||||
If you use artifact builds you may build geckodriver using cargo,
|
||||
since mach in this case does not have a compile environment:
|
||||
Artifact builds don't download geckodriver by default, but it can be
|
||||
built using cargo:
|
||||
|
||||
```shell
|
||||
% cd testing/geckodriver
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
RUST_PROGRAMS += ["geckodriver"]
|
||||
HOST_RUST_PROGRAMS += ["geckodriver"]
|
||||
# Some Rust build scripts compile C/C++ sources, don't error on warnings for them.
|
||||
AllowCompilerWarnings()
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче