Path: blob/21.2-virgl/src/egl/wayland/wayland-drm/meson.build
4561 views
# Copyright © 2017 Intel Corporation12# Permission is hereby granted, free of charge, to any person obtaining a copy3# of this software and associated documentation files (the "Software"), to deal4# in the Software without restriction, including without limitation the rights5# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell6# copies of the Software, and to permit persons to whom the Software is7# furnished to do so, subject to the following conditions:89# The above copyright notice and this permission notice shall be included in10# all copies or substantial portions of the Software.1112# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR13# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,14# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE15# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER16# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,17# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE18# SOFTWARE.1920inc_wayland_drm = include_directories('.')2122wayland_drm_protocol_c = custom_target(23'wayland-drm-protocol.c',24input : 'wayland-drm.xml',25output : 'wayland-drm-protocol.c',26command : [prog_wl_scanner, wl_scanner_arg, '@INPUT@', '@OUTPUT@'],27)2829wayland_drm_client_protocol_h = custom_target(30'wayland-drm-client-protocol.h',31input : 'wayland-drm.xml',32output : 'wayland-drm-client-protocol.h',33command : [prog_wl_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],34)3536wayland_drm_server_protocol_h = custom_target(37'wayland-drm-server-protocol.h',38input : 'wayland-drm.xml',39output : 'wayland-drm-server-protocol.h',40command : [prog_wl_scanner, 'server-header', '@INPUT@', '@OUTPUT@'],41)4243libwayland_drm = static_library(44'wayland_drm',45['wayland-drm.c', wayland_drm_protocol_c, wayland_drm_server_protocol_h],46gnu_symbol_visibility : 'hidden',47dependencies : [dep_wayland_server],48build_by_default : false,49)5051# linux-dmabuf isn't part of wayland-drm, but this happens to be the only52# place which is a) guaranteed to be built when building either or both53# of EGL and Vulkan WSI, and b) guaranteed to be included before both,54# so the targets are actually defined by the time the files come to be55# used.56#57# Moving these to a src/wsi/ was suggested but shot down, so put these58# here for now as the maybe-least-bad solution.59linux_dmabuf_unstable_v1_protocol_c = custom_target(60'linux-dmabuf-unstable-v1-protocol.c',61input : wayland_dmabuf_xml,62output : 'linux-dmabuf-unstable-v1-protocol.c',63command : [prog_wl_scanner, wl_scanner_arg, '@INPUT@', '@OUTPUT@'],64)6566linux_dmabuf_unstable_v1_client_protocol_h = custom_target(67'linux-dmabuf-unstable-v1-client-protocol.h',68input : wayland_dmabuf_xml,69output : 'linux-dmabuf-unstable-v1-client-protocol.h',70command : [prog_wl_scanner, 'client-header', '@INPUT@', '@OUTPUT@'],71)727374