gba_test 0.4.0

Testing framework for the Game Boy Advance.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use std::{env, fs, path::PathBuf};

fn main() {
    let out_dir = &PathBuf::from(env::var("OUT_DIR").unwrap());
    fs::write(
        out_dir.join("gba.ld"),
        include_bytes!("linker_scripts/gba.ld").as_slice(),
    )
    .unwrap();
    println!("cargo:rustc-link-search={}", out_dir.display());
}