# as GCC LTO drops them. See: https://bugs.freedesktop.org/show_bug.cgi?id=109391
gcc_lto_quirk = (cc.get_id() == 'gcc') ? ['-fno-lto'] : []
+devenv = environment()
+
subdir('include')
subdir('bin')
subdir('src')
+if meson.version().version_compare('>= 0.58')
+ meson.add_devenv(devenv)
+endif
+
lines = ['',
'prefix: ' + get_option('prefix'),
'libdir: ' + get_option('libdir'),
install_dir : with_vulkan_icd_dir,
install : true,
)
+
+if meson.version().version_compare('>= 0.58')
+ _dev_icdname = 'broadcom_devenv_icd.@0@.json'.format(host_machine.cpu())
+ custom_target(
+ 'broadcom_devenv_icd',
+ input : [vk_icd_gen, vk_api_xml],
+ output : _dev_icdname,
+ command : [
+ prog_python, '@INPUT0@',
+ '--api-version', '1.3', '--xml', '@INPUT1@',
+ '--lib-path', meson.current_build_dir() / 'libvulkan_broadcom.so',
+ '--out', '@OUTPUT@',
+ ],
+ build_by_default : true,
+ )
+
+ devenv.append('VK_ICD_FILENAMES', meson.current_build_dir() / _dev_icdname)
+endif
install_dir : with_vulkan_icd_dir,
install : true,
)
+
+if meson.version().version_compare('>= 0.58')
+ _dev_icdname = 'freedreno_devenv_icd.@0@.json'.format(host_machine.cpu())
+ custom_target(
+ 'freedreno_devenv_icd',
+ input : [vk_icd_gen, vk_api_xml],
+ output : _dev_icdname,
+ command : [
+ prog_python, '@INPUT0@',
+ '--api-version', '1.1', '--xml', '@INPUT1@',
+ '--lib-path', meson.current_build_dir() / 'libvulkan_freedreno.so',
+ '--out', '@OUTPUT@',
+ ],
+ build_by_default : true,
+ )
+
+ devenv.append('VK_ICD_FILENAMES', meson.current_build_dir() / _dev_icdname)
+endif
install_dir : with_vulkan_icd_dir,
install : true,
)
+
+if meson.version().version_compare('>= 0.58')
+ _dev_icdname = 'lvp_devenv_icd.@0@.json'.format(host_machine.cpu())
+ custom_target(
+ 'lvp_devenv_icd',
+ input : [vk_icd_gen, vk_api_xml],
+ output : _dev_icdname,
+ command : [
+ prog_python, '@INPUT0@',
+ '--api-version', '1.1', '--xml', '@INPUT1@',
+ '--lib-path', meson.current_build_dir() / 'libvulkan_lvp.so',
+ '--out', '@OUTPUT@',
+ ],
+ build_by_default : true,
+ )
+
+ devenv.append('VK_ICD_FILENAMES', meson.current_build_dir() / _dev_icdname)
+endif
install : true,
)
+if meson.version().version_compare('>= 0.58')
+ _dev_icdname = 'intel_devenv_icd.@0@.json'.format(host_machine.cpu())
+ custom_target(
+ 'intel_devenv_icd',
+ input : [vk_icd_gen, vk_api_xml],
+ output : _dev_icdname,
+ command : [
+ prog_python, '@INPUT0@',
+ '--api-version', '1.3', '--xml', '@INPUT1@',
+ '--lib-path', meson.current_build_dir() / 'libvulkan_intel.so',
+ '--out', '@OUTPUT@',
+ ],
+ build_by_default : true,
+ )
+
+ devenv.append('VK_ICD_FILENAMES', meson.current_build_dir() / _dev_icdname)
+endif
+
libanv_per_hw_ver_libs = []
anv_per_hw_ver_files = files(
'genX_blorp_exec.c',
install_dir : with_vulkan_icd_dir,
install : true,
)
+
+if meson.version().version_compare('>= 0.58')
+ _dev_icdname = 'panfrost_devenv_icd.@0@.json'.format(host_machine.cpu())
+ custom_target(
+ 'panfrost_devenv_icd',
+ input : [vk_icd_gen, vk_api_xml],
+ output : _dev_icdname,
+ command : [
+ prog_python, '@INPUT0@',
+ '--api-version', '1.1', '--xml', '@INPUT1@',
+ '--lib-path', meson.current_build_dir() / 'libvulkan_panfrost.so',
+ '--out', '@OUTPUT@',
+ ],
+ build_by_default : true,
+ )
+
+ devenv.append('VK_ICD_FILENAMES', meson.current_build_dir() / _dev_icdname)
+endif
install : true,
)
+if meson.version().version_compare('>= 0.58')
+ _dev_icdname = 'virtio_devenv_icd.@0@.json'.format(host_machine.cpu())
+ custom_target(
+ 'virtio_devenv_icd',
+ input : [vk_icd_gen, vk_api_xml],
+ output : _dev_icdname,
+ command : [
+ prog_python, '@INPUT0@',
+ '--api-version', '1.2', '--xml', '@INPUT1@',
+ '--lib-path', meson.current_build_dir() / 'libvulkan_virtio.so',
+ '--out', '@OUTPUT@',
+ ],
+ build_by_default : true,
+ )
+
+ devenv.append('VK_ICD_FILENAMES', meson.current_build_dir() / _dev_icdname)
+endif
+
libvn_files = files(
'vn_buffer.c',
'vn_command_buffer.c',