2020-09-30 05:29:04 +10:00
|
|
|
libvulkan_lvp = shared_library(
|
|
|
|
'vulkan_lvp',
|
2020-06-19 16:40:27 +10:00
|
|
|
[ 'target.c' ],
|
|
|
|
include_directories : [ inc_src, inc_util, inc_include, inc_gallium, inc_gallium_aux, inc_gallium_winsys, inc_gallium_drivers ],
|
2020-09-30 05:29:04 +10:00
|
|
|
link_whole : [ liblavapipe_st ],
|
2020-10-06 16:31:11 +10:00
|
|
|
link_with : [libpipe_loader_static, libmegadriver_stub, libgallium, libwsw, libswdri, libws_null, libswkmsdri ],
|
2020-06-19 16:40:27 +10:00
|
|
|
gnu_symbol_visibility : 'hidden',
|
|
|
|
link_args : [ld_args_bsymbolic, ld_args_gc_sections],
|
|
|
|
dependencies : driver_swrast,
|
|
|
|
install : true,
|
|
|
|
)
|
|
|
|
|
2020-10-18 19:55:21 +02:00
|
|
|
if with_platform_windows
|
|
|
|
module_dir = join_paths(get_option('prefix'), get_option('bindir'))
|
|
|
|
else
|
|
|
|
module_dir = join_paths(get_option('prefix'), get_option('libdir'))
|
|
|
|
endif
|
|
|
|
|
2020-09-30 05:29:04 +10:00
|
|
|
lvp_icd = custom_target(
|
|
|
|
'lvp_icd',
|
|
|
|
input : 'lvp_icd.py',
|
|
|
|
output : 'lvp_icd.@0@.json'.format(host_machine.cpu()),
|
2020-06-19 16:40:27 +10:00
|
|
|
command : [
|
|
|
|
prog_python, '@INPUT@',
|
2020-10-18 19:55:21 +02:00
|
|
|
'--lib-path', module_dir,
|
2020-06-19 16:40:27 +10:00
|
|
|
'--out', '@OUTPUT@',
|
2020-10-18 19:55:21 +02:00
|
|
|
'--suffix', libvulkan_lvp.full_path().split('.')[-1],
|
2020-06-19 16:40:27 +10:00
|
|
|
],
|
2020-09-30 05:29:04 +10:00
|
|
|
depend_files : files('../../frontends/lavapipe/lvp_extensions.py'),
|
2020-06-19 16:40:27 +10:00
|
|
|
build_by_default : true,
|
|
|
|
install_dir : with_vulkan_icd_dir,
|
|
|
|
install : true,
|
|
|
|
)
|