Skip to content

Commit

Permalink
Update build.yml and build.zig
Browse files Browse the repository at this point in the history
  • Loading branch information
basdp committed Oct 14, 2024
1 parent a4ddea1 commit b43ea84
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ jobs:
- name: Archive the build
uses: actions/upload-artifact@v4
with:
name: skia-zig
name: skia-zig-package
path: .
1 change: 0 additions & 1 deletion build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ pub fn build(b: *std.Build) !void {
},
else => return error.PlatformNotSupported,
}
module.addIncludePath(b.path("skia"));
module.linkSystemLibrary("skia", .{ .preferred_link_mode = .static });
module.link_libc = true;
}
16 changes: 8 additions & 8 deletions src/main.zig
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
const c = @cImport({
@cInclude("include/c/gr_context.h");
@cInclude("include/c/sk_canvas.h");
@cInclude("include/c/sk_colorspace.h");
@cInclude("include/c/sk_data.h");
@cInclude("include/c/sk_image.h");
@cInclude("include/c/sk_paint.h");
@cInclude("include/c/sk_path.h");
@cInclude("include/c/sk_surface.h");
@cInclude("../skia/include/c/gr_context.h");
@cInclude("../skia/include/c/sk_canvas.h");
@cInclude("../skia/include/c/sk_colorspace.h");
@cInclude("../skia/include/c/sk_data.h");
@cInclude("../skia/include/c/sk_image.h");
@cInclude("../skia/include/c/sk_paint.h");
@cInclude("../skia/include/c/sk_path.h");
@cInclude("../skia/include/c/sk_surface.h");
});

pub usingnamespace c;

0 comments on commit b43ea84

Please sign in to comment.