libsndfile / libsamplerate

An audio Sample Rate Conversion library
http://libsndfile.github.io/libsamplerate/
BSD 2-Clause "Simplified" License
616 stars 169 forks source link

Move public header into include folder #121

Closed Flamefire closed 3 years ago

Flamefire commented 4 years ago

Extracted from #69

This is the minimal amount of work to not break anything. To make this actually useful the tests and examples should not include src or PROJECT_BINARY_DIR which serves as a test that the public header is self contained For this the CMake files need to be split (see #69) and separate configs should be created which contain only what the tests/examples need. Some things can be removed, e.g. HAVE_STDBOOL_H is assumed to be defined as otherwise true, false and bool are not available and the build would break.

Note: Mixing automake and cmake for testing doesn't work because automake pollutes the source folder with e.g. the generated config.h which will then be picked up when building with cmake and as it is explicitly ignored it doesn't show up in git status (one of the reasons I'd remove the autotools based build)