write the version number as a macro
This commit is contained in:
2
dox
2
dox
@@ -38,7 +38,7 @@ PROJECT_NAME = "TinyXML-2"
|
||||
# could be handy for archiving the generated documentation or if some version
|
||||
# control system is used.
|
||||
|
||||
PROJECT_NUMBER = 5.0.1
|
||||
PROJECT_NUMBER = 5.0.1
|
||||
|
||||
# Using the PROJECT_BRIEF tag one can provide an optional one line description
|
||||
# for a project that appears at the top of each page and should give viewer a
|
||||
|
||||
@@ -67,6 +67,28 @@ def engineRule( line ):
|
||||
|
||||
fileProcess( "tinyxml2.h", engineRule )
|
||||
|
||||
def macroVersionRule( line ):
|
||||
|
||||
matchMajor = "#define TINYXML2_MAJOR_VERSION"
|
||||
matchMinor = "#define TINYXML2_MINOR_VERSION"
|
||||
matchBuild = "#define TINYXML2_PATCH_VERSION"
|
||||
|
||||
if line[0:len(matchMajor)] == matchMajor:
|
||||
print( "1)macro Major found" )
|
||||
return matchMajor + " " + major + "\n"
|
||||
|
||||
elif line[0:len(matchMinor)] == matchMinor:
|
||||
print( "2)macro Minor found" )
|
||||
return matchMinor + " " + minor + "\n"
|
||||
|
||||
elif line[0:len(matchBuild)] == matchBuild:
|
||||
print( "3)macro Build found" )
|
||||
return matchBuild + " " + build + "\n"
|
||||
|
||||
else:
|
||||
return line;
|
||||
|
||||
fileProcess("tinyxml2.h", macroVersionRule)
|
||||
|
||||
#### Write the dox ####
|
||||
|
||||
|
||||
@@ -102,6 +102,10 @@ static const int TIXML2_MAJOR_VERSION = 5;
|
||||
static const int TIXML2_MINOR_VERSION = 0;
|
||||
static const int TIXML2_PATCH_VERSION = 1;
|
||||
|
||||
#define TINYXML2_MAJOR_VERSION 5
|
||||
#define TINYXML2_MINOR_VERSION 0
|
||||
#define TINYXML2_PATCH_VERSION 1
|
||||
|
||||
namespace tinyxml2
|
||||
{
|
||||
class XMLDocument;
|
||||
|
||||
Reference in New Issue
Block a user