feat: add gdbstub library
This commit is contained in:
		
							
								
								
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							@@ -13,3 +13,6 @@
 | 
				
			|||||||
[submodule "lib/zig-toml"]
 | 
					[submodule "lib/zig-toml"]
 | 
				
			||||||
	path = lib/zig-toml
 | 
						path = lib/zig-toml
 | 
				
			||||||
	url = https://github.com/aeronavery/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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1,6 +1,8 @@
 | 
				
			|||||||
const std = @import("std");
 | 
					const std = @import("std");
 | 
				
			||||||
const builtin = @import("builtin");
 | 
					const builtin = @import("builtin");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const Sdk = @import("lib/SDL.zig/Sdk.zig");
 | 
					const Sdk = @import("lib/SDL.zig/Sdk.zig");
 | 
				
			||||||
 | 
					const Gdbstub = @import("lib/zba-gdbstub/build.zig");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
pub fn build(b: *std.build.Builder) void {
 | 
					pub fn build(b: *std.build.Builder) void {
 | 
				
			||||||
    // Minimum Zig Version
 | 
					    // Minimum Zig Version
 | 
				
			||||||
@@ -43,6 +45,9 @@ pub fn build(b: *std.build.Builder) void {
 | 
				
			|||||||
    // OpenGL 3.3 Bindings
 | 
					    // OpenGL 3.3 Bindings
 | 
				
			||||||
    exe.addPackagePath("gl", "lib/gl.zig");
 | 
					    exe.addPackagePath("gl", "lib/gl.zig");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					    // gdbstub
 | 
				
			||||||
 | 
					    Gdbstub.link(exe);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig
 | 
					    // Zig SDL Bindings: https://github.com/MasterQ32/SDL.zig
 | 
				
			||||||
    const sdk = Sdk.init(b);
 | 
					    const sdk = Sdk.init(b);
 | 
				
			||||||
    sdk.link(exe, .dynamic);
 | 
					    sdk.link(exe, .dynamic);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										1
									
								
								lib/zba-gdbstub
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								lib/zba-gdbstub
									
									
									
									
									
										Submodule
									
								
							 Submodule lib/zba-gdbstub added at 08bf0f9201
									
								
							
		Reference in New Issue
	
	Block a user