Skip to content

Commit

Permalink
Fix versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
Masfo committed Apr 30, 2024
1 parent 1df6513 commit 9268fa7
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 16 deletions.
21 changes: 12 additions & 9 deletions src/buildnumber.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// AUTOMATICALLY GENERATED BY BUILDINC v0.2.340 TOOL
// LAST BUILD (CMAKE): 2024-04-30 21:19:55
// AUTOMATICALLY GENERATED BY BUILDINC v0.2.351 TOOL
// LAST BUILD (CMAKE): 2024-04-30 21:23:16

#pragma once

Expand All @@ -10,21 +10,24 @@

namespace BuildInc
{
// AUTOMATICALLY GENERATED BY BUILDINC v0.2.351 TOOL
// LAST BUILD (CMAKE): 2024-04-30 21:23:16

// You can modify major and minor
constexpr uint32_t major = 0;
constexpr uint32_t minor = 2;

// Do not modify these
constexpr uint32_t build = 350;
constexpr uint32_t build = 353;

constexpr uint32_t version = major * 10000 + minor * 1000 + build;
constexpr uint64_t random_seed = 0x94ab434f208577b7;
constexpr uint64_t random_seed = 0x753f43352ad14c97;

constexpr char version_string[] = "v0.2.350";
constexpr char build_time_string[] = "2024-04-30 21:19:55";
constexpr char phrase[] = "extrude-rummage-unwoven";
constexpr char calver[] = "2024.18.350";
constexpr char uuid[] = "C7C23282-A9C0-49AC-B894-BEE2139C52E3";
constexpr char version_string[] = "v0.2.353";
constexpr char build_time_string[] = "2024-04-30 21:23:16";
constexpr char phrase[] = "kilt-baboon-struck";
constexpr char calver[] = "2024.18.353";
constexpr char uuid[] = "663800F6-2A4F-4502-9548-117853AE2AA8";

// Copy paste to import to your project
/*
Expand Down
17 changes: 10 additions & 7 deletions src/buildnumber.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@ module;
export module BuildInc;
export namespace BuildInc
{
// AUTOMATICALLY GENERATED BY BUILDINC v0.2.351 TOOL
// LAST BUILD (CMAKE): 2024-04-30 21:23:16

// You can modify major and minor
constexpr uint32_t major = 0;
constexpr uint32_t minor = 2;

// Do not modify these
constexpr uint32_t build = 350;
constexpr uint32_t build = 353;

constexpr uint32_t version = major * 10000 + minor * 1000 + build;
constexpr uint64_t random_seed = 0x2dede943dd837355;
constexpr uint64_t random_seed = 0xb23a3d5a93a446b2;

constexpr char version_string[] = "v0.2.350";
constexpr char build_time_string[] = "2024-04-30 21:19:56";
constexpr char phrase[] = "voting-liable-gigolo";
constexpr char calver[] = "2024.18.350";
constexpr char uuid[] = "39D0713C-2E49-4ECB-A82B-7C738D327D9E";
constexpr char version_string[] = "v0.2.353";
constexpr char build_time_string[] = "2024-04-30 21:23:16";
constexpr char phrase[] = "cinch-isotope-mankind";
constexpr char calver[] = "2024.18.353";
constexpr char uuid[] = "06FB2D6F-CA37-4F1D-A814-C74BF425A4FC";

// Copy paste to import to your project
/*
Expand Down
5 changes: 5 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,11 @@ void WriteModule(std::filesystem::path &HeaderFile, const std::string &project_n

std::string generated;
generated.reserve(1400);
auto date = GetDateString();


generated.append(std::format("// AUTOMATICALLY GENERATED BY BUILDINC {} TOOL\n", BuildInc::version_string));
generated.append(std::format("// LAST BUILD (CMAKE): {}\n\n", date));

generated.append("module;\n");
generated.append("#include <cstdint>\n\n");
Expand Down

0 comments on commit 9268fa7

Please sign in to comment.