@@ -5,7 +5,6 @@ use std::path::PathBuf;
5
5
6
6
pub fn main ( ) {
7
7
let devkitpro_path = env:: var ( "DEVKITPRO" ) . unwrap ( ) ;
8
- let devkitarm_path = env:: var ( "DEVKITARM" ) . unwrap ( ) ;
9
8
10
9
println ! ( "cargo:rustc-link-lib=static=nx" ) ;
11
10
println ! ( "cargo:rustc-link-search=native={}/libnx/lib" , devkitpro_path) ;
@@ -14,20 +13,16 @@ pub fn main() {
14
13
// to bindgen, and lets you build up options for
15
14
// the resulting bindings.
16
15
let bindings = bindgen:: Builder :: default ( )
17
- // The input header we would like to generate
18
- // bindings for.
16
+ // The input header we would like to generate bindings for.
19
17
. trust_clang_mangling ( false )
20
18
. use_core ( )
21
19
. ctypes_prefix ( "lang_items" )
22
20
23
21
. header ( "wrapper.h" )
24
22
25
23
. clang_arg ( format ! ( "-I{}/libnx/include" , devkitpro_path) )
26
- . clang_arg ( format ! ( "-I{}/aarch64-none-elf/include" , devkitarm_path) )
27
- . clang_arg ( format ! ( "-I{}/lib/gcc/aarch64-none-elf/7.3.0/include" , devkitarm_path) )
24
+ . clang_arg ( format ! ( "-I{}/devkitA64/aarch64-none-elf/include" , devkitpro_path) )
28
25
29
- // .whitelist_function("consoleInit")
30
- // .whitelist_function("hidKeysDown")
31
26
. bitfield_enum ( "HidMouseButton" )
32
27
. bitfield_enum ( "HidKeyboardModifier" )
33
28
. rustified_enum ( "HidKeyboardScancode" )
0 commit comments