microsoft / DirectXTex

DirectXTex texture processing library
https://walbourn.github.io/directxtex/
MIT License
1.8k stars 443 forks source link

added shared build option #395

Closed bmarques1995 closed 1 year ago

walbourn commented 1 year ago

The library does not support DLL import/export. There are no decorations in place to enable that, so just changing to a SHARED in the CMake is not sufficient.

walbourn commented 1 year ago

Generally speaking, I do not recommend just making DirectXTex a DLL in any case. Write some kind of wrapper interface that uses a stable C or COM ABI, export the functionality from your DLL, and link it to the DirectXTex library statically.