|
|
@ -2,7 +2,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
set -euxo pipefail |
|
|
|
set -euxo pipefail |
|
|
|
|
|
|
|
|
|
|
|
bindgen "$DEVKITPRO/libctru/include/citro3d.h" \ |
|
|
|
bindgen "$DEVKITPRO/libctru/include/tex3ds.h" \ |
|
|
|
--rust-target nightly \ |
|
|
|
--rust-target nightly \ |
|
|
|
--use-core \ |
|
|
|
--use-core \ |
|
|
|
--distrust-clang-mangling \ |
|
|
|
--distrust-clang-mangling \ |
|
|
@ -10,26 +10,15 @@ bindgen "$DEVKITPRO/libctru/include/citro3d.h" \ |
|
|
|
--ctypes-prefix "::libc" \ |
|
|
|
--ctypes-prefix "::libc" \ |
|
|
|
--no-prepend-enum-name \ |
|
|
|
--no-prepend-enum-name \ |
|
|
|
--fit-macro-constant-types \ |
|
|
|
--fit-macro-constant-types \ |
|
|
|
|
|
|
|
--raw-line "use ctru_sys::*;" \ |
|
|
|
--must-use-type "Result" \ |
|
|
|
--must-use-type "Result" \ |
|
|
|
--generate "functions,types,vars" \ |
|
|
|
--generate "functions,types,vars" \ |
|
|
|
--blocklist-type "u(8|16|32|64)" \ |
|
|
|
--blocklist-type "u(8|16|32|64)" \ |
|
|
|
--opaque-type "GPU_.*" \ |
|
|
|
--opaque-type "GPU_.*" \ |
|
|
|
--opaque-type "GFX_.*" \ |
|
|
|
--opaque-type "GFX_.*" \ |
|
|
|
--opaque-type "float24Uniform_s" \ |
|
|
|
--opaque-type "float24Uniform_s" \ |
|
|
|
--allowlist-type "C3D_.*" \ |
|
|
|
--allowlist-file ".*/c3d/.*[.]h" \ |
|
|
|
--allowlist-type "DVLB_.*" \ |
|
|
|
--allowlist-file ".*/tex3ds[.]h" \ |
|
|
|
--allowlist-type "shader.*" \ |
|
|
|
|
|
|
|
--allowlist-type "float24Uniform_s" \ |
|
|
|
|
|
|
|
--allowlist-function "C3D_.*" \ |
|
|
|
|
|
|
|
--allowlist-function "shader.*" \ |
|
|
|
|
|
|
|
--allowlist-function "DVLB_.*" \ |
|
|
|
|
|
|
|
--allowlist-function "linear.*" \ |
|
|
|
|
|
|
|
--allowlist-var "C3D_.*" \ |
|
|
|
|
|
|
|
--allowlist-type "GPU_.*" \ |
|
|
|
|
|
|
|
--allowlist-type "GX_.*" \ |
|
|
|
|
|
|
|
--allowlist-function 'AttrInfo_(Init|AddLoader|AddFixed)' \ |
|
|
|
|
|
|
|
--allowlist-function 'BufInfo_(Init|Add)' \ |
|
|
|
|
|
|
|
--allowlist-function 'Mtx_.*' \ |
|
|
|
|
|
|
|
-- \ |
|
|
|
-- \ |
|
|
|
--target=arm-none-eabi \ |
|
|
|
--target=arm-none-eabi \ |
|
|
|
--sysroot=$DEVKITARM/arm-none-eabi \ |
|
|
|
--sysroot=$DEVKITARM/arm-none-eabi \ |
|
|
|