mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-18 03:25:55 +00:00
rust: clean root, move build files inside folder
This commit is contained in:
parent
c7ebdd2988
commit
4ac4f1b09e
@ -8,7 +8,7 @@ description = "Low-level Rust bindings for the notcurses C library."
|
||||
repository = "https://github.com/dankamongmen/notcurses"
|
||||
homepage = "https://nick-black.com/dankwiki/index.php/Notcurses"
|
||||
links = "notcurses"
|
||||
build = "build.rs"
|
||||
build = "build/build.rs"
|
||||
categories = [
|
||||
"external-ffi-bindings",
|
||||
"command-line-interface",
|
||||
|
@ -15,7 +15,7 @@ fn main() {
|
||||
println!("cargo:rerun-if-changed=wrapper.h");
|
||||
|
||||
cc::Build::new()
|
||||
.file("stdout.c")
|
||||
.file("build/stdout.c")
|
||||
.compile("stdout");
|
||||
|
||||
// The bindgen::Builder is the main entry point to bindgen, and lets you
|
||||
@ -24,9 +24,8 @@ fn main() {
|
||||
.use_core()
|
||||
.ctypes_prefix("cty")
|
||||
.clang_arg("-D_XOPEN_SOURCE")
|
||||
// The input header we would like to generate
|
||||
// builder for.
|
||||
.header("wrapper.h")
|
||||
// The input header we would like to generate builder for.
|
||||
.header("build/wrapper.h")
|
||||
// generate comments, also from headers and not just doc comments (///)
|
||||
.generate_comments(true)
|
||||
.clang_arg("-fretain-comments-from-system-headers")
|
Loading…
Reference in New Issue
Block a user