File tree Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Expand file tree Collapse file tree 3 files changed +18
-1
lines changed Original file line number Diff line number Diff line change
1
+ zig- *
Original file line number Diff line number Diff line change @@ -17,6 +17,10 @@ pub fn build(b: *std.Build) void {
17
17
// set a preferred release mode, allowing the user to decide how to optimize.
18
18
const optimize = b .standardOptimizeOption (.{});
19
19
20
+ const libzmq = b .dependency ("libzmq" , .{
21
+ .optimize = optimize ,
22
+ .target = target ,
23
+ });
20
24
const config_header = if (! target .isWindows ()) b .addConfigHeader (.{
21
25
.style = .blank ,
22
26
.include_path = "platform.h" ,
@@ -51,7 +55,8 @@ pub fn build(b: *std.Build) void {
51
55
lib .linkSystemLibraryName ("rpcrt4" );
52
56
lib .linkSystemLibraryName ("iphlpapi" );
53
57
}
54
- lib .linkSystemLibrary ("zmq" );
58
+ lib .linkLibrary (libzmq .artifact ("zmq" ));
59
+ //lib.linkSystemLibrary("zmq");
55
60
lib .linkLibC ();
56
61
// This declares intent for the library to be installed into the standard
57
62
// location when the user invokes the "install" step (the default step when
Original file line number Diff line number Diff line change
1
+ .{
2
+ .name = "libzig_czmq" ,
3
+ .version = "4.2.2" ,
4
+
5
+ .dependencies = .{
6
+ .libzmq = .{
7
+ .url = "https://github.com/kassane/libzmq/archive/89416003587ea21f36b8538791c4825fad012fba.tar.gz" ,
8
+ .hash = "122026d048d3a2925e86b3121a98aa8546a6109ff8ecffa75e7d9f2d1aea614f7250" ,
9
+ },
10
+ },
11
+ }
You can’t perform that action at this time.
0 commit comments