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 13lvp_commands = custom_target( 14 'lvp_commands', 15 input : [vk_commands_gen, vk_api_xml], 16 output : ['lvp_commands.c'], 17 command : [ 18 prog_python, '@INPUT0@', '--xml', '@INPUT1@', 19 '--out-c', '@OUTPUT0@', '--prefix', 'lvp', 20 ], 21 depend_files : vk_commands_gen_depend_files, 22) 23 24liblvp_files = files( 25 'lvp_device.c', 26 'lvp_cmd_buffer.c', 27 'lvp_descriptor_set.c', 28 'lvp_execute.c', 29 'lvp_util.c', 30 'lvp_image.c', 31 'lvp_formats.c', 32 'lvp_lower_vulkan_resource.c', 33 'lvp_lower_vulkan_resource.h', 34 'lvp_lower_input_attachments.c', 35 'lvp_pass.c', 36 'lvp_pipeline.c', 37 'lvp_pipeline_cache.c', 38 'lvp_query.c', 39 'lvp_wsi.c') 40 41lvp_deps = [] 42lvp_flags = [] 43 44if with_platform_x11 45 lvp_deps += dep_xcb_dri3 46endif 47 48if with_platform_wayland 49 lvp_deps += dep_wayland_client 50endif 51 52liblavapipe_st = static_library( 53 'lavapipe_st', 54 [liblvp_files, lvp_entrypoints, lvp_commands, sha1_h], 55 c_args : [ c_msvc_compat_args, lvp_flags ], 56 gnu_symbol_visibility : 'hidden', 57 include_directories : [ inc_include, inc_src, inc_util, inc_gallium, inc_compiler, inc_gallium_aux ], 58 dependencies : [ idep_nir, idep_mesautil, idep_vulkan_util, idep_vulkan_wsi, lvp_deps ] 59) 60