This is based heavily on Daniel Stone's work for the same, rebased on master and with a number of TODO's fixed.
This does not implement glvnd (which is coming in a later patch)
Meson builds egl slightly differently than autotools, namely it doesn't build an intermediate shared library. It doesn't do this because meson doesn't have problems with the name of the library being dynamically generated, so the glvnd and non-glvnd code can follow the same path.
v2: - Don't reuse variable (Eric E.)
108d257 meson: build libEGL
include/meson.build | 8 ++
meson.build | 81 ++++++++++++++++--
meson_options.txt | 9 +-
src/egl/meson.build | 144 ++++++++++++++++++++++++++++++++
src/egl/wayland/wayland-drm/meson.build | 14 ++++
src/egl/wayland/wayland-egl/meson.build | 42 ++++++++++
src/gbm/meson.build | 12 ++-
src/glx/meson.build | 22 -----
src/meson.build | 7 +-
9 files changed, 304 insertions(+), 35 deletions(-)