Explicitly export symbols from libSPVRemapper

Windows requires symbols to be explicitly exported from DLLs, this
change simply marks the entire spirvbin_t class as exported.

The macros from visibility.h are included inline to get around include
path issues.
This commit is contained in:
Arcady Goldmints-Orlov 2024-09-12 15:40:52 -07:00 committed by arcady-lunarg
parent d7d5ab8f8a
commit 36ccaa31bd
2 changed files with 17 additions and 1 deletions

View file

@ -100,6 +100,7 @@ if (ENABLE_SPVREMAPPER)
POSITION_INDEPENDENT_CODE ON
VERSION "${GLSLANG_VERSION}"
SOVERSION "${GLSLANG_VERSION_MAJOR}")
glslang_only_export_explicit_symbols(SPVRemapper)
endif()
if(WIN32 AND BUILD_SHARED_LIBS)