mirror of
https://github.com/italicsjenga/rust_minifb.git
synced 2024-12-23 19:31:30 +11:00
79608b38a2
commit 2d8e0c1692120e9997bd8d376be8a7cc2536429d Author: Daniel Collin <daniel@collin.com> Date: Tue Oct 23 20:51:09 2018 +0200 Bump to 0.11 and added info about macOS Metal commit 0f77968317194f2f72b86da287c04484aeee762a Author: Daniel Collin <daniel@collin.com> Date: Sun Oct 21 17:44:26 2018 +0200 Tripple buffer textures commit d268c10576c7e9063bd4605aed4a939d956eeb6b Author: Daniel Collin <daniel@collin.com> Date: Sun Oct 21 16:59:20 2018 +0200 Some cleanup commit 5544773e62afec6f69d0c3b6309e60a543905fef Author: Daniel Collin <daniel@collin.com> Date: Sun Oct 21 16:24:45 2018 +0200 Working but no proper sync yet commit 843a6625cfddac5a6e2d8e61170f796e763e4002 Author: Daniel Collin <daniel@collin.com> Date: Sun Oct 21 15:26:45 2018 +0200 Working texture commit 1d4446f1f10c497dde07e0d20c92eb8bb6f836ec Author: Daniel Collin <daniel@collin.com> Date: Sun Oct 21 14:45:52 2018 +0200 Removed vertex data We construct this in the shader instead commit 2e8027d73a1635e26e412dbda6494193fd04a060 Author: Daniel Collin <daniel@collin.com> Date: Sun Oct 21 14:42:36 2018 +0200 Fullscreen triangle setup commit 5efd974704c11577944ffdeff9eb9dd4fa40bde0 Author: Daniel Collin <daniel@collin.com> Date: Sun Oct 21 14:16:23 2018 +0200 Triangle on screen commit d9cf4eb7557f73adfbe1764f3da94a837a4ef8d3 Author: Daniel Collin <daniel@collin.com> Date: Sun Oct 21 12:17:04 2018 +0200 Some hacky metal with clear screen
21 lines
680 B
Rust
21 lines
680 B
Rust
use std::env;
|
|
extern crate cc;
|
|
|
|
fn main() {
|
|
let env = env::var("TARGET").unwrap();
|
|
if env.contains("darwin") {
|
|
cc::Build::new()
|
|
.flag("-mmacosx-version-min=10.10")
|
|
.file("src/native/macosx/MacMiniFB.m")
|
|
.file("src/native/macosx/OSXWindow.m")
|
|
.file("src/native/macosx/OSXWindowFrameView.m")
|
|
.compile("libminifb_native.a");
|
|
println!("cargo:rustc-link-lib=framework=Metal");
|
|
println!("cargo:rustc-link-lib=framework=MetalKit");
|
|
} else if env.contains("linux") {
|
|
cc::Build::new()
|
|
.file("src/native/x11/X11MiniFB.c")
|
|
.compile("libminifb_native.a");
|
|
}
|
|
}
|