1libvulkan_lvp = shared_library( 2 'vulkan_lvp', 3 [ 'target.c' ], 4 include_directories : [ inc_src, inc_util, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_winsys, inc_gallium_drivers ], 5 link_whole : [ liblavapipe_st ], 6 link_with : [libpipe_loader_static, libmegadriver_stub, libgallium, libwsw, libswdri, libws_null, libswkmsdri ], 7 gnu_symbol_visibility : 'hidden', 8 link_args : [ld_args_bsymbolic, ld_args_gc_sections], 9 dependencies : driver_swrast, 10 install : true, 11) 12 13if with_platform_windows 14 module_dir = join_paths(get_option('prefix'), get_option('bindir')) 15else 16 module_dir = join_paths(get_option('prefix'), get_option('libdir')) 17endif 18 19lvp_icd = custom_target( 20 'lvp_icd', 21 input : 'lvp_icd.py', 22 output : 'lvp_icd.@0@.json'.format(host_machine.cpu()), 23 command : [ 24 prog_python, '@INPUT@', 25 '--lib-path', module_dir, 26 '--out', '@OUTPUT@', 27 '--suffix', libvulkan_lvp.full_path().split('.')[-1], 28 ], 29 depend_files : files('../../frontends/lavapipe/lvp_extensions.py'), 30 build_by_default : true, 31 install_dir : with_vulkan_icd_dir, 32 install : true, 33) 34