mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 15:30:09 +00:00
9da1787488
- Default c_std is now c11, no need to workaround89b4f337d5
("c_std=c11 in meson default_options") - gallium-xlib has been renamed to xlib:76791db088
("mesa/x11: Remove the swrast-classic-based fake libGL") Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14216>
23 lines
977 B
ReStructuredText
23 lines
977 B
ReStructuredText
Notes for macOS
|
|
================
|
|
|
|
Mesa builds on macOS without modifications. However, there are some details to
|
|
be aware of.
|
|
|
|
- Mesa has a number of build-time dependencies. Most dependencies, including
|
|
Meson itself, are available in `homebrew <https://brew.sh>`, which has a
|
|
Mesa package for reference. The exception seems to be Mako, a Python module
|
|
used for templating, which you can install as `pip3 install mako`.
|
|
- macOS is picky about its build-time environment. Type `brew sh` before
|
|
building to get the Homebrew dependencies in your path.
|
|
|
|
Mesa's default builds with the Apple GLX uses Mesa as a front for the
|
|
hardware-accelerated system OpenGL framework, to provide hardware acceleration
|
|
to X11 applications on macOS running via XQuartz.
|
|
|
|
Mesa's software rasterizers also work on macOS. To build, set the build options
|
|
`-Dosmesa=true -Dglx=xlib` and select an appropriate Gallium software
|
|
rasterizer.
|
|
|
|
For native hardware, stay tuned for updates here!
|