mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Split includes.
All code needs uvm32_sys.h, but uvm32_common_custom.h is optional (and has defs needed for demos)
This commit is contained in:
parent
ef948e9797
commit
147a9f2198
5 changed files with 13 additions and 3 deletions
|
|
@ -6,7 +6,7 @@ fn main() {
|
|||
println!("cargo:rustc-link-arg-bin=rust-hello=-T../common/linker.ld");
|
||||
|
||||
let bindings = bindgen::Builder::default()
|
||||
.header("../../common/uvm32_sys.h")
|
||||
.header("uvm32_headers.h")
|
||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks::new()))
|
||||
.generate()
|
||||
.expect("Unable to generate bindings");
|
||||
|
|
|
|||
2
apps/rust-hello/uvm32_headers.h
Normal file
2
apps/rust-hello/uvm32_headers.h
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
#include "../../common/uvm32_sys.h"
|
||||
#include "../../common/uvm32_common_custom.h"
|
||||
Loading…
Add table
Add a link
Reference in a new issue