BinomialLLC / basis_universal

Basis Universal GPU Texture Codec
Apache License 2.0
2.67k stars 260 forks source link

Allow building against external zstd library (for non-CMake builds) #344

Open akien-mga opened 1 year ago

akien-mga commented 1 year ago

Rebase of @ondys' #228 with one missed include changed too. Supersedes #228. (This PR can be closed if #228 is updated with the transcoder change.)

We have the same need in the Godot project, also with a non-CMake build (relevant build file for SCons: https://github.com/godotengine/godot/blob/master/modules/basis_universal/SCsub).

CMake users may also want to have an easy way to use their own zstd implementation, but for this PR I followed @ondys' steps to do the minimal changes needed by existing downstream projects which shouldn't break the workflow for the main app.

past-due commented 1 year ago

I would also like to see this (or something similar to this) merged. @richgel999

alexmyczko commented 1 year ago

so do I, for the Debian package!

for the impatient: http://sid.ethz.ch/debian/basis-universal/