libsdl-org / SDL_shadercross

Shader translation library for SDL's GPU API.
zlib License
57 stars 18 forks source link

Add ability to specify export prefix for symbols #25

Closed Beyley closed 1 month ago

Beyley commented 1 month ago

This is required to build a standalone library of SDL_gpu_shadercross on Windows, where the linker will only export the symbol if it has the __declspec(dllexport) attribute.

Since using it as a standalone library isn't the default usecase of the lib, I've left it blank by default, with the ability to set it through putting #define SDL_GPU_SHADERCROSS_EXPORT __declspec(dllexport) before the header's implementation