Meson support #410
No reviewers
Labels
No labels
3rdparty
Android
API
Author does not respond
bsd
bug
build system/CI
ci-virtual-device
CMake
Contributions Welcome
Core
dependencies
device-specific
documentation
don't_merge
duplicate
enhancement
Example
Haiku
hidraw
hotplug
info required
invalid
libusb
macOS
Misc
Not an issue
question
Release
Test
Test GUI
Windows
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-libusb/hidapi!410
Loading…
Reference in a new issue
No description provided.
Delete branch "meson_support"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a wrapepr over CMake.
Still experimental support and definitely not a primary build system.From IRC:
I would add WrapDB support if possible. Something like
Samples please. I've tried standalone builds and a subproject dependencies - all compiles and runs just fine.
Please elaborate.
Ultimately you need to specify sources + compilation flags + link flags per-platform. And if those are going to change - meson will be another full-scale build system which needs to be supported/updated, and that's not something I'm looking forward to.
CMake is introduced for HIDAPI as a long-term replacement for autotools+MSVC build scripts, which (CMake) provides all the same functionality as autotools and a bit more (e.g. convenience for CMake users).
Having full-scale Meson build system for HIDAPI only for Meson users - not something I vote for.
Having Meson wraper over CMake for Meson users - something I'm willing to provide myself.
If that is ultimately not accepted by Meson users/community - someone needs to volunteer and support a separate build system. Possibly as it is done by cython-hidapi or node-hid - in a separate repository.
The sandbox violation was before https://github.com/libusb/hidapi/pull/410/commits/ceb5e437bfbdc65bf91b6ab65555330be815943a . Now all files are copied.
That I don't like either...
Maybe I can improve it someohow - need to check.
wrapdb now has a libusb wrap. might as well use it here.
No idea about meson. But the branch does not seem to work.
meson-log.txt
Are you sure this is the latest commit of the branch?
Maybe the build directory has to be outside of the sourse tree? E.g.:
meson ../build_darwin && cd ../build_darwinThat is it. Thanks.
@Youw
How to build hidtest using meson?
There is no way right now.
Unless one writes a Mason build script for hidtest
@ -0,0 +1,10 @@cmake_minimum_required(VERSION 3.1.3 FATAL_ERROR)I see.
Test of latest version under MSYS2 mingw64.