diff --git a/src/intel/nullhw-layer/VkLayer_INTEL_nullhw.json b/src/intel/nullhw-layer/VkLayer_INTEL_nullhw.json.in similarity index 81% rename from src/intel/nullhw-layer/VkLayer_INTEL_nullhw.json rename to src/intel/nullhw-layer/VkLayer_INTEL_nullhw.json.in index 49f67a449cd..0ceb4f59796 100644 --- a/src/intel/nullhw-layer/VkLayer_INTEL_nullhw.json +++ b/src/intel/nullhw-layer/VkLayer_INTEL_nullhw.json.in @@ -3,7 +3,7 @@ "layer" : { "name": "VK_LAYER_INTEL_nullhw", "type": "GLOBAL", - "library_path": "libVkLayer_INTEL_nullhw.so", + "library_path": "@library_path@", "api_version": "1.1.73", "implementation_version": "1", "description": "INTEL NULL HW" diff --git a/src/intel/nullhw-layer/meson.build b/src/intel/nullhw-layer/meson.build index 665740a8e88..46462c239a0 100644 --- a/src/intel/nullhw-layer/meson.build +++ b/src/intel/nullhw-layer/meson.build @@ -15,8 +15,18 @@ vklayer_intel_nullhw = shared_library( install : true ) -install_data( - files('VkLayer_INTEL_nullhw.json'), +configure_file( + configuration : {'library_path' : 'libVkLayer_INTEL_nullhw.so'}, + input : 'VkLayer_INTEL_nullhw.json.in', + output : '@BASENAME@', + install : true, install_dir : join_paths(get_option('datadir'), 'vulkan', 'explicit_layer.d'), install_tag : 'runtime', ) + +configure_file( + configuration : {'library_path' : vklayer_intel_nullhw.full_path()}, + input : 'VkLayer_INTEL_nullhw.json.in', + output : '@PLAINNAME@_dev.json', +) +devenv.append('VK_ADD_LAYER_PATH', meson.current_build_dir())