diff options
| author | 2023-07-04 03:22:36 +0300 | |
|---|---|---|
| committer | 2023-07-04 03:22:36 +0300 | |
| commit | 320afb78c507e2d1c61f4927e3cb9ef03382d8a4 (patch) | |
| tree | afde2d704ef96c23c8edcad553e678a7be623d32 | |
| parent | Use build.zig.zon for fetching libarchive (diff) | |
| download | zup-320afb78c507e2d1c61f4927e3cb9ef03382d8a4.tar.gz zup-320afb78c507e2d1c61f4927e3cb9ef03382d8a4.tar.xz zup-320afb78c507e2d1c61f4927e3cb9ef03382d8a4.zip | |
Use build.zig.zon for fetching xdg
| -rw-r--r-- | build.zig | 3 | ||||
| -rw-r--r-- | build.zig.zon | 4 | ||||
| m--------- | libs/xdg | 0 |
3 files changed, 6 insertions, 1 deletions
| @@ -16,6 +16,7 @@ pub fn build(b: *Build) void { | |||
| 16 | const clap = b.dependency("clap", .{}); | 16 | const clap = b.dependency("clap", .{}); |
| 17 | const curl = b.dependency("curl", .{}); | 17 | const curl = b.dependency("curl", .{}); |
| 18 | const libarchive = b.dependency("libarchive", .{}); | 18 | const libarchive = b.dependency("libarchive", .{}); |
| 19 | const xdg = b.dependency("xdg", .{}); | ||
| 19 | 20 | ||
| 20 | const exe = b.addExecutable(.{ | 21 | const exe = b.addExecutable(.{ |
| 21 | .name = "zup", | 22 | .name = "zup", |
| @@ -28,7 +29,7 @@ pub fn build(b: *Build) void { | |||
| 28 | exe.addModule("clap", clap.module("clap")); | 29 | exe.addModule("clap", clap.module("clap")); |
| 29 | exe.addModule("curl", curl.module("curl")); | 30 | exe.addModule("curl", curl.module("curl")); |
| 30 | exe.addModule("libarchive", libarchive.module("libarchive")); | 31 | exe.addModule("libarchive", libarchive.module("libarchive")); |
| 31 | exe.addModule("xdg", b.createModule(.{ .source_file = .{ .path = "libs/xdg/xdg.zig" } })); | 32 | exe.addModule("xdg", xdg.module("xdg")); |
| 32 | exe.linkLibC(); | 33 | exe.linkLibC(); |
| 33 | exe.linkSystemLibrary("libarchive"); | 34 | exe.linkSystemLibrary("libarchive"); |
| 34 | exe.linkSystemLibrary("libcurl"); | 35 | exe.linkSystemLibrary("libcurl"); |
diff --git a/build.zig.zon b/build.zig.zon index 72d7b61..151d3f2 100644 --- a/build.zig.zon +++ b/build.zig.zon | |||
| @@ -15,5 +15,9 @@ | |||
| 15 | .url = "https://git.sr.ht/~ukko/zig-libarchive/archive/b70c51b8555e68e73c36b0e691dff65c0092baf6.tar.gz", | 15 | .url = "https://git.sr.ht/~ukko/zig-libarchive/archive/b70c51b8555e68e73c36b0e691dff65c0092baf6.tar.gz", |
| 16 | .hash = "12206a8120d9a7550112f2fcc908c46900d6882c95156f900d5e0b39fcdb6a64a065", | 16 | .hash = "12206a8120d9a7550112f2fcc908c46900d6882c95156f900d5e0b39fcdb6a64a065", |
| 17 | }, | 17 | }, |
| 18 | .xdg = .{ | ||
| 19 | .url = "https://git.sr.ht/~ukko/zig-xdg/archive/0102cd3c3ea6b5ad61e6afdc6de800621488c956.tar.gz", | ||
| 20 | .hash = "122012e83994a01a6faede69260f30bf25d3c7b9c2a6ef5226ce9b3e7ccd13b54898", | ||
| 21 | }, | ||
| 18 | }, | 22 | }, |
| 19 | } | 23 | } |
diff --git a/libs/xdg b/libs/xdg deleted file mode 160000 | |||
| Subproject 26639e50682ecb0f7373935de2dbc8d1d231922 | |||