From 551124301a412b8a55e88cbea474e8f548f08ff6 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Thu, 15 Dec 2022 03:44:17 -0400 Subject: [PATCH] feat: add gdbstub library --- .gitmodules | 3 +++ build.zig | 5 +++++ lib/zba-gdbstub | 1 + 3 files changed, 9 insertions(+) create mode 160000 lib/zba-gdbstub diff --git a/.gitmodules b/.gitmodules index 78bd5b0..f45d1ad 100644 --- a/.gitmodules +++ b/.gitmodules @@ -13,3 +13,6 @@ [submodule "lib/zig-toml"] path = lib/zig-toml url = https://github.com/aeronavery/zig-toml +[submodule "lib/zba-gdbstub"] + path = lib/zba-gdbstub + url = https://git.musuka.dev/paoda/zba-gdbstub diff --git a/build.zig b/build.zig index c8f0e87..938f1d4 100644 --- a/build.zig +++ b/build.zig @@ -1,6 +1,8 @@ const std = @import("std"); const builtin = @import("builtin"); + const Sdk = @import("lib/SDL.zig/Sdk.zig"); +const Gdbstub = @import("lib/zba-gdbstub/build.zig"); pub fn build(b: *std.build.Builder) void { // Minimum Zig Version @@ -43,6 +45,9 @@ pub fn build(b: *std.build.Builder) void { // OpenGL 3.3 Bindings exe.addPackagePath("gl", "lib/gl.zig"); + // gdbstub + Gdbstub.link(exe); + // Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig const sdk = Sdk.init(b); sdk.link(exe, .dynamic); diff --git a/lib/zba-gdbstub b/lib/zba-gdbstub new file mode 160000 index 0000000..08bf0f9 --- /dev/null +++ b/lib/zba-gdbstub @@ -0,0 +1 @@ +Subproject commit 08bf0f9201a0cd6d317e3f73a26d245eedfd1121