Use local sdl dependency
This commit is contained in:
parent
6f4f600fda
commit
32a3accb85
3 changed files with 7 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
const std = @import("std");
|
||||
const sdl = @import("sdl");
|
||||
const sdl = @import("libs/sdl/build.zig");
|
||||
const vkgen = @import("vulkan_zig");
|
||||
|
||||
pub fn build(b: *std.Build) void {
|
||||
|
@ -34,7 +34,7 @@ pub fn build(b: *std.Build) void {
|
|||
|
||||
// SDL2
|
||||
const sdl_sdk = sdl.init(b, null, null);
|
||||
sdl_sdk.link(exe, .dynamic, .SDL2);
|
||||
sdl_sdk.link(exe, .dynamic, sdl.Library.SDL2);
|
||||
exe.root_module.addImport("sdl2", sdl_sdk.getWrapperModuleVulkan(vkzig_bindings));
|
||||
|
||||
// zmath
|
||||
|
|
|
@ -9,18 +9,15 @@
|
|||
.url = "https://github.com/Snektron/vulkan-zig/archive/9f6e6177b1fdb3ed22231d9216a24480e84cfa5e.tar.gz",
|
||||
.hash = "1220f2961df224f7d35dee774b26194b8b937cc252fa8e4023407776c58521d53e38",
|
||||
},
|
||||
.sdl = .{
|
||||
.url = "https://github.com/MasterQ32/SDL.zig/archive/1432ed3f6a020973906fbc996868131ae1d631be.tar.gz",
|
||||
.hash = "1220ebeeaade31e207a56977aff537a65e6338cddc68d50217ddf30bbc58fb27d367",
|
||||
},
|
||||
// .sdl = .{
|
||||
// .url = "https://github.com/ikskuh/SDL.zig/archive/9663dc70c19b13afcb4b9f596c928d7b2838e548.tar.gz",
|
||||
// .hash = "12202141beb92d68ef5088538ff761d5c3ecd2d4e11867c89fbbdcd9f814b8cba8ee",
|
||||
// },
|
||||
},
|
||||
|
||||
.paths = .{
|
||||
"build.zig",
|
||||
"build.zig.zon",
|
||||
"src",
|
||||
// For example...
|
||||
//"LICENSE",
|
||||
//"README.md",
|
||||
},
|
||||
}
|
||||
|
|
1
libs/sdl
Submodule
1
libs/sdl
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 9663dc70c19b13afcb4b9f596c928d7b2838e548
|
Loading…
Reference in a new issue