extern crate cc; fn main(){ // checks println!("cargo:rerun-if-changed=src/*.c"); println!("cargo:rerun-if-changed=include/*"); // linking println!("cargo:rustc-link-arg=-lSDL2"); println!("cargo:rustc-link-arg=-lSDL2_image"); cc::Build::new() .define("RUST_BUILD", None) .include("include") .include("headers") .file("src/lexsdl.c") .file("src/internal.c") .file("src/window.c") .file("src/renderer.c") .file("src/texture.c") .file("src/sprite.c") .file("src/event.c") .file("src/mouse.c") .file("src/timing.c") .warnings(true) .compile("lexsdl"); }