diff options
author | Dylan Baker <[email protected]> | 2017-10-18 12:20:43 -0700 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2017-10-20 16:46:48 -0700 |
commit | 108d257a16859898f5ce02f4759c5c58f9b8c050 (patch) | |
tree | 0bda907e3e63c9dad56e0656b9336c0ae34a233b /src/egl/wayland/wayland-drm | |
parent | ddf06a05ad32118854136f9ad0bc2a38f41e6430 (diff) |
meson: build libEGL
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.)
Signed-off-by: Dylan Baker <[email protected]>
Tested-by: Eric Engestrom <[email protected]>
Reviewed-by: Daniel Stone <[email protected]>
Diffstat (limited to 'src/egl/wayland/wayland-drm')
-rw-r--r-- | src/egl/wayland/wayland-drm/meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/egl/wayland/wayland-drm/meson.build b/src/egl/wayland/wayland-drm/meson.build index 92adc295531..12b49ca4f06 100644 --- a/src/egl/wayland/wayland-drm/meson.build +++ b/src/egl/wayland/wayland-drm/meson.build @@ -31,3 +31,17 @@ wayland_drm_client_protocol_h = custom_target( output : 'wayland-drm-client-protocol.h', command : [prog_wl_scanner, 'client-header', '@INPUT@', '@OUTPUT@'], ) + +wayland_drm_server_protocol_h = custom_target( + 'wayland-drm-server-protocol.h', + input : 'wayland-drm.xml', + output : 'wayland-drm-server-protocol.h', + command : [prog_wl_scanner, 'server-header', '@INPUT@', '@OUTPUT@'], +) + +libwayland_drm = static_library( + 'wayland_drm', + ['wayland-drm.c', wayland_drm_protocol_c, wayland_drm_server_protocol_h], + dependencies : [dep_wayland_server], + build_by_default : false, +) |