2020-08-19 13:28:33 +02:00
|
|
|
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.
|
|
|
|
---
|
2021-07-06 22:06:21 +02:00
|
|
|
CMakeLists.txt | 3 ++-
|
|
|
|
layers/vk_layer_config.h | 2 +-
|
|
|
|
2 files changed, 3 insertions(+), 2 deletions(-)
|
2020-08-19 13:28:33 +02:00
|
|
|
|
2021-07-06 22:06:21 +02:00
|
|
|
Index: Vulkan-ValidationLayers-sdk-1.2.182.0/CMakeLists.txt
|
2020-08-19 13:28:33 +02:00
|
|
|
===================================================================
|
2021-07-06 22:06:21 +02:00
|
|
|
--- Vulkan-ValidationLayers-sdk-1.2.182.0.orig/CMakeLists.txt
|
|
|
|
+++ Vulkan-ValidationLayers-sdk-1.2.182.0/CMakeLists.txt
|
|
|
|
@@ -362,11 +362,12 @@ set(SCRIPTS_DIR "${PROJECT_SOURCE_DIR}/s
|
2020-08-19 13:28:33 +02:00
|
|
|
# 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/vk_format_utils.cpp)
|
|
|
|
+set_target_properties(VkLayer_utils PROPERTIES OUTPUT_NAME "VkLayer_utils-@PACKAGE_VERSION@")
|
|
|
|
target_link_libraries(VkLayer_utils PUBLIC Vulkan::Headers)
|
2021-02-10 15:20:13 +01:00
|
|
|
set_target_properties(VkLayer_utils PROPERTIES CXX_STANDARD ${VVL_CPP_STANDARD})
|
2021-07-06 22:06:21 +02:00
|
|
|
if (UPDATE_DEPS)
|
|
|
|
Index: Vulkan-ValidationLayers-sdk-1.2.182.0/layers/vk_layer_config.h
|
|
|
|
===================================================================
|
|
|
|
--- Vulkan-ValidationLayers-sdk-1.2.182.0.orig/layers/vk_layer_config.h
|
|
|
|
+++ Vulkan-ValidationLayers-sdk-1.2.182.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" {
|