summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineVulkan
diff options
context:
space:
mode:
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
-rw-r--r--Graphics/GraphicsEngineVulkan/CMakeLists.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/CMakeLists.txt b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
index ef839906..6480a32c 100644
--- a/Graphics/GraphicsEngineVulkan/CMakeLists.txt
+++ b/Graphics/GraphicsEngineVulkan/CMakeLists.txt
@@ -241,6 +241,15 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
# Disallow missing direct and indirect dependencies to enssure that .so is self-contained
LINK_FLAGS "-Wl,--no-undefined -Wl,--no-allow-shlib-undefined"
)
+ if(PLATFORM_WIN32)
+ # Restrict export to GetEngineFactoryVk
+ file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/export.map
+ "{ global: *GetEngineFactoryVk*; local: *; };"
+ )
+ set_property(TARGET Diligent-GraphicsEngineVk-shared APPEND_STRING PROPERTY
+ LINK_FLAGS " -Wl,--version-script=export.map"
+ )
+ endif()
endif()
if(PLATFORM_WIN32)