mesonbuild / wrapdb

New wrap requests
https://mesonbuild.com/Adding-new-projects-to-wrapdb.html
MIT License
72 stars 187 forks source link

soundtouch: Assorted Windows fixes #1456

Closed amyspark closed 5 months ago

amyspark commented 5 months ago

Hi all,

This is a PR to adjust a workaround I specified for libSoundTouch, when it's built for or under Windows. That library does not mark any classes at __declspec(dllexport) or even __attribute__((visibility("default"))), so if one doesn't enforce -fvisibility=default or is a Microsoft compiler, the linker will fail to create the export library.

The present PR narrows the workaround so that one relies on GCC and Clang's default behaviour to preserve that functionality, and uses static_library under MSVS.

It also corrects some files whose line endings, due to a misconfiguration in my Git clone, made it as CRLF and not as LF.