mirror of
https://github.com/AxioDL/tinyxml2.git
synced 2025-05-14 19:31:23 +00:00
Add rules for setversion.py to include CMakeLists.txt
This commit is contained in:
parent
b8249001e2
commit
aba89e3f76
28
setversion.py
Normal file → Executable file
28
setversion.py
Normal file → Executable file
@ -77,3 +77,31 @@ def doxRule( line ):
|
|||||||
|
|
||||||
fileProcess( "dox", doxRule )
|
fileProcess( "dox", doxRule )
|
||||||
|
|
||||||
|
|
||||||
|
#### Write the CMakeLists.txt ####
|
||||||
|
|
||||||
|
def cmakeRule1( line ):
|
||||||
|
|
||||||
|
matchVersion = "set(GENERIC_LIB_VERSION"
|
||||||
|
|
||||||
|
if line[0:len(matchVersion)] == matchVersion:
|
||||||
|
print "1)tinyxml2.h Major found"
|
||||||
|
return matchVersion + " \"" + `major` + "." + `minor` + "." + `build` + "\")" + "\n"
|
||||||
|
|
||||||
|
else:
|
||||||
|
return line;
|
||||||
|
|
||||||
|
fileProcess( "CMakeLists.txt", cmakeRule1 )
|
||||||
|
|
||||||
|
def cmakeRule2( line ):
|
||||||
|
|
||||||
|
matchSoversion = "set(GENERIC_LIB_SOVERSION"
|
||||||
|
|
||||||
|
if line[0:len(matchSoversion)] == matchSoversion:
|
||||||
|
print "1)tinyxml2.h Major found"
|
||||||
|
return matchSoversion + " \"" + `major` + "\")" + "\n"
|
||||||
|
|
||||||
|
else:
|
||||||
|
return line;
|
||||||
|
|
||||||
|
fileProcess( "CMakeLists.txt", cmakeRule2 )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user