DaemonEngine / crunch

Advanced DXTc texture compression and transcoding library and tool, upgraded with Unity improvements, added features, extended system and hardware support, deeply tested.
https://github.com/DaemonEngine/crunch
Other
16 stars 6 forks source link

Make examples multiplatform #58

Closed illwieckz closed 4 months ago

illwieckz commented 4 months ago

Now the examples build everywhere, not only on Windows.

I introduced some ifdef that may later be rewritten with deeper change by calling into some already implemented multiplatform functions from crnlib, or to implement such reusable multiplatform function, or to make them reusable, but I expect to do that in a second step, the same way I factorized the snprintf code after having made sure it was right.

illwieckz commented 4 months ago

I needed to add the -pthread flag to build the examples on the CI, actually linking the binaries without it didn't make sense.

For unknown reasons the build of crnlib/crunch was completing itself before without the flag but that's wrong, maybe some libs required by crnlib already implicitly required pthread.