diff options
Diffstat (limited to '')
| -rw-r--r-- | build.zig | 3 | ||||
| -rw-r--r-- | build.zig.zon | 4 |
2 files changed, 0 insertions, 7 deletions
| @@ -14,7 +14,6 @@ pub fn build(b: *Build) void { | |||
| 14 | config.addOption(SemanticVersion, "version", version); | 14 | config.addOption(SemanticVersion, "version", version); |
| 15 | 15 | ||
| 16 | const clap = b.dependency("clap", .{}); | 16 | const clap = b.dependency("clap", .{}); |
| 17 | const curl = b.dependency("curl", .{}); | ||
| 18 | const libarchive = b.dependency("libarchive", .{}); | 17 | const libarchive = b.dependency("libarchive", .{}); |
| 19 | const xdg = b.dependency("xdg", .{}); | 18 | const xdg = b.dependency("xdg", .{}); |
| 20 | 19 | ||
| @@ -27,12 +26,10 @@ pub fn build(b: *Build) void { | |||
| 27 | }); | 26 | }); |
| 28 | exe.addOptions("zup-config", config); | 27 | exe.addOptions("zup-config", config); |
| 29 | exe.addModule("clap", clap.module("clap")); | 28 | exe.addModule("clap", clap.module("clap")); |
| 30 | exe.addModule("curl", curl.module("curl")); | ||
| 31 | exe.addModule("libarchive", libarchive.module("libarchive")); | 29 | exe.addModule("libarchive", libarchive.module("libarchive")); |
| 32 | exe.addModule("xdg", xdg.module("xdg")); | 30 | exe.addModule("xdg", xdg.module("xdg")); |
| 33 | exe.linkLibC(); | 31 | exe.linkLibC(); |
| 34 | exe.linkSystemLibrary("libarchive"); | 32 | exe.linkSystemLibrary("libarchive"); |
| 35 | exe.linkSystemLibrary("libcurl"); | ||
| 36 | b.installArtifact(exe); | 33 | b.installArtifact(exe); |
| 37 | 34 | ||
| 38 | const run_cmd = b.addRunArtifact(exe); | 35 | const run_cmd = b.addRunArtifact(exe); |
diff --git a/build.zig.zon b/build.zig.zon index 151d3f2..31a3ad8 100644 --- a/build.zig.zon +++ b/build.zig.zon | |||
| @@ -7,10 +7,6 @@ | |||
| 7 | .url = "https://github.com/Hejsil/zig-clap/archive/bdb5853b678d68f342ec65b04a6785af522ca6c9.tar.gz", | 7 | .url = "https://github.com/Hejsil/zig-clap/archive/bdb5853b678d68f342ec65b04a6785af522ca6c9.tar.gz", |
| 8 | .hash = "12202af04ec78191f2018458a7be29f54e0d9118f7688e7a226857acf754d68b8473", | 8 | .hash = "12202af04ec78191f2018458a7be29f54e0d9118f7688e7a226857acf754d68b8473", |
| 9 | }, | 9 | }, |
| 10 | .curl = .{ | ||
| 11 | .url = "https://git.sr.ht/~ukko/zig-curl/archive/aa55a3d061fceebf737c0af25a6df2d05f83bcad.tar.gz", | ||
| 12 | .hash = "12208fc84cbd67383b6fe7e3f65a965cead4577ca27cd59660a2812c9f4edc545c5e", | ||
| 13 | }, | ||
| 14 | .libarchive = .{ | 10 | .libarchive = .{ |
| 15 | .url = "https://git.sr.ht/~ukko/zig-libarchive/archive/b70c51b8555e68e73c36b0e691dff65c0092baf6.tar.gz", | 11 | .url = "https://git.sr.ht/~ukko/zig-libarchive/archive/b70c51b8555e68e73c36b0e691dff65c0092baf6.tar.gz", |
| 16 | .hash = "12206a8120d9a7550112f2fcc908c46900d6882c95156f900d5e0b39fcdb6a64a065", | 12 | .hash = "12206a8120d9a7550112f2fcc908c46900d6882c95156f900d5e0b39fcdb6a64a065", |