Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/gallium/targets/lavapipe/meson.build
4565 views
1
2
if cc.get_id() == 'gcc' and host_machine.cpu_family() != 'x86_64'
3
vulkan_lvp_def = 'vulkan_lvp.mingw.def'
4
else
5
vulkan_lvp_def = 'vulkan_lvp.def'
6
endif
7
8
libvulkan_lvp = shared_library(
9
'vulkan_lvp',
10
[ 'target.c' ],
11
vs_module_defs : vulkan_lvp_def,
12
include_directories : [ inc_src, inc_util, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_winsys, inc_gallium_drivers ],
13
link_whole : [ liblavapipe_st ],
14
link_with : [libpipe_loader_static, libgallium, libwsw, libswdri, libws_null, libswkmsdri ],
15
gnu_symbol_visibility : 'hidden',
16
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
17
dependencies : driver_swrast,
18
name_prefix : host_machine.system() == 'windows' ? '' : 'lib',
19
install : true,
20
)
21
22
icd_file_name = 'libvulkan_lvp.so'
23
module_dir = join_paths(get_option('prefix'), get_option('libdir'))
24
if with_platform_windows
25
module_dir = join_paths(get_option('prefix'), get_option('bindir'))
26
icd_file_name = 'vulkan_lvp.dll'
27
endif
28
29
lvp_icd = custom_target(
30
'lvp_icd',
31
input : [vk_icd_gen, vk_api_xml],
32
output : 'lvp_icd.@[email protected]'.format(host_machine.cpu()),
33
command : [
34
prog_python, '@INPUT0@',
35
'--api-version', '1.1', '--xml', '@INPUT1@',
36
'--lib-path', join_paths(module_dir, icd_file_name),
37
'--out', '@OUTPUT@',
38
],
39
build_by_default : true,
40
install_dir : with_vulkan_icd_dir,
41
install : true,
42
)
43
44