Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/gallium/frontends/lavapipe/meson.build
4565 views
1
2
lvp_entrypoints = custom_target(
3
'lvp_entrypoints',
4
input : [vk_entrypoints_gen, vk_api_xml],
5
output : ['lvp_entrypoints.h', 'lvp_entrypoints.c'],
6
command : [
7
prog_python, '@INPUT0@', '--xml', '@INPUT1@', '--proto', '--weak',
8
'--out-h', '@OUTPUT0@', '--out-c', '@OUTPUT1@', '--prefix', 'lvp',
9
],
10
depend_files : vk_entrypoints_gen_depend_files,
11
)
12
13
liblvp_files = files(
14
'lvp_device.c',
15
'lvp_cmd_buffer.c',
16
'lvp_descriptor_set.c',
17
'lvp_execute.c',
18
'lvp_util.c',
19
'lvp_image.c',
20
'lvp_formats.c',
21
'lvp_lower_vulkan_resource.c',
22
'lvp_lower_vulkan_resource.h',
23
'lvp_lower_input_attachments.c',
24
'lvp_pass.c',
25
'lvp_pipeline.c',
26
'lvp_pipeline_cache.c',
27
'lvp_query.c',
28
'lvp_wsi.c')
29
30
lvp_deps = []
31
lvp_flags = []
32
33
if with_platform_x11
34
lvp_deps += dep_xcb_dri3
35
lvp_flags += [
36
'-DVK_USE_PLATFORM_XCB_KHR',
37
'-DVK_USE_PLATFORM_XLIB_KHR',
38
]
39
liblvp_files += files('lvp_wsi_x11.c')
40
endif
41
42
if with_platform_wayland
43
lvp_deps += dep_wayland_client
44
lvp_flags += '-DVK_USE_PLATFORM_WAYLAND_KHR'
45
liblvp_files += files('lvp_wsi_wayland.c')
46
endif
47
48
if with_platform_windows
49
lvp_flags += '-DVK_USE_PLATFORM_WIN32_KHR'
50
liblvp_files += files('lvp_wsi_win32.c')
51
endif
52
53
liblavapipe_st = static_library(
54
'lavapipe_st',
55
[liblvp_files, lvp_entrypoints, sha1_h],
56
link_with : [ libvulkan_wsi ],
57
c_args : [ lvp_flags ],
58
gnu_symbol_visibility : 'hidden',
59
include_directories : [ inc_include, inc_src, inc_util, inc_gallium, inc_compiler, inc_gallium_aux, inc_vulkan_wsi ],
60
dependencies : [ idep_nir, idep_mesautil, idep_vulkan_util, lvp_deps ]
61
)
62
63