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