rust: clean root, move build files inside folder

This commit is contained in:
joseLuís 2020-08-12 18:10:16 +02:00
parent c7ebdd2988
commit 4ac4f1b09e
4 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,7 @@ description = "Low-level Rust bindings for the notcurses C library."
repository = "https://github.com/dankamongmen/notcurses" repository = "https://github.com/dankamongmen/notcurses"
homepage = "https://nick-black.com/dankwiki/index.php/Notcurses" homepage = "https://nick-black.com/dankwiki/index.php/Notcurses"
links = "notcurses" links = "notcurses"
build = "build.rs" build = "build/build.rs"
categories = [ categories = [
"external-ffi-bindings", "external-ffi-bindings",
"command-line-interface", "command-line-interface",

View File

@ -15,7 +15,7 @@ fn main() {
println!("cargo:rerun-if-changed=wrapper.h"); println!("cargo:rerun-if-changed=wrapper.h");
cc::Build::new() cc::Build::new()
.file("stdout.c") .file("build/stdout.c")
.compile("stdout"); .compile("stdout");
// The bindgen::Builder is the main entry point to bindgen, and lets you // The bindgen::Builder is the main entry point to bindgen, and lets you
@ -24,9 +24,8 @@ fn main() {
.use_core() .use_core()
.ctypes_prefix("cty") .ctypes_prefix("cty")
.clang_arg("-D_XOPEN_SOURCE") .clang_arg("-D_XOPEN_SOURCE")
// The input header we would like to generate // The input header we would like to generate builder for.
// builder for. .header("build/wrapper.h")
.header("wrapper.h")
// generate comments, also from headers and not just doc comments (///) // generate comments, also from headers and not just doc comments (///)
.generate_comments(true) .generate_comments(true)
.clang_arg("-fretain-comments-from-system-headers") .clang_arg("-fretain-comments-from-system-headers")