You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BUILD.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@ For various reasons you may need to build HIDAPI on your own.
19
19
It can be done in several different ways:
20
20
- using [CMake](BUILD.cmake.md);
21
21
- using [Autotools](BUILD.autotools.md) (deprecated);
22
-
- using [manual makefiles](#building-the-manual-way-on-unix-platforms).
22
+
- using [manual makefiles](#building-the-manual-way-on-unix-platforms);
23
+
- using `Meson` (requires CMake);
23
24
24
25
**Autotools** build system is historically first mature build system for
25
26
HIDAPI. Most common usage of it is in its separate README: [BUILD.autotools.md](BUILD.autotools.md).<br/>
@@ -30,6 +31,11 @@ HIDAPI Team recommends using CMake build for HIDAPI.
30
31
HIDAPI is one of the projects which uses the power of CMake for its advantage.
31
32
More documentation is available in its separate README: [BUILD.cmake.md](BUILD.cmake.md).
32
33
34
+
**Meson** build system for HIDAPI is designed as a [wrapper](https://mesonbuild.com/CMake-module.html) over CMake build script.
35
+
It is present for the convenience of Meson users who need to use HIDAPI and need to be sure HIDAPI is built in accordance with officially supported build scripts.<br>
36
+
In the Meson script of your project you need a `hidapi = subproject('hidapi')` subproject, and `hidapi.get_variable('hidapi_dep')` as your dependency.
37
+
There are also backend/platform-specific dependencies available: `hidapi_winapi`, `hidapi_darwin`, `hidapi_hidraw`, `hidapi_libusb`.
38
+
33
39
If you don't know where to start to build HIDAPI, we recommend starting with [CMake](BUILD.cmake.md) build.
0 commit comments