• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2lvp_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
13liblvp_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_inline_uniforms.c',
22    'lvp_lower_vulkan_resource.c',
23    'lvp_lower_vulkan_resource.h',
24    'lvp_lower_input_attachments.c',
25    'lvp_pipe_sync.c',
26    'lvp_pipeline.c',
27    'lvp_pipeline_cache.c',
28    'lvp_query.c',
29    'lvp_wsi.c') + [vk_cmd_enqueue_entrypoints[0]]
30
31lvp_deps = []
32lvp_flags = []
33
34if with_platform_x11
35  lvp_deps += dep_xcb_dri3
36endif
37
38if with_platform_wayland
39  lvp_deps += dep_wayland_client
40endif
41
42liblavapipe_st = static_library(
43  'lavapipe_st',
44  [liblvp_files, lvp_entrypoints, sha1_h],
45  c_args : [ c_msvc_compat_args, lvp_flags ],
46  gnu_symbol_visibility : 'hidden',
47  include_directories : [ inc_include, inc_src, inc_util, inc_gallium, inc_compiler, inc_gallium_aux ],
48  dependencies : [ dep_llvm, idep_nir, idep_mesautil, idep_vulkan_util, idep_vulkan_wsi,
49                   idep_vulkan_runtime, lvp_deps ]
50)
51