Closed apoorv569 closed 2 years ago
@apoorv569,
TBH you should probably be using a [provide] section in the wrap file, and mapping each declare_dependency to its pkg-config name.
@drobilla,
This could actually be made slightly more ergonomic with
if meson.version().version_compare('>=0.54.0')
meson.override_dependency('puglpp-@0@'.format(major_version), puglpp_dep)
endif
@eli-schwartz Noted, thanks.
I'm still not entirely sure about the best approach for including C++ bindings with C projects like this - at the very least, sharing the version number is problematic, but I need yet another project like a hole in the head. Needs to be figured out before a stable release...
Just put .hpp along side the .h ones :)
then they share the same dep
"at the very least, sharing the version number is problematic"
71fa733
Yeah, I was just messing around. Knew you wouldn't go for that 😇
I have a project that also uses
meson
build system, I have added a wrap file that pulls in thepugl
repo and in mymeson.build
file I have this,by default I only get
.h
header files which areC
. How can I use thecpp
bindings instead?