Add libgpiod#130
Conversation
|
I should add in README/Doc that new wraps should specify if meson port has been proposed upstream first. @amboar this is a non trivial meson port, has it been proposed upstream? If no, please do. If yes, please link to the discussion :) |
I've started the discussion upstream: https://lore.kernel.org/linux-gpio/cc4926af-95bb-4178-a760-d55821dfb626@www.fastmail.com/ |
|
@eli-schwartz regarding the docs, I'm going to leave Regarding the |
eli-schwartz
left a comment
There was a problem hiding this comment.
On the doxygen issue, I see that Doxyfile.in specifies OUTPUT_DIRECTORY = doc so yeah, it will unfortunately build in whichever is the working directory of doxygen, and that does not play nicely with subprojects at all.
Given this, I don't believe you can enable the doxygen target at all, whether it gets installed or not. But if upstream makes that variable configurable, then this is solvable without patching Doxyfile.in
Good point. I'll skip doxygen. |
|
Okay, in the latest push:
|
I think you should be making much heavier use of the declare_dependencies() you have set up. |
| description: 'C++ bindings for libgpiod') | ||
|
|
||
| gpiodcxx_dep = declare_dependency(link_with: gpiodcxx, | ||
| include_directories: gpiod_includes, |
There was a problem hiding this comment.
Should this also add the include_directories: gpiodcxx_includes ?
| gpiodcxx_sources = files('chip.cpp', 'iter.cpp', 'line.cpp', 'line_bulk.cpp') | ||
| gpiodcxx_includes = include_directories('.') | ||
| gpiodcxx = library('gpiodcxx', gpiodcxx_sources, | ||
| include_directories: [ '.', gpiod_includes ], |
|
|
||
| executable('gpiodetectcxx', 'gpiodetectcxx.cpp', | ||
| include_directories: '..', | ||
| link_with: gpiodcxx) |
There was a problem hiding this comment.
'.' -> gpiodcxx_includes
... or just dependencies: gpiodcxx_dep which is supposed to expose everything all together for you.
Hmm, I wonder why I didn't see this in my testing.
Yep. |
|
The cxx bindings are disabled by default, so it felt like a useful thing to poke at to see if I can break it. ... look, my IRC nick isn't "elibrokeit" for nothing. |
That would be because I had FWIW I was testing with |
|
Yeah, I guess that would do it. ... On the upstream note, looks like this will be a wrapdb exclusive for now? |
Yep, looking that way. |
|
Okay, this time around:
|
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
|
Fixed the include path issue in the c++ binding tests. |
The libgpiod library encapsulates the ioctl calls and data structures for accessing Linux's GPIO chardevs behind a straightforward API.