Path: blob/21.2-virgl/src/vulkan/device-select-layer/meson.build
7137 views
# Copyright © 2019 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.1920vklayer_files = files(21'device_select_layer.c',22)2324vklayer_deps = []25vklayer_flags = []2627if with_platform_x1128vklayer_files += files('device_select_x11.c')29vklayer_deps += dep_xcb_dri330vklayer_flags += [ '-DVK_USE_PLATFORM_XCB_KHR' ]31endif3233if with_platform_wayland34vklayer_files += files('device_select_wayland.c')35vklayer_files += [ wayland_drm_client_protocol_h, wayland_drm_protocol_c ]36vklayer_deps += [dep_wayland_client, dep_wl_protocols]37vklayer_flags += '-DVK_USE_PLATFORM_WAYLAND_KHR'38endif3940vklayer_mesa_device_select = shared_library(41'VkLayer_MESA_device_select',42vklayer_files,43c_args : [no_override_init_args, vklayer_flags],44gnu_symbol_visibility : 'hidden',45dependencies : [idep_vulkan_util, idep_mesautil, vklayer_deps, dep_libdrm, dep_dl],46include_directories : [inc_include, inc_util, inc_src, inc_vulkan_wsi],47link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']),48install : true49)5051install_data(52files('VkLayer_MESA_device_select.json'),53install_dir : join_paths(get_option('datadir'), 'vulkan', 'implicit_layer.d'),54)555657