forked from pool/vulkan-validationlayers
Jan Engelhardt
99684dfba7
OBS-URL: https://build.opensuse.org/package/show/X11:Wayland/vulkan-validationlayers?expand=0&rev=93
42 lines
1.7 KiB
Diff
42 lines
1.7 KiB
Diff
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: 2020-08-19 13:21:33.156157310 +0200
|
|
|
|
We do not want static archives in openSUSE, so need to turn on SHARED mode.
|
|
As a result, a version needs to be added.
|
|
---
|
|
CMakeLists.txt | 3 ++-
|
|
layers/vk_layer_config.h | 2 +-
|
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
|
|
|
Index: Vulkan-ValidationLayers-sdk-1.3.211.0/CMakeLists.txt
|
|
===================================================================
|
|
--- Vulkan-ValidationLayers-sdk-1.3.211.0.orig/CMakeLists.txt
|
|
+++ Vulkan-ValidationLayers-sdk-1.3.211.0/CMakeLists.txt
|
|
@@ -351,11 +351,12 @@ set(SCRIPTS_DIR "${PROJECT_SOURCE_DIR}/s
|
|
# files directly in layers.
|
|
|
|
add_library(VkLayer_utils
|
|
- STATIC
|
|
+ SHARED
|
|
layers/vk_layer_config.cpp
|
|
layers/vk_layer_extension_utils.cpp
|
|
layers/vk_layer_utils.cpp
|
|
layers/generated/vk_format_utils.cpp)
|
|
+set_target_properties(VkLayer_utils PROPERTIES OUTPUT_NAME "VkLayer_utils-@PACKAGE_VERSION@")
|
|
target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers)
|
|
set_target_properties(VkLayer_utils PROPERTIES CXX_STANDARD ${VVL_CPP_STANDARD})
|
|
if (VVL_ENABLE_ASAN)
|
|
Index: Vulkan-ValidationLayers-sdk-1.3.211.0/layers/vk_layer_config.h
|
|
===================================================================
|
|
--- Vulkan-ValidationLayers-sdk-1.3.211.0.orig/layers/vk_layer_config.h
|
|
+++ Vulkan-ValidationLayers-sdk-1.3.211.0/layers/vk_layer_config.h
|
|
@@ -33,7 +33,7 @@
|
|
#define SECONDARY_VK_REGISTRY_HIVE_STR "HKEY_CURRENT_USER"
|
|
#endif
|
|
|
|
-std::string GetEnvironment(const char *variable);
|
|
+VK_LAYER_EXPORT std::string GetEnvironment(const char *variable);
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|