From 1e4f86012b036395d165cc997f7aacfb71bf2c1b Mon Sep 17 00:00:00 2001 From: Matheus Catarino Date: Fri, 30 Aug 2024 17:02:46 -0300 Subject: [PATCH] sticked to boost-1.86.0 --- build.zig | 167 ++++++++++++++++++++++-------------------------- build.zig.zon | 172 +++++++++++++++++++++++++++++++------------------- update_zon.sh | 93 ++++++++++++++++----------- 3 files changed, 241 insertions(+), 191 deletions(-) diff --git a/build.zig b/build.zig index f33d5bd..95ac4a8 100644 --- a/build.zig +++ b/build.zig @@ -1,5 +1,60 @@ const std = @import("std"); +const boost_libs = [_][]const u8{ + "core", + "algorithm", + "config", + "assert", + "type_traits", + "mp11", + "range", + "functional", + "preprocessor", + "container_hash", + "describe", + "mpl", + "iterator", + "static_assert", + "move", + "detail", + "throw_exception", + "tuple", + "predef", + "concept_check", + "utility", + "endian", + "regex", + "asio", + "align", + "system", + "intrusive", + "hana", + "outcome", + "bind", + "pfr", + "graph", + "optional", + "date_time", + "smart_ptr", + "math", + "beast", + "numeric_conversion", + "logic", + "lexical_cast", + "unordered", + "static_string", + "io", + "json", + "type_index", + "container", + "variant", + "variant2", + "winapi", + "chrono", + "any", + "url", +}; + pub fn build(b: *std.Build) !void { const target = b.standardTargetOptions(.{}); const optimize = b.standardOptimizeOption(.{}); @@ -7,7 +62,7 @@ pub fn build(b: *std.Build) !void { const boost = boostLibraries(b, .{ .target = target, .optimize = optimize, - .header_only = b.option(bool, "headers-only", "Build header-only libraries") orelse false, + .header_only = b.option(bool, "headers-only", "Build header-only libraries") orelse true, }); b.installArtifact(boost); } @@ -16,59 +71,29 @@ const cxxFlags: []const []const u8 = &.{ "-Wall", "-Wextra", "-Wpedantic", + "-std=c++17", }; -fn boostLibraries(b: *std.Build, config: Config) *std.Build.Step.Compile { +const boost_version: std.SemanticVersion = .{ .major = 0, .minor = 86, .patch = 0 }; + +pub fn boostLibraries(b: *std.Build, config: Config) *std.Build.Step.Compile { const lib = b.addStaticLibrary(.{ .name = "boost", .target = config.target, .optimize = config.optimize, + .version = boost_version, }); - const boostCore = b.dependency("core", .{}).path(""); - const boostAlg = b.dependency("algorithm", .{}).path(""); - const boostConfig = b.dependency("config", .{}).path(""); - const boostAssert = b.dependency("assert", .{}).path(""); - const boostTraits = b.dependency("type_traits", .{}).path(""); - const boostMP11 = b.dependency("mp11", .{}).path(""); - const boostRange = b.dependency("range", .{}).path(""); - const boostFunctional = b.dependency("functional", .{}).path(""); - const boostPreprocessor = b.dependency("preprocessor", .{}).path(""); - const boostHash = b.dependency("container_hash", .{}).path(""); - const boostDescribe = b.dependency("describe", .{}).path(""); - const boostMpl = b.dependency("mpl", .{}).path(""); - const boostIterator = b.dependency("iterator", .{}).path(""); - const boostStaticAssert = b.dependency("static_assert", .{}).path(""); - const boostMove = b.dependency("move", .{}).path(""); - const boostDetail = b.dependency("detail", .{}).path(""); - const boostThrow = b.dependency("throw_exception", .{}).path(""); - const boostTuple = b.dependency("tuple", .{}).path(""); - const boostPredef = b.dependency("predef", .{}).path(""); - const boostCCheck = b.dependency("concept_check", .{}).path(""); - const boostUtil = b.dependency("utility", .{}).path(""); - const boostEndian = b.dependency("endian", .{}).path(""); - const boostRegex = b.dependency("regex", .{}).path(""); - const boostAsio = b.dependency("asio", .{}).path(""); - const boostAlign = b.dependency("align", .{}).path(""); - const boostSystem = b.dependency("system", .{}).path(""); - const boostIntrusive = b.dependency("intrusive", .{}).path(""); - const boostHana = b.dependency("hana", .{}).path(""); - const boostOutcome = b.dependency("outcome", .{}).path(""); - const boostBind = b.dependency("bind", .{}).path(""); - const boostOptional = b.dependency("optional", .{}).path(""); - const boostDateTime = b.dependency("date_time", .{}).path(""); - const boostSmartPtr = b.dependency("smart_ptr", .{}).path(""); - const boostNumeric = b.dependency("numeric_conversion", .{}).path(""); - const boostLogic = b.dependency("logic", .{}).path(""); - const boostStaticStr = b.dependency("static_string", .{}).path(""); - const boostIO = b.dependency("io", .{}).path(""); - const boostJson = b.dependency("json", .{}).path(""); - const boostContainer = b.dependency("container", .{}).path(""); - const boostVariant2 = b.dependency("variant2", .{}).path(""); - const boostWinApi = b.dependency("winapi", .{}).path(""); + inline for (boost_libs) |name| { + const boostLib = b.dependency(name, .{}).path("include"); + lib.addIncludePath(boostLib); + } + if (config.header_only) { - // zig-pkg bypass (no header-only) - const empty = b.addWriteFile("empty.cc", "// bypass"); + // zig-pkg bypass (artifact need source file) + const empty = b.addWriteFile("empty.cc", + \\ #include + ); lib.step.dependOn(&empty.step); lib.addCSourceFiles(.{ .root = empty.getDirectory(), @@ -76,6 +101,8 @@ fn boostLibraries(b: *std.Build, config: Config) *std.Build.Step.Compile { .flags = cxxFlags, }); } else { + const boostJson = b.dependency("json", .{}).path(""); + const boostContainer = b.dependency("container", .{}).path(""); lib.addCSourceFiles(.{ .root = boostContainer, .files = &.{ @@ -94,53 +121,11 @@ fn boostLibraries(b: *std.Build, config: Config) *std.Build.Step.Compile { }, .flags = cxxFlags, }); - if (lib.rootModuleTarget().abi == .msvc) - lib.linkLibC() - else - lib.linkLibCpp(); } - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostCore.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostAlg.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostConfig.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostAssert.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostFunctional.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostMP11.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostTraits.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostRange.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostPreprocessor.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostHash.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostDescribe.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostMpl.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostStaticAssert.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostIterator.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostMove.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostDetail.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostThrow.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostTuple.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostPredef.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostCCheck.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostUtil.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostRegex.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostEndian.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostAsio.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostAlign.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostSystem.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostIntrusive.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostHana.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostOutcome.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostBind.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostOptional.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostDateTime.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostSmartPtr.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostNumeric.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostLogic.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostStaticStr.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostIO.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostJson.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostContainer.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostVariant2.getPath(b), "include" }) }); - lib.addIncludePath(.{ .cwd_relative = b.pathJoin(&.{ boostWinApi.getPath(b), "include" }) }); - + if (lib.rootModuleTarget().abi == .msvc) + lib.linkLibC() + else + lib.linkLibCpp(); return lib; } diff --git a/build.zig.zon b/build.zig.zon index ac4bf8f..2da109d 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -3,169 +3,213 @@ .version = "1.86.0", .dependencies = .{ .core = .{ - .url = "git+https://github.com/boostorg/core#e3a2e88e4cc9ec39f4c67aef2a20e1b246c2a3b1", - .hash = "12205e1ee44ee9f2ac3ee244c7e023481ea0d11a3b0455578708f304e1ac23ecbdde", + .url = "git+https://github.com/boostorg/core#boost-1.86.0", + .hash = "1220bf61b43db160772f9745614c8e343ab57bf0675cef2e6c86b17ce51731caa275", }, .algorithm = .{ - .url = "git+https://github.com/boostorg/algorithm#faac048d59948b1990c0a8772a050d8e47279343", - .hash = "1220a4167dd25735ead67e3444575544b9bd9e497dc02932c3ff22e8bd14d9d92919", + .url = "git+https://github.com/boostorg/algorithm#boost-1.86.0", + .hash = "1220c0e4cbe2f4b2eb45d2af32ff2101ead505958a4247c74aa9f5411d0d821c0fbb", }, .assert = .{ - .url = "git+https://github.com/boostorg/assert#2242cfb58269c03328957860006076386e7fa356", - .hash = "1220cb48d4e3ca5f3805d1fd95baf89270d11711b0b320176dab4f1adc49a5337693", + .url = "git+https://github.com/boostorg/assert#boost-1.86.0", + .hash = "1220db8b269fba50cee2f36b060d70545ffe1e21abd079b78259defee3a055e52c70", }, .config = .{ - .url = "git+https://github.com/boostorg/config#19701e05d4832d1e97e06e791f2e4e1c7cba9b13", - .hash = "1220f15d65f07fea9d233b041e35e7e16a2ac84d573a63b2d5a5590ee1fe33c26f7b", + .url = "git+https://github.com/boostorg/config#boost-1.86.0", + .hash = "1220e986185bfcbea53d0f421254a8225f9e760116f00c1f2a5c19555a41c2098b16", }, .mp11 = .{ - .url = "git+https://github.com/boostorg/mp11#03a2d3ae5f0b42bb7e6c3d1af19dd9c978b84896", - .hash = "1220a563c506b1f5379f10249224a828c56acb80c5356c9268e8712ff97da9a77dc5", + .url = "git+https://github.com/boostorg/mp11#boost-1.86.0", + .hash = "1220bf5c2101ae872052f89a6284275657bea13265ee32b9480889321b71c5e64c82", }, .type_traits = .{ - .url = "git+https://github.com/boostorg/type_traits#ba238b7206d42157cb1cbcc5294a50cc4073afed", - .hash = "12204c5073b89824bc98529cc2e1ddaf18dc5f57ef7df62fe2637b3701c7c2589087", + .url = "git+https://github.com/boostorg/type_traits#boost-1.86.0", + .hash = "1220559f93ddb717f55f2d43c4bb3deaf98baf7af1f11ffd9f2ab92c67842640283e", }, .range = .{ - .url = "git+https://github.com/boostorg/range#f0e109312cab295a660ae94b138cb5f8fc7d182f", + .url = "git+https://github.com/boostorg/range#boost-1.86.0", .hash = "122057e21e4750e287bd314da0c0b049531808e05ba14ac466901c26920d346e2380", }, .functional = .{ - .url = "git+https://github.com/boostorg/functional#6a573e4b8333ee63ee62ce95558c3667348db233", + .url = "git+https://github.com/boostorg/functional#boost-1.86.0", .hash = "1220076d0d66d954789d4d29cf16c38de95004d9d29960f166f029fde23522d9497a", }, .container_hash = .{ - .url = "git+https://github.com/boostorg/container_hash#ee5285bfa64843a11e29700298c83a37e3132fcd", + .url = "git+https://github.com/boostorg/container_hash#boost-1.86.0", .hash = "12205e69c9576ba261b1d72962d3c3f1d77b0d213c7626422b7ee1648c6424f90b5a", }, .mpl = .{ - .url = "git+https://github.com/boostorg/mpl#b37b709cbdb6b2c285fb808dab985aa005786351", + .url = "git+https://github.com/boostorg/mpl#boost-1.86.0", .hash = "122067750d516a1f4b7011d3de8c0af48bc69697137bb3a33d815ed13b4d516e95e5", }, .iterator = .{ - .url = "git+https://github.com/boostorg/iterator#0abef890ee04f041db43c381b1f8126ffa411bb1", - .hash = "1220a75237157f0679ecd8c2a28658b6f4662a86dae4a5a5188f392bf346e7d1ce01", + .url = "git+https://github.com/boostorg/iterator#boost-1.86.0", + .hash = "122063b7bddde23dd8feac08d4b75a4b98366b8d79e868c370a808b71e762477599a", }, .preprocessor = .{ - .url = "git+https://github.com/boostorg/preprocessor#c4ea7e40d365ba28faecef8917d5c3f1e0121bf9", + .url = "git+https://github.com/boostorg/preprocessor#boost-1.86.0", .hash = "1220b9a8dc8c3a92df0f8958e8c2195441ad5db1f8ee442262cbbfbeb7fdbfcb8e22", }, .describe = .{ - .url = "git+https://github.com/boostorg/describe#1ddee6c39a7694af99a74fc08f24c242cbdd57ac", + .url = "git+https://github.com/boostorg/describe#boost-1.86.0", .hash = "122016b494a39f2146cecc1a2d40fddb4a88d2e9f099f43ce869291e62e0282012ef", }, .move = .{ - .url = "git+https://github.com/boostorg/move#c973467a31949a3dd6c1908a4ec267ea635cab07", - .hash = "1220c038c90a49159263d0e1d2be791eb615815fbc2ae66432cd3f48217e81ff0a95", + .url = "git+https://github.com/boostorg/move#boost-1.86.0", + .hash = "12201cb061bb3d1a047665b0033733886f5b2fa3e7392fa4cfcf69366392c89072f3", }, .detail = .{ - .url = "git+https://github.com/boostorg/detail#804767983fb6f77f8e0fd975f23d1facee6f224b", + .url = "git+https://github.com/boostorg/detail#boost-1.86.0", .hash = "12203e9a3fc216a97c0038b6ad0b8867f5028e08203a978c6c6cb319bb74fcad3e4e", }, .static_assert = .{ - .url = "git+https://github.com/boostorg/static_assert#45eec41c293bc5cd36ec3ed83671f70bc1aadc9f", - .hash = "1220c8a06c0429ea43eccde4fa8df58833f1d1a5685b2e74e16341c4dbf4ca439a72", + .url = "git+https://github.com/boostorg/static_assert#boost-1.86.0", + .hash = "1220c7b9b91d93d2b7c76279a722a822123148140d4e0332f3c228631e31d32e9a43", }, .throw_exception = .{ - .url = "git+https://github.com/boostorg/throw_exception#ca85c198c81c1daeed31e6a5c920f499d360bade", - .hash = "1220e118741c8d704e63eba4831a544bc5a9d7eaba790c0925e3b760f95f1d515899", + .url = "git+https://github.com/boostorg/throw_exception#boost-1.86.0", + .hash = "12206fa5f2904738f4f58710f86b5531c11f5021ea9e40003dd105d74f95160b7e38", }, .concept_check = .{ - .url = "git+https://github.com/boostorg/concept_check#37c9bddf0bdefaaae0ca5852c1a153d9fc43f278", + .url = "git+https://github.com/boostorg/concept_check#boost-1.86.0", .hash = "122089b2862bce71ac1ad28c5021c1f0af8658ea596d5b7864c480bc6992a87ff705", }, .asio = .{ - .url = "git+https://github.com/boostorg/asio#d6e7b5a547daaddfd19c548d2f602cb5b15361df", + .url = "git+https://github.com/boostorg/asio#boost-1.86.0", .hash = "12206783f5ed5c6ad2dbef54a8104b784ce2e2a377a3874e9641476ddee8bfb708e8", }, .tuple = .{ - .url = "git+https://github.com/boostorg/tuple#b67941dd7d03536a854b96f001954792311ab515", + .url = "git+https://github.com/boostorg/tuple#boost-1.86.0", .hash = "1220e094759f71e054366ccdd7179c17deb10066a873845dae3cc25defb1f77258cf", }, .predef = .{ - .url = "git+https://github.com/boostorg/predef#9aca7f5b609a731106a6d70e8dca9a4196dca968", + .url = "git+https://github.com/boostorg/predef#boost-1.86.0", .hash = "122074b0b1044621ee4845660793e413df36609a2fdf38e017d48b7d1d6a77bd876c", }, .utility = .{ - .url = "git+https://github.com/boostorg/utility#31de9279d826c8a6ae6126c0c4a8a32ea9f0edff", + .url = "git+https://github.com/boostorg/utility#boost-1.86.0", .hash = "1220593051f676724aed989106f1e62ae1fbbe3dc753140f3ff85377f6c9ea4f4dc1", }, .bind = .{ - .url = "git+https://github.com/boostorg/bind#68a9e0db858527834f6a791930bcd9a41e09ac9c", - .hash = "12209406b06575867095b7d79c2cccd6ad8653419af201d74018940e941eebb3bab0", + .url = "git+https://github.com/boostorg/bind#boost-1.86.0", + .hash = "1220f8ddc31feec9ae1ef5df802a29b82c6e39589ee22a756e6aa8e859ca32d83157", }, .container = .{ - .url = "git+https://github.com/boostorg/container#19a2f5ea95ddd6ed7ac6d50af15c59f2552a3611", - .hash = "12200ad9982f4bc6d7e8ccf037502edd1c8c80521958312e377dc239901c5fd7f8f4", + .url = "git+https://github.com/boostorg/container#boost-1.86.0", + .hash = "1220a40ea0da22e2c1a6d569124505fae5fa9e19739e70c2023b6bdf83ef6b04b30d", }, .endian = .{ - .url = "git+https://github.com/boostorg/endian#be212912d7a080e084874882bff375cdd7416d0d", - .hash = "122049f35d9a64ed4589c2d0cb4dca3079125f4b9460e91d9fcbf85bde87332d4452", + .url = "git+https://github.com/boostorg/endian#boost-1.86.0", + .hash = "1220705bdd1fdfdf2f6172b7653231545b86d44fcfbedfc011263805f2dd20108c3b", }, .intrusive = .{ - .url = "git+https://github.com/boostorg/intrusive#4c87c9b49fb46fc5bf43f0eb66ff90d524555019", - .hash = "1220b38cb9d9c8e1a731271a96ca01a1ebfb450c0aa30c6ccff28ca063497a4550fc", + .url = "git+https://github.com/boostorg/intrusive#boost-1.86.0", + .hash = "122098091412f354a6e6cdd8580bd1e5f1ebd8718cca13ab0017afa33fe88ed470ed", }, .logic = .{ - .url = "git+https://github.com/boostorg/logic#145778490c2d332c1411df6a5274a4b53ec3e091", + .url = "git+https://github.com/boostorg/logic#boost-1.86.0", .hash = "1220f08e4f920cee0d1eace9a65ea0452742cb623d98d78a1daa5af10fd35a4aaec8", }, .optional = .{ - .url = "git+https://github.com/boostorg/optional#942caa437b0f6db9ba5d24c7bb5ea2938608cc1c", - .hash = "1220f01fa19d8eefda9085b55361e5ac57015be4025c3da99b2410759bf56b79ae05", + .url = "git+https://github.com/boostorg/optional#boost-1.86.0", + .hash = "1220c94bd820cea468ecf50fe95285d283882930b58d8d6869e244ff65103a5a0ca7", }, .smart_ptr = .{ - .url = "git+https://github.com/boostorg/smart_ptr#e9c54b24302a9e606a5be3088764d2037b2ab9a4", - .hash = "1220817d5563202005f8cfaaa5c1b6f53785432a9e7e1455cf418b1abb20cbc15a97", + .url = "git+https://github.com/boostorg/smart_ptr#boost-1.86.0", + .hash = "122034c2f98cfc20abeca7f67abfc208897aee6a9578541d152c110f971ecc4f9dd7", }, .static_string = .{ - .url = "git+https://github.com/boostorg/static_string#bff5cb65a5cb9151aacaf56abe80125e0128f43a", + .url = "git+https://github.com/boostorg/static_string#boost-1.86.0", .hash = "12202e6d6a156cf70bab5272df3c2b5ccf0578fed8103df0276a48ccfa9cc5340114", }, .system = .{ - .url = "git+https://github.com/boostorg/system#3e5ce277193d7a036a1d5229789d1812f42e29da", - .hash = "12203caa0c1d5f0ccf1c383ec15ba658ae94d9c62a7eb485fbcd4d04270b3c5bfdeb", + .url = "git+https://github.com/boostorg/system#boost-1.86.0", + .hash = "122081e1029cd76fdbb183393f7b454ece6e6cae16b445ac61537ec28ad6e8020ed1", }, .winapi = .{ - .url = "git+https://github.com/boostorg/winapi#ea553ab4d2e4cba1448d23a542993692c9d385f7", - .hash = "1220d4b02b466d3e3a1e7abb721847a648a468e36063f6e7835210a69f612f1d24b0", + .url = "git+https://github.com/boostorg/winapi#boost-1.86.0", + .hash = "12204a9835f67f89a5eb4460c09864e1d84347358e8e02c080d72d26847eca39aa3f", }, .json = .{ - .url = "git+https://github.com/boostorg/json#72175b07696e9ab8b30304e06d1b8f2b2b510065", - .hash = "12207a4e1c14a227040f6a6b884c253521928ea26818700d29b756b2f8a472cb04e4", + .url = "git+https://github.com/boostorg/json#boost-1.86.0", + .hash = "12208505d6fa3ccd3e8100fa9bab0562f087a364e29169903344cb56f34740f7fcd5", }, .io = .{ - .url = "git+https://github.com/boostorg/io#342e4c6d10d586058818daa84201a2d301357a53", + .url = "git+https://github.com/boostorg/io#boost-1.86.0", .hash = "1220d3e978e9738f62bb07989c9e23e14337875df813b4a380ad961078d2a1c6adfd", }, .regex = .{ - .url = "git+https://github.com/boostorg/regex#5243906d23a4ca10507bff15de40cf1f776af865", - .hash = "1220bf33807e34eefded59ecbe3b2dcabe1c8e73740ff01ced76a93fcc55061de3be", + .url = "git+https://github.com/boostorg/regex#boost-1.86.0", + .hash = "12204e4811a5dcd1638cb57c0dd7deb9815a56b3bed84e05e205e7a78884732bbde6", }, .variant2 = .{ - .url = "git+https://github.com/boostorg/variant2#a4b167b7238781d75df5d6684c9e9d40b26456dc", - .hash = "1220a4132f8ba42cf21a6b5bb32d342448e470bf0e7f6f6b6ffa3eab7a61455b51ae", + .url = "git+https://github.com/boostorg/variant2#boost-1.86.0", + .hash = "12208cd88957328f4938c86d6481e598fbf37173ac534c03ce6fea7a6b852d4373f8", }, .date_time = .{ - .url = "git+https://github.com/boostorg/date_time#39714907b7d32ed8f005b5a01d1c2b885b5717b3", + .url = "git+https://github.com/boostorg/date_time#boost-1.86.0", .hash = "12204ffe10afc332987303688d6f6eadb9e90d3381f5eec21454c38b3636f161f11c", }, .outcome = .{ - .url = "git+https://github.com/boostorg/outcome#33f17f66981e24daf78ae35475a6ff7f053338e0", - .hash = "122070274f9e346b67384afefdf5eb34e092366c2b50606ab289fb4a230256f62833", + .url = "git+https://github.com/boostorg/outcome#boost-1.86.0", + .hash = "12200e0c85610d5e58c51e3ce5fee8d02b826dcebd97dd55167900cf2f3cac383842", }, .hana = .{ - .url = "git+https://github.com/boostorg/hana#275ee334d4c406643e9f560c40f9b73638cd9c7e", - .hash = "12206efab6382cd5c7fb4b8ec921c0a1c7118cd5faaa9de0b09cde4118e63f56335e", + .url = "git+https://github.com/boostorg/hana#boost-1.86.0", + .hash = "1220a81c23c2a4b23de86d8a2042aa0b478abc9f35d29ac8b57c16cd79833547af20", }, .numeric_conversion = .{ - .url = "git+https://github.com/boostorg/numeric_conversion#50a1eae942effb0a9b90724323ef8f2a67e7984a", + .url = "git+https://github.com/boostorg/numeric_conversion#boost-1.86.0", .hash = "1220ad3b57a03c474926b98c037b2b5313a46b35cc36a1711abe789f083292846ad3", }, .@"align" = .{ - .url = "git+https://github.com/boostorg/align#5ad7df63cd792fbdb801d600b93cad1a432f0151", + .url = "git+https://github.com/boostorg/align#boost-1.86.0", .hash = "122064a97916999f7408c832db06dede981e76d7e41580ac2e0b68859e14f6c849d7", }, + .graph = .{ + .url = "git+https://github.com/boostorg/graph#boost-1.86.0", + .hash = "12207283d920db926754896e4e21b897172ae150f55365fd8f78ab1374957ebdab48", + }, + .pfr = .{ + .url = "git+https://github.com/boostorg/pfr#boost-1.86.0", + .hash = "1220f72d8c9df548e1f90fd0fd9bda48a2e8ddeae4f5c36e2ec56136996ce7be46da", + }, + .math = .{ + .url = "git+https://github.com/boostorg/math#boost-1.86.0", + .hash = "1220e5806652c42cfaed46709c1616fbe4a0a43b85cf3afa8681e4d661b854d6b067", + }, + .lexical_cast = .{ + .url = "git+https://github.com/boostorg/lexical_cast#boost-1.86.0", + .hash = "1220498f2c71a9baff9c113c698dab41b1a1edba2d41cdf636e62c712faec43538d8", + }, + .type_index = .{ + .url = "git+https://github.com/boostorg/type_index#boost-1.86.0", + .hash = "12201ef5b77c5641b5c74eb25ef6931a48b6a096f90cee32d3b435bbcfd8429ed4f4", + }, + .beast = .{ + .url = "git+https://github.com/boostorg/beast#boost-1.86.0", + .hash = "1220ebc92b11ec2bfebb7f1fa5ff57739182af77c39b4988db2df6837ac6453fdf4d", + }, + .variant = .{ + .url = "git+https://github.com/boostorg/variant#boost-1.86.0", + .hash = "12200c7466be09b4b30dd2ffa68fa94e53678e2b538bb4944a56a635fcd514f330f4", + }, + .chrono = .{ + .url = "git+https://github.com/boostorg/chrono#boost-1.86.0", + .hash = "12203e64bffefc71c32540b05c93f12727003dd41e80b4f2766a6b3b04eb482b984a", + }, + .unordered = .{ + .url = "git+https://github.com/boostorg/unordered#boost-1.86.0", + .hash = "12206ffe9416fa0bf004868e15d0b8ce9235ced92641032c47e06246cb3f27e42956", + }, + .url = .{ + .url = "git+https://github.com/boostorg/url#boost-1.86.0", + .hash = "12209121dcacaa3ecd8dbeb0ab439f01da9b7ac90b4f984cf6398d428db45f1da54b", + }, + .any = .{ + .url = "git+https://github.com/boostorg/any#boost-1.86.0", + .hash = "122072700052d2d33b45d17400e68c3658a71721890611f0a0adb5e82fbaa2d5b187", + }, }, .paths = .{""}, } diff --git a/update_zon.sh b/update_zon.sh index ed17aeb..0224666 100755 --- a/update_zon.sh +++ b/update_zon.sh @@ -1,48 +1,69 @@ #!/bin/bash +BOOST_VERSION="boost-1.86.0" + # Array of git URLs GIT_URLS=( - "git+https://github.com/boostorg/asio" - "git+https://github.com/boostorg/assert" - "git+https://github.com/boostorg/bind" - "git+https://github.com/boostorg/config" - "git+https://github.com/boostorg/container" - "git+https://github.com/boostorg/core" - "git+https://github.com/boostorg/endian" - "git+https://github.com/boostorg/intrusive" - "git+https://github.com/boostorg/logic" - "git+https://github.com/boostorg/mp11" - "git+https://github.com/boostorg/optional" - "git+https://github.com/boostorg/smart_ptr" - "git+https://github.com/boostorg/static_assert" - "git+https://github.com/boostorg/static_string" - "git+https://github.com/boostorg/system" - "git+https://github.com/boostorg/throw_exception" - "git+https://github.com/boostorg/type_traits" - "git+https://github.com/boostorg/utility" - "git+https://github.com/boostorg/winapi" - "git+https://github.com/boostorg/json" - "git+https://github.com/boostorg/io" - "git+https://github.com/boostorg/range" - "git+https://github.com/boostorg/regex" - "git+https://github.com/boostorg/variant2" - "git+https://github.com/boostorg/date_time" - "git+https://github.com/boostorg/outcome" - "git+https://github.com/boostorg/hana" - "git+https://github.com/boostorg/numeric_conversion" - "git+https://github.com/boostorg/concept_check" - "git+https://github.com/boostorg/predef" - "git+https://github.com/boostorg/preprocessor" - "git+https://github.com/boostorg/align" + "git+https://github.com/boostorg/algorithm#$BOOST_VERSION" + "git+https://github.com/boostorg/asio#$BOOST_VERSION" + "git+https://github.com/boostorg/assert#$BOOST_VERSION" + "git+https://github.com/boostorg/bind#$BOOST_VERSION" + "git+https://github.com/boostorg/config#$BOOST_VERSION" + "git+https://github.com/boostorg/container#$BOOST_VERSION" + "git+https://github.com/boostorg/core#$BOOST_VERSION" + "git+https://github.com/boostorg/detail#$BOOST_VERSION" + "git+https://github.com/boostorg/describe#$BOOST_VERSION" + "git+https://github.com/boostorg/endian#$BOOST_VERSION" + "git+https://github.com/boostorg/container_hash#$BOOST_VERSION" + "git+https://github.com/boostorg/iterator#$BOOST_VERSION" + "git+https://github.com/boostorg/intrusive#$BOOST_VERSION" + "git+https://github.com/boostorg/logic#$BOOST_VERSION" + "git+https://github.com/boostorg/mp11#$BOOST_VERSION" + "git+https://github.com/boostorg/mpl#$BOOST_VERSION" + "git+https://github.com/boostorg/optional#$BOOST_VERSION" + "git+https://github.com/boostorg/smart_ptr#$BOOST_VERSION" + "git+https://github.com/boostorg/move#$BOOST_VERSION" + "git+https://github.com/boostorg/static_assert#$BOOST_VERSION" + "git+https://github.com/boostorg/static_string#$BOOST_VERSION" + "git+https://github.com/boostorg/system#$BOOST_VERSION" + "git+https://github.com/boostorg/throw_exception#$BOOST_VERSION" + "git+https://github.com/boostorg/tuple#$BOOST_VERSION" + "git+https://github.com/boostorg/type_traits#$BOOST_VERSION" + "git+https://github.com/boostorg/utility#$BOOST_VERSION" + "git+https://github.com/boostorg/winapi#$BOOST_VERSION" + "git+https://github.com/boostorg/functional#$BOOST_VERSION" + "git+https://github.com/boostorg/json#$BOOST_VERSION" + "git+https://github.com/boostorg/io#$BOOST_VERSION" + "git+https://github.com/boostorg/range#$BOOST_VERSION" + "git+https://github.com/boostorg/regex#$BOOST_VERSION" + "git+https://github.com/boostorg/variant#$BOOST_VERSION" + "git+https://github.com/boostorg/variant2#$BOOST_VERSION" + "git+https://github.com/boostorg/date_time#$BOOST_VERSION" + "git+https://github.com/boostorg/outcome#$BOOST_VERSION" + "git+https://github.com/boostorg/hana#$BOOST_VERSION" + "git+https://github.com/boostorg/numeric_conversion#$BOOST_VERSION" + "git+https://github.com/boostorg/concept_check#$BOOST_VERSION" + "git+https://github.com/boostorg/predef#$BOOST_VERSION" + "git+https://github.com/boostorg/preprocessor#$BOOST_VERSION" + "git+https://github.com/boostorg/align#$BOOST_VERSION" + "git+https://github.com/boostorg/graph#$BOOST_VERSION" + "git+https://github.com/boostorg/pfr#$BOOST_VERSION" + "git+https://github.com/boostorg/math#$BOOST_VERSION" + "git+https://github.com/boostorg/lexical_cast#$BOOST_VERSION" + "git+https://github.com/boostorg/type_index#$BOOST_VERSION" + "git+https://github.com/boostorg/beast#$BOOST_VERSION" + "git+https://github.com/boostorg/chrono#$BOOST_VERSION" + "git+https://github.com/boostorg/unordered#$BOOST_VERSION" + "git+https://github.com/boostorg/any#$BOOST_VERSION" + "git+https://github.com/boostorg/url#$BOOST_VERSION" - ## Add more URLs here + ## Add more URLs here ) # Loop through each URL -for GIT_URL in "${GIT_URLS[@]}" -do +for GIT_URL in "${GIT_URLS[@]}"; do # Extract the package name from the URL - PKG_NAME=$(basename "$GIT_URL") + PKG_NAME=$(basename "$GIT_URL" | sed 's/#.*//') # Use zig fetch with the package name and URL zig fetch --save="$PKG_NAME" "$GIT_URL"