mirror of
https://github.com/jakcron/nstool.git
synced 2024-12-23 03:05:27 +00:00
Program version is now determined from makefile.
This commit is contained in:
parent
50d891cd24
commit
54cf4c5ef2
|
@ -45,7 +45,7 @@ void UserSettings::parseCmdArgs(const std::vector<std::string>& arg_list)
|
||||||
|
|
||||||
void UserSettings::showHelp()
|
void UserSettings::showHelp()
|
||||||
{
|
{
|
||||||
printf("%s v%d.%d.%d (C) %s\n", APP_NAME, VER_MAJOR, VER_MINOR, VER_PATCH, AUTHORS);
|
printf("%s v%d.%d.%d (C) %s\n", APP_NAME, PROJECT_VER_MAJOR, PROJECT_VER_MINOR, PROJECT_VER_PATCH, PROJECT_AUTHORS);
|
||||||
printf("Built: %s %s\n\n", __TIME__, __DATE__);
|
printf("Built: %s %s\n\n", __TIME__, __DATE__);
|
||||||
|
|
||||||
printf("Usage: %s [options... ] <file>\n", BIN_NAME);
|
printf("Usage: %s [options... ] <file>\n", BIN_NAME);
|
||||||
|
|
|
@ -1,7 +1,15 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
#define APP_NAME "NSTool"
|
#define APP_NAME "NSTool"
|
||||||
#define BIN_NAME "nstool"
|
#define BIN_NAME "nstool"
|
||||||
#define VER_MAJOR 1
|
|
||||||
#define VER_MINOR 0
|
#ifndef PROJECT_VER_MAJOR
|
||||||
#define VER_PATCH 5
|
#define PROJECT_VER_MAJOR 0
|
||||||
#define AUTHORS "jakcron"
|
#endif
|
||||||
|
#ifndef PROJECT_VER_MINOR
|
||||||
|
#define PROJECT_VER_MINOR 0
|
||||||
|
#endif
|
||||||
|
#ifndef PROJECT_VER_PATCH
|
||||||
|
#define PROJECT_VER_PATCH 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define PROJECT_AUTHORS "jakcron"
|
Loading…
Reference in a new issue