mlx 0.1.2

Rust port of 42 minilibx
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::process::Command;
use std::env;

fn main() {
    let project_dir = env::var("CARGO_MANIFEST_DIR").unwrap();

    Command::new("make")
        .arg("-C")
        .arg(format!("{}/src/mlx_c", project_dir))
        .arg("re")
        .spawn()
        .unwrap();
    println!("cargo:rustc-link-search=native={}/src/mlx_C/", project_dir);
    println!("cargo:rustc-link-lib=static=mlx");

    println!("cargo:rustc-link-lib=framework=OpenGL");
    println!("cargo:rustc-link-lib=framework=AppKit");
}