- Visual Studio 2022
- CMake
Move to ./Texconv-Custom-DLL
and type git submodule update --init --recursive DirectXTex
.
It'll download DirectXTex to the repository.
(git submodule update --init --recursive
will work as well, but it'll download unnecessary repositories for Windows.)
You can build texconv.dll with batch files.
Move to ./Texconv-Custom-DLL/batch_files
and type build.bat
on the command prompt.
texconv.dll
will be generated in Texconv-Custom-DLL/
.
Of course, you can build the dll with Visual Studio.
Open ./Texconv-Custom-DLL
with Visual Studio and load CMakeLists.txt.
Then, you can build texconv.dll.
If you want executables, use build_as_exe.bat
instead of build.bat
.
texconv.exe
and texassemble.exe
will be generated in ./Texconv-Custom-DLL/
.
You can use them on the command prompt. (e.g. texconv.exe -ft tga -y -o outdir test.dds
)
If your app can access to vcruntime140.dll
, you can use build_without_vcruntime.bat
to link the dynamic vcruntime to texconv.dll
.
The binary size will be about 500KB smaller than the static linked dll.