summaryrefslogtreecommitdiffstats
path: root/src/egl/wayland/wayland-drm/meson.build
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2017-10-17 15:02:58 -0700
committerDylan Baker <[email protected]>2017-10-20 16:46:48 -0700
commitddf06a05ad32118854136f9ad0bc2a38f41e6430 (patch)
tree57cfd26c8187d35ae13c6187cbcfe66fef143c64 /src/egl/wayland/wayland-drm/meson.build
parent8d3b1210cb2bb590c9af880dab087f27c64b88c3 (diff)
meson: move wayland_drm_protocol generation to wayland-drm
These files are needed by both vulkan wayland-wsi and by egl wayland-wsi, since the XML file is in src/egl/wayland/wayland-drm and we can include this directory in such a way that it will be loaded before egl and vulkan this allows us to avoid multiple calls to the same generator. Signed-off-by: Dylan Baker <[email protected]> Reviewed-and-Tested-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl/wayland/wayland-drm/meson.build')
-rw-r--r--src/egl/wayland/wayland-drm/meson.build14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/egl/wayland/wayland-drm/meson.build b/src/egl/wayland/wayland-drm/meson.build
index 0a94626f287..92adc295531 100644
--- a/src/egl/wayland/wayland-drm/meson.build
+++ b/src/egl/wayland/wayland-drm/meson.build
@@ -18,4 +18,16 @@
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
-wayland_drm_xml = files('wayland-drm.xml')
+wayland_drm_protocol_c = custom_target(
+ 'wayland-drm-protocol.c',
+ input : 'wayland-drm.xml',
+ output : 'wayland-drm-protocol.c',
+ command : [prog_wl_scanner, 'code', '@INPUT@', '@OUTPUT@'],
+)
+
+wayland_drm_client_protocol_h = custom_target(
+ 'wayland-drm-client-protocol.h',
+ input : 'wayland-drm.xml',
+ output : 'wayland-drm-client-protocol.h',
+ command : [prog_wl_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],
+)