capy-ui / capy

💻Build one codebase and get native UI on Windows, Linux and Web
https://capy-ui.org
Mozilla Public License 2.0
1.6k stars 60 forks source link

zig version 0.12.0-dev.2159+7916cf6f8 build changes #72

Closed AdjectiveAllison closed 7 months ago

AdjectiveAllison commented 8 months ago

std.build no longer exists. This brings up issues in build_capy.zig.

std.Build.CompileStep also no longer exists. std.Build.Step.Compile might be the replacement?

I believe there were some changes to adding modules as well. For example, this:

    const zigimg = b.createModule(.{
        .source_file = .{ .path = prefix ++ "/vendor/zigimg/zigimg.zig" },
    });

Might need to be changed to this:

    const zigimg = b.createModule(.{
        .root_source_file = .{ .path = prefix ++ "/vendor/zigimg/zigimg.zig" },
    });

This is the same issues as reported on the template repo: https://github.com/capy-ui/zig-template/issues/10

zenith391 commented 7 months ago

closed by 4d1778feba39949fb2569379b8ac4aabf4842478