ozone: update documentation regarding Ozone/Wayland.
Updating the documentation: added new args - system minigbm and system libdrm. Change-Id: I4e77795221266d5fba30cc232e483a3c18ba53d1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1514056 Commit-Queue: Maksim Sisov <msisov@igalia.com> Reviewed-by: Maksim Sisov <msisov@igalia.com> Reviewed-by: Robert Kroeger <rjkroege@chromium.org> Cr-Commit-Position: refs/heads/master@{#640239}
This commit is contained in:
@@ -159,19 +159,16 @@ Then to run for example the headless platform:
|
|||||||
### Linux Desktop - ([waterfall](https://build.chromium.org/p/chromium.fyi/builders/Ozone%20Linux/))
|
### Linux Desktop - ([waterfall](https://build.chromium.org/p/chromium.fyi/builders/Ozone%20Linux/))
|
||||||
|
|
||||||
**Warning: Experimental support for Linux Desktop is available since m57 and still under
|
**Warning: Experimental support for Linux Desktop is available since m57 and still under
|
||||||
development. Most of the work is done in the upstream, but some patches continue to
|
development. The work is purely done in the upstream, but you can still find some Ozone/X11
|
||||||
be landed to the [ozone-wayland-dev](https://github.com/Igalia/chromium/tree/ozone-wayland-dev) branch.**
|
patches in the the old [ozone-wayland-dev](https://github.com/Igalia/chromium/tree/ozone-wayland-dev) branch.**
|
||||||
|
|
||||||
To build `chrome`, do this from the `src` directory:
|
To build `chrome`, do this from the `src` directory:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
gn args out/OzoneLinuxDesktop --args="use_ozone=true use_XXX_minigbm=true"
|
gn args out/OzoneLinuxDesktop --args="use_ozone=true use_system_minigbm=true use_system_libdrm=true"
|
||||||
ninja -C out/OzoneLinuxDesktop chrome
|
ninja -C out/OzoneLinuxDesktop chrome
|
||||||
```
|
```
|
||||||
|
|
||||||
You have to choose, which driver for minigbm to use from the
|
|
||||||
[third\_party/minigbm/BUILD.gn](https://cs.chromium.org/chromium/src/third_party/minigbm/BUILD.gn?l=16).
|
|
||||||
|
|
||||||
Then to run for example the X11 platform:
|
Then to run for example the X11 platform:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
@@ -181,7 +178,7 @@ Then to run for example the X11 platform:
|
|||||||
Or run for example the Wayland platform:
|
Or run for example the Wayland platform:
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
./out/OzoneLinuxDesktop/chrome --ozone-platform=Wayland
|
./out/OzoneLinuxDesktop/chrome --ozone-platform=wayland
|
||||||
```
|
```
|
||||||
|
|
||||||
### GN Configuration notes
|
### GN Configuration notes
|
||||||
@@ -264,11 +261,11 @@ with us on freenode.net, `#ozone-wayland` channel or on `ozone-dev`.
|
|||||||
|
|
||||||
Below are some quick build & run instructions. It is assumed that you are
|
Below are some quick build & run instructions. It is assumed that you are
|
||||||
launching `chrome` from a Wayland environment such as `weston`. Execute the
|
launching `chrome` from a Wayland environment such as `weston`. Execute the
|
||||||
following commands (check above the comment regarding usage of minigbm, which
|
following commands (make sure a system version of gbm and drm is used, which are
|
||||||
is required by Ozone/Wayland by design):
|
required by Ozone/Wayland by design, when running on Linux platforms.):
|
||||||
|
|
||||||
``` shell
|
``` shell
|
||||||
gn args out/OzoneWayland --args="use_ozone=true use_intel_minigbm=true"
|
gn args out/OzoneWayland --args="use_ozone=true use_system_minigbm=true use_system_libdrm=true"
|
||||||
ninja -C out/OzoneWayland chrome
|
ninja -C out/OzoneWayland chrome
|
||||||
./out/OzoneWayland/chrome --ozone-platform=wayland
|
./out/OzoneWayland/chrome --ozone-platform=wayland
|
||||||
```
|
```
|
||||||
|
Reference in New Issue
Block a user