build: Update the headers path
This commit is contained in:
parent
18018d4e97
commit
37b2dc1b70
@ -5,7 +5,7 @@ authors = ["Luca Barbato <lu_zero@gentoo.org>"]
|
||||
license = "MIT"
|
||||
description = "NVIDIA Video Codec bindings"
|
||||
repository = "https://github.com/rust-av/nvidia-video-codec-rs"
|
||||
readme = "../README.md"
|
||||
readme = "README.md"
|
||||
keywords = ["NVIDIA", "cuvid", "nvenc"]
|
||||
|
||||
[dependencies]
|
||||
|
@ -8,7 +8,7 @@ It is a simple [binding][1] and safe abstraction over the [nvidia video codec sd
|
||||
|
||||
The bindings are generated using the headers and libraries that ought to be present in the system.
|
||||
|
||||
By default the headers are looked up on `/opt/cuda/include` and `/opt/nvidia-video-codec` and the libraries are assumed to be present in the default path (and provided by the driver).
|
||||
By default the headers are looked up on `/opt/cuda/include` and `/opt/nvidia-video-codec/include` and the libraries are assumed to be present in the default path (and provided by the driver).
|
||||
|
||||
It is possible to override the search paths for the headers by setting the environment variables `CUDA_INCLUDE_PATH` and `NVIDIA_VIDEO_CODEC_INCLUDE_PATH`.
|
||||
|
||||
|
@ -39,7 +39,7 @@ fn find_dir(default: &'static str, env_key: &'static str) -> PathBuf {
|
||||
|
||||
fn main() {
|
||||
let cuda_include = find_dir("/opt/cuda/include", "CUDA_INCLUDE_PATH");
|
||||
let nvc_include = find_dir("/opt/nvidia-video-codec/",
|
||||
let nvc_include = find_dir("/opt/nvidia-video-codec/include",
|
||||
"NVIDIA_VIDEO_CODEC_INCLUDE_PATH");
|
||||
|
||||
// TODO support windows
|
||||
|
Loading…
Reference in New Issue
Block a user