Path: blob/21.2-virgl/src/vulkan/overlay-layer/meson.build
7206 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.1920overlay_shaders = [21'overlay.frag',22'overlay.vert',23]24overlay_spv = []25foreach s : ['overlay.frag', 'overlay.vert']26overlay_spv += custom_target(27s + '.spv.h', input : s, output : s + '.spv.h',28command : [prog_glslang, '-V', '-x', '-o', '@OUTPUT@', '@INPUT@'])29endforeach3031vklayer_files = files(32'overlay.cpp',33'overlay_params.c',34)3536vklayer_mesa_overlay = shared_library(37'VkLayer_MESA_overlay',38vklayer_files, overlay_spv, sha1_h,39c_args : [no_override_init_args, vulkan_wsi_args],40cpp_args : [vulkan_wsi_args],41gnu_symbol_visibility : 'hidden',42dependencies : [idep_vulkan_util, idep_mesautil, vulkan_wsi_deps, libimgui_core_dep, dep_dl],43include_directories : [inc_include, inc_src],44link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']),45install : true46)4748install_data(49files('VkLayer_MESA_overlay.json'),50install_dir : join_paths(get_option('datadir'), 'vulkan', 'explicit_layer.d'),51)5253install_data(54'mesa-overlay-control.py',55install_dir : get_option('bindir'),56install_mode : 'r-xr-xr-x',57)585960