mirror of
https://github.com/elwrcl/intel-hard-graphics.git
synced 2026-11-01 03:18:02 +03:00
init
This commit is contained in:
12511 files changed
+6156641
No files matched your search
@@ -0,0 +1,59 @@
|
||||
# Copyright © 2019 Intel Corporation
|
||||
# SPDX-License-Identifier: MIT
|
||||
|
||||
overlay_shaders = [
|
||||
'overlay.frag',
|
||||
'overlay.vert',
|
||||
]
|
||||
overlay_spv = []
|
||||
foreach s : ['overlay.frag', 'overlay.vert']
|
||||
_name = f'@[email protected]'
|
||||
overlay_spv += custom_target(
|
||||
_name,
|
||||
input : s,
|
||||
output : _name,
|
||||
command : [
|
||||
prog_glslang, '-V', '-x', '-o', '@OUTPUT@', '@INPUT@', glslang_quiet,
|
||||
glslang_depfile,
|
||||
],
|
||||
depfile : f'@[email protected]',
|
||||
)
|
||||
endforeach
|
||||
|
||||
vklayer_files = files(
|
||||
'overlay.cpp',
|
||||
'overlay_params.c',
|
||||
)
|
||||
|
||||
vklayer_mesa_overlay = shared_library(
|
||||
'VkLayer_MESA_overlay',
|
||||
vklayer_files, overlay_spv, sha1_h,
|
||||
c_args : no_override_init_args + cc.get_supported_arguments('-Wno-error=stringop-overflow'),
|
||||
gnu_symbol_visibility : 'hidden',
|
||||
dependencies : [idep_vulkan_util, idep_mesautil, vulkan_wsi_deps, libimgui_core_dep, dep_dl],
|
||||
include_directories : [inc_include, inc_src],
|
||||
link_args : cc.get_supported_link_arguments(['-Wl,-Bsymbolic-functions', '-Wl,-z,relro']),
|
||||
install : true
|
||||
)
|
||||
|
||||
configure_file(
|
||||
configuration : {'library_path' : 'libVkLayer_MESA_overlay.so'},
|
||||
input : 'VkLayer_MESA_overlay.json.in',
|
||||
output : '@BASENAME@',
|
||||
install : true,
|
||||
install_dir : join_paths(get_option('datadir'), 'vulkan', 'explicit_layer.d'),
|
||||
install_tag : 'runtime',
|
||||
)
|
||||
|
||||
configure_file(
|
||||
configuration : {'library_path' : vklayer_mesa_overlay.full_path()},
|
||||
input : 'VkLayer_MESA_overlay.json.in',
|
||||
output : '@PLAINNAME@_dev.json',
|
||||
)
|
||||
devenv.append('VK_ADD_LAYER_PATH', meson.current_build_dir())
|
||||
|
||||
install_data(
|
||||
'mesa-overlay-control.py',
|
||||
install_dir : get_option('bindir'),
|
||||
install_mode : 'r-xr-xr-x',
|
||||
)
|
||||
Reference in new issue
Block a user