1# Copyright © 2019 Intel Corporation 2# SPDX-License-Identifier: MIT 3 4overlay_shaders = [ 5 'overlay.frag', 6 'overlay.vert', 7] 8overlay_spv = [] 9foreach s : ['overlay.frag', 'overlay.vert'] 10 _name = f'@[email protected]' 11 overlay_spv += custom_target( 12 _name, 13 input : s, 14 output : _name, 15 command : [ 16 prog_glslang, '-V', '-x', '-o', '@OUTPUT@', '@INPUT@', glslang_quiet, 17 glslang_depfile, 18 ], 19 depfile : f'@[email protected]', 20 ) 21endforeach 22 23vklayer_files = files( 24 'overlay.cpp', 25 'overlay_params.c', 26) 27 28vklayer_mesa_overlay = shared_library( 29 'VkLayer_MESA_overlay', 30 vklayer_files, overlay_spv, sha1_h, 31 c_args : [no_override_init_args], 32 gnu_symbol_visibility : 'hidden', 33 dependencies : [idep_vulkan_util, idep_mesautil, vulkan_wsi_deps, libimgui_core_dep, dep_dl], 34 include_directories : [inc_include, inc_src], 35 link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']), 36 install : true 37) 38 39install_data( 40 files('VkLayer_MESA_overlay.json'), 41 install_dir : join_paths(get_option('datadir'), 'vulkan', 'explicit_layer.d'), 42 install_tag : 'runtime', 43) 44 45install_data( 46 'mesa-overlay-control.py', 47 install_dir : get_option('bindir'), 48 install_mode : 'r-xr-xr-x', 49) 50