From 6a7d98d13eb5d3f299093ebd57c6afcf119ecd76 Mon Sep 17 00:00:00 2001 From: Alexandre Courbot Date: Thu, 5 Sep 2024 13:14:47 +0900 Subject: [PATCH] README: add paragraph about bindings generation --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index c29aca6..c34cad2 100644 --- a/README.md +++ b/README.md @@ -49,6 +49,14 @@ e.g. video decoding and encoding. library other projects can link against. A `v4l2r.h` header file with the public API is generated upon build. +## Build options + +`cargo build` will attempt to generate the V4L2 bindings from +`/usr/include/linux/videodev2.h` by default. The `V4L2R_VIDEODEV2_H_PATH` +environment variable can be set to a different location that contains a +`videodev2.h` file if you need to generate the bindings from a different +location. + ## How to use Check `lib/examples/vicodec_test/device_api.rs` for a short example of how to