build: update to 0.15.2
This commit is contained in:
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
@@ -14,10 +14,10 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
zig-version: ["0.14.0"]
|
zig-version: ["0.15.2"]
|
||||||
os: [macos-latest, windows-latest]
|
os: [macos-latest, windows-latest]
|
||||||
include:
|
include:
|
||||||
- zig-version: "0.14.0"
|
- zig-version: "0.15.2"
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
check-format: true
|
check-format: true
|
||||||
|
|
||||||
|
|||||||
11
build.zig
11
build.zig
@@ -6,14 +6,15 @@ pub fn build(b: *std.Build) void {
|
|||||||
|
|
||||||
const upstream = b.dependency("protobuf_c", .{});
|
const upstream = b.dependency("protobuf_c", .{});
|
||||||
|
|
||||||
const lib = b.addStaticLibrary(.{
|
const lib = b.addLibrary(.{
|
||||||
.name = "protobuf_c",
|
.name = "protobuf_c",
|
||||||
.target = target,
|
.root_module = b.createModule(.{
|
||||||
.optimize = optimize,
|
.target = target,
|
||||||
|
.optimize = optimize,
|
||||||
|
.link_libc = true,
|
||||||
|
}),
|
||||||
});
|
});
|
||||||
|
|
||||||
lib.linkLibC();
|
|
||||||
|
|
||||||
lib.addCSourceFiles(.{
|
lib.addCSourceFiles(.{
|
||||||
.root = upstream.path("protobuf-c"),
|
.root = upstream.path("protobuf-c"),
|
||||||
.files = &.{"protobuf-c.c"},
|
.files = &.{"protobuf-c.c"},
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
.name = .protobuf_c,
|
.name = .protobuf_c,
|
||||||
.fingerprint = 0x39094F755166B308,
|
.fingerprint = 0x39094F755166B308,
|
||||||
.version = "1.5.0",
|
.version = "1.5.0",
|
||||||
.minimum_zig_version = "0.14.0",
|
.minimum_zig_version = "0.15.2",
|
||||||
.dependencies = .{
|
.dependencies = .{
|
||||||
.protobuf_c = .{
|
.protobuf_c = .{
|
||||||
.url = "git+https://github.com/protobuf-c/protobuf-c?ref=v1.5.0#8c201f6e47a53feaab773922a743091eb6c8972a",
|
.url = "git+https://github.com/protobuf-c/protobuf-c?ref=v1.5.0#8c201f6e47a53feaab773922a743091eb6c8972a",
|
||||||
|
|||||||
Reference in New Issue
Block a user