Rename the library in the build system script.
This commit is contained in:
parent
354efc8b1a
commit
15e9161105
2 changed files with 7 additions and 7 deletions
10
build.zig
10
build.zig
|
|
@ -28,7 +28,7 @@ pub fn build(b: *std.Build) void {
|
||||||
// to our consumers. We must give it a name because a Zig package can expose
|
// to our consumers. We must give it a name because a Zig package can expose
|
||||||
// multiple modules and consumers will need to be able to specify which
|
// multiple modules and consumers will need to be able to specify which
|
||||||
// module they want to access.
|
// module they want to access.
|
||||||
const mod = b.addModule("libipc", .{
|
const mod = b.addModule("ipc", .{
|
||||||
// The root source file is the "entry point" of this module. Users of
|
// The root source file is the "entry point" of this module. Users of
|
||||||
// this module will only be able to access public declarations contained
|
// this module will only be able to access public declarations contained
|
||||||
// in this file, which means that if you have declarations that you
|
// in this file, which means that if you have declarations that you
|
||||||
|
|
@ -73,12 +73,12 @@ pub fn build(b: *std.Build) void {
|
||||||
// List of modules available for import in source files part of the
|
// List of modules available for import in source files part of the
|
||||||
// root module.
|
// root module.
|
||||||
.imports = &.{
|
.imports = &.{
|
||||||
// Here "libipc" is the name you will use in your source code to
|
// Here "ipc" is the name you will use in your source code to
|
||||||
// import this module (e.g. `@import("libipc")`). The name is
|
// import this module (e.g. `@import("ipc")`). The name is
|
||||||
// repeated because you are allowed to rename your imports, which
|
// repeated because you are allowed to rename your imports, which
|
||||||
// can be extremely useful in case of collisions (which can happen
|
// can be extremely useful in case of collisions (which can happen
|
||||||
// importing modules from different packages).
|
// importing modules from different packages).
|
||||||
.{ .name = "libipc", .module = mod },
|
.{ .name = "ipc", .module = mod },
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
|
@ -91,7 +91,7 @@ pub fn build(b: *std.Build) void {
|
||||||
|
|
||||||
// Here we define a library.
|
// Here we define a library.
|
||||||
const lib = b.addLibrary(.{
|
const lib = b.addLibrary(.{
|
||||||
.name = "libipc", // name of the library
|
.name = "ipc", // name of the library
|
||||||
.root_module = b.createModule(.{
|
.root_module = b.createModule(.{
|
||||||
.root_source_file = b.path("src/root.zig"),
|
.root_source_file = b.path("src/root.zig"),
|
||||||
.target = target,
|
.target = target,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
//
|
//
|
||||||
// It is redundant to include "zig" in this name because it is already
|
// It is redundant to include "zig" in this name because it is already
|
||||||
// within the Zig package namespace.
|
// within the Zig package namespace.
|
||||||
.name = .libipc,
|
.name = .ipc,
|
||||||
// This is a [Semantic Version](https://semver.org/).
|
// This is a [Semantic Version](https://semver.org/).
|
||||||
// In a future version of Zig it will be used for package deduplication.
|
// In a future version of Zig it will be used for package deduplication.
|
||||||
.version = "0.0.0",
|
.version = "0.0.0",
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
// original project's identity. Thus it is recommended to leave the comment
|
// original project's identity. Thus it is recommended to leave the comment
|
||||||
// on the following line intact, so that it shows up in code reviews that
|
// on the following line intact, so that it shows up in code reviews that
|
||||||
// modify the field.
|
// modify the field.
|
||||||
.fingerprint = 0x777bfd8d5e058778, // Changing this has security and trust implications.
|
.fingerprint = 0x43c360a97dd00013, // Changing this has security and trust implications.
|
||||||
// Tracks the earliest Zig version that the package considers to be a
|
// Tracks the earliest Zig version that the package considers to be a
|
||||||
// supported use case.
|
// supported use case.
|
||||||
.minimum_zig_version = "0.15.1",
|
.minimum_zig_version = "0.15.1",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue