From 5bf025439ccc46bb42c7852be4d11d9403f43949 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/chip_8/roms/BC_test.ch8 | Bin 470 -> 0 bytes src/main.rs | 1 - 4 files changed, 14 insertions(+), 8 deletions(-) delete mode 100644 src/chip_8/roms/BC_test.ch8 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/chip_8/roms/BC_test.ch8 b/src/chip_8/roms/BC_test.ch8 deleted file mode 100644 index 99a472491d78a2a077e33e8412e8267658234064..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 470 zcmYLDJxjwt7{2RgN+AZ0LZ=d(tRPe+i-Tqn7YCPuPx# 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!"); }