updated build system

This commit is contained in:
2024-07-09 14:58:56 -05:00
parent 68c9ec0f82
commit 239652be7c
6 changed files with 58 additions and 31 deletions

View File

@ -403,11 +403,6 @@ using FileInfo = FSP_FSCTL_FILE_INFO;
using namespace Fsp;
namespace repertory {
auto get_repertory_git_revision() -> const std::string &;
auto get_repertory_version() -> const std::string &;
} // namespace repertory
namespace {
template <class... Ts> struct overloaded : Ts... {
using Ts::operator()...;

View File

@ -19,17 +19,13 @@
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
#include "types/repertory.hpp"
#include "utils/utils.hpp"
#ifndef LIBREPERTORY_INCLUDE_VERSION_HPP_
#define LIBREPERTORY_INCLUDE_VERSION_HPP_
namespace repertory {
auto get_repertory_git_revision() -> const std::string & {
static const std::string git_revision = PROJECT_GIT_REV;
return git_revision;
}
[[nodiscard]] auto project_get_git_rev() -> std::string_view;
auto get_repertory_version() -> const std::string & {
static const std::string version = PROJECT_VERSION;
return version;
}
[[nodiscard]] auto project_get_version() -> std::string_view;
} // namespace repertory
#endif // LIBREPERTORY_INCLUDE_VERSION_HPP_