Skip to content
This repository has been archived by the owner on Jun 29, 2024. It is now read-only.

Commit

Permalink
Try fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gashmob committed Jul 19, 2023
1 parent b012cf3 commit 667186c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
12 changes: 6 additions & 6 deletions bin/change_version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ http --download --output=version.svg "https://img.shields.io/badge/version-$vers
echo -e " \033[32mDone\033[0m"

# Change version in src/lib/utils/VERSION.h
# constexpr uint FILC_VERSION_MAJOR = $major;
# constexpr uint FILC_VERSION_MINOR = $minor;
# constexpr uint FILC_VERSION_PATCH = $patch;
# constexpr unsigned int FILC_VERSION_MAJOR = $major;
# constexpr unsigned int FILC_VERSION_MINOR = $minor;
# constexpr unsigned int FILC_VERSION_PATCH = $patch;
echo -e " -> Change version in src/lib/utils/VERSION.h"
sed -i "s/constexpr uint FILC_VERSION_MAJOR = .*;/constexpr uint FILC_VERSION_MAJOR = $major;/" src/lib/utils/VERSION.h
sed -i "s/constexpr uint FILC_VERSION_MINOR = .*;/constexpr uint FILC_VERSION_MINOR = $minor;/" src/lib/utils/VERSION.h
sed -i "s/constexpr uint FILC_VERSION_PATCH = .*;/constexpr uint FILC_VERSION_PATCH = $patch;/" src/lib/utils/VERSION.h
sed -i "s/constexpr unsigned int FILC_VERSION_MAJOR = .*;/constexpr unsigned int FILC_VERSION_MAJOR = $major;/" src/lib/utils/VERSION.h
sed -i "s/constexpr unsigned int FILC_VERSION_MINOR = .*;/constexpr unsigned int FILC_VERSION_MINOR = $minor;/" src/lib/utils/VERSION.h
sed -i "s/constexpr unsigned int FILC_VERSION_PATCH = .*;/constexpr unsigned int FILC_VERSION_PATCH = $patch;/" src/lib/utils/VERSION.h
echo -e " \033[32mDone\033[0m"
7 changes: 3 additions & 4 deletions src/lib/utils/VERSION.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@
#define FILC_VERSION_H

#include <string>
#include <cctype>

constexpr uint FILC_VERSION_MAJOR = 0;
constexpr uint FILC_VERSION_MINOR = 2;
constexpr uint FILC_VERSION_PATCH = 1;
constexpr unsigned int FILC_VERSION_MAJOR = 0;
constexpr unsigned int FILC_VERSION_MINOR = 2;
constexpr unsigned int FILC_VERSION_PATCH = 1;

#define MAKE_VERSION(major, minor, patch) ((major) * 1000000 + (minor) * 1000 + (patch))
#define MAKE_VERSION_STRING(major, minor, patch) std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(patch)
Expand Down

0 comments on commit 667186c

Please sign in to comment.