avcpp
avcpp copied to clipboard
avcpp is not usable as meson subproject (uninstalled) due to headers in src directory
Hello
As in subject when uninstalled I can't use library, because headers can't be included correctly:
#include <avcpp/av.h>
// or
#include "avcpp/av.h"
I am aware of 3 potential solutions to that, two simple, one not that simple:
- move headers to
include/avcppdirectory - move all sources to
src/avcppdirectory - copy headers to builddir: my meson workaround, example of samples (breaks cmake)
I can live with my 'copy headers' workaround, didn't care yet to implement it for cmake though.
I am not a Meson guru, but current layout work well for CMake projects as subproject as well. CMake is prioritized build system for me, so, I don't want to change project layout. Build system should help and should not mess :-)
I am not anything guru to be honest. Please note that currently even samples are using internal include path. This won't build with cmake or meson: samples changes. Just thought it would be nice to give users code that compiles, no matter if library is installed or not. Installing headers workaround for meson works for me; That's option 3 I've mentioned and did not involve changing directory structure.
Take a look.