From 02495e1f98fbc9e24f070c3a03d9f0eb1a9e9708 Mon Sep 17 00:00:00 2001 From: Ivsucram Date: Sat, 24 Jul 2021 23:17:16 +0800 Subject: [PATCH] Static-link to SDL2 This small build configuration helps setting LLDB into Rust, as well as to release a compiled released version of the code. --- .gitignore | 6 ++++-- Cargo.toml | 15 ++++++++++----- src/main.rs | 1 - 3 files changed, 14 insertions(+), 8 deletions(-) diff --git a/.gitignore b/.gitignore index 52c8b31..967f2b2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ /target +/.vscode Cargo.lock -/src/SDL2.dll -/src/chip_8/roms \ No newline at end of file +*.sch8 +*.ch8 +*.dll \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index cd4a4ad..cee0e28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,8 +6,13 @@ edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -# crossterm = "0.19" -# tui = { version = "0.15", default-features = false, features = ['crossterm'] } -# druid = "0.7.0" -sdl2 = "0.34.5" -rand = "0.8.4" \ No newline at end of file +rand = "0.8.4" +vulkano = "0.24.0" + +[dependencies.sdl2] +version = "0.34.5" +features = ["bundled", "static-link"] + + +[dependencies.gl] +git = "https://github.com/bjz/gl-rs" \ No newline at end of file diff --git a/src/main.rs b/src/main.rs index 53803f8..de1e936 100644 --- a/src/main.rs +++ b/src/main.rs @@ -2,5 +2,4 @@ mod chip_8; fn main() { chip_8::chip_8_base_interpreter::run(); - // println!("Hello Chip-8!"); }