Keyboard and rotation!
This commit is contained in:
@@ -8,6 +8,7 @@ pub fn build(b: *std.Build) void {
|
||||
// of this build script using `b.option()`. All defined flags (including
|
||||
// target and optimize options) will be listed when running `zig build --help`
|
||||
// in this directory.
|
||||
const llvm = b.option(bool, "llvm", "Build with llvm");
|
||||
|
||||
const mod = b.addModule("puzzle", .{
|
||||
.root_source_file = b.path("src/root.zig"),
|
||||
@@ -16,6 +17,7 @@ pub fn build(b: *std.Build) void {
|
||||
|
||||
const exe = b.addExecutable(.{
|
||||
.name = "wl-main",
|
||||
.use_llvm = llvm,
|
||||
.root_module = b.createModule(.{
|
||||
.root_source_file = b.path("src/main.zig"),
|
||||
.target = target,
|
||||
@@ -27,6 +29,7 @@ pub fn build(b: *std.Build) void {
|
||||
});
|
||||
exe.root_module.link_libc = true;
|
||||
exe.root_module.linkSystemLibrary("wayland-client", .{});
|
||||
exe.root_module.linkSystemLibrary("xkbcommon", .{});
|
||||
|
||||
exe.root_module.addIncludePath(b.path("src"));
|
||||
exe.root_module.addCSourceFiles(.{
|
||||
|
||||
Reference in New Issue
Block a user