From 178723c9627a3aebb2f83dc476abe7d23de63eac Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 18 Oct 2025 17:14:46 +0200 Subject: chore: remove glfw crate --- glfw/build.rs | 42 ------------------------------------------ 1 file changed, 42 deletions(-) delete mode 100644 glfw/build.rs (limited to 'glfw/build.rs') diff --git a/glfw/build.rs b/glfw/build.rs deleted file mode 100644 index 18ac677..0000000 --- a/glfw/build.rs +++ /dev/null @@ -1,42 +0,0 @@ -use std::env; -use std::error::Error; -use std::fs::OpenOptions; -use std::io::Write; -use std::path::PathBuf; - -use bindgen::{Abi, MacroTypeVariation}; - -fn main() -> Result<(), Box> -{ - println!("cargo:rustc-link-lib=glfw"); - - println!("cargo:rerun-if-changed=glfw.h"); - - let bindings = bindgen::Builder::default() - .header("glfw.h") - .clang_arg("-fretain-comments-from-system-headers") - .generate_comments(true) - .allowlist_function("glfw.*") - .allowlist_type("GLFW.*") - .allowlist_var("GLFW.*") - .blocklist_type("GLFWglproc") - .default_macro_constant_type(MacroTypeVariation::Signed) - .override_abi(Abi::CUnwind, ".*") - .generate()?; - - let out_path = PathBuf::from(env::var("OUT_DIR")?); - - let bindings_file_path = out_path.join("bindings.rs"); - - bindings.write_to_file(&bindings_file_path)?; - - let mut bindings_file = OpenOptions::new().append(true).open(bindings_file_path)?; - - // Cannot be C-unwind :( - writeln!( - bindings_file, - "pub type GLFWglproc = ::std::option::Option;" - )?; - - Ok(()) -} -- cgit v1.2.3-18-g5258