dev_icd.json : dev_icd.json.in
$(AM_V_GEN) $(SED) \
- -e "s#@build_libdir@#${abs_top_builddir}/${LIB_DIR}#" \
+ -e "s#@libvulkan_radeon_path@#${abs_top_builddir}/${LIB_DIR}/libvulkan_radeon.so#" \
< $(srcdir)/dev_icd.json.in > $@
radeon_icd.@host_cpu@.json : radeon_icd.json.in
{
"file_format_version": "1.0.0",
"ICD": {
- "library_path": "@build_libdir@/libvulkan_radeon.so",
+ "library_path": "@libvulkan_radeon_path@",
"api_version": "1.0.3"
}
}
radv_data = configuration_data()
radv_data.set('install_libdir', join_paths(get_option('prefix'), get_option('libdir')))
+radv_data.set('libvulkan_radeon_path', libvulkan_radeon.full_path())
+
configure_file(
configuration : radv_data,
input : 'radeon_icd.json.in',
output : 'radeon_icd.@0@.json'.format(target_machine.cpu()),
install_dir : with_vulkan_icd_dir,
)
+configure_file(
+ configuration : radv_data,
+ input : 'dev_icd.json.in',
+ output : 'dev_icd.json'
+)