From 37b2dc1b705793bfe437ea67e6e38d2b09534437 Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Wed, 15 Mar 2017 14:08:27 +0000 Subject: [PATCH] build: Update the headers path --- Cargo.toml | 2 +- README.md | 2 +- nvidia-video-codec-sys/build.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8ced1f8..2103c0a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,7 +5,7 @@ authors = ["Luca Barbato "] 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] diff --git a/README.md b/README.md index cf757f4..decc15b 100644 --- a/README.md +++ b/README.md @@ -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`. diff --git a/nvidia-video-codec-sys/build.rs b/nvidia-video-codec-sys/build.rs index dbe33d8..893a946 100644 --- a/nvidia-video-codec-sys/build.rs +++ b/nvidia-video-codec-sys/build.rs @@ -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