You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merging work from @ferdnyc, to move version info to CMake, and other misc Cmake improvements. This was the easiest way to resolve the merge conflict for me (to apply it locally and commit it).
Copy file name to clipboardExpand all lines: include/OpenShotVersion.h.in
+9-11Lines changed: 9 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -31,18 +31,16 @@
31
31
#ifndefOPENSHOT_VERSION_H
32
32
#defineOPENSHOT_VERSION_H
33
33
34
-
// Crazy c++ macro to convert an integer into a string
35
-
#ifndef STRINGIZE
36
-
#defineSTRINGIZE_(x) #x
37
-
#defineSTRINGIZE(x) STRINGIZE_(x)
38
-
#endif
34
+
#defineOPENSHOT_VERSION_ALL "@PROJECT_VERSION@" /// A string of the entire version "Major.Minor.Build"
35
+
#defineOPENSHOT_VERSION_FULL "@PROJECT_VERSION_FULL@" /// A string of the full version identifier, including suffixes (e.g. "0.0.0-dev0")
36
+
37
+
#defineOPENSHOT_VERSION_MAJOR_MINOR "@PROJECT_VERSION_MAJOR@.@PROJECT_VERSION_MINOR@" /// A string of the "Major.Minor" version
38
+
39
+
#defineOPENSHOT_VERSION_MAJOR @PROJECT_VERSION_MAJOR@ /// Major version number is incremented when huge features are added or improved.
40
+
#defineOPENSHOT_VERSION_MINOR @PROJECT_VERSION_MINOR@ /// Minor version is incremented when smaller (but still very important) improvements are added.
41
+
#defineOPENSHOT_VERSION_BUILD @PROJECT_VERSION_PATCH@ /// Build number is incremented when minor bug fixes and less important improvements are added.
39
42
40
-
#defineOPENSHOT_VERSION_MAJOR0; /// Major version number is incremented when huge features are added or improved.
41
-
#defineOPENSHOT_VERSION_MINOR2; /// Minor version is incremented when smaller (but still very important) improvements are added.
42
-
#defineOPENSHOT_VERSION_BUILD3; /// Build number is incremented when minor bug fixes and less important improvements are added.
43
-
#defineOPENSHOT_VERSION_SO17; /// Shared object version number. This increments any time the API and ABI changes (so old apps will no longer link)
44
-
#defineOPENSHOT_VERSION_MAJOR_MINORSTRINGIZE(OPENSHOT_VERSION_MAJOR) "." STRINGIZE(OPENSHOT_VERSION_MINOR); /// A string of the "Major.Minor" version
45
-
#defineOPENSHOT_VERSION_ALLSTRINGIZE(OPENSHOT_VERSION_MAJOR) "." STRINGIZE(OPENSHOT_VERSION_MINOR) "." STRINGIZE(OPENSHOT_VERSION_BUILD); /// A string of the entire version "Major.Minor.Build"
43
+
#defineOPENSHOT_VERSION_SO @PROJECT_SO_VERSION@ /// Shared object version number. This increments any time the API and ABI changes (so old apps will no longer link)
0 commit comments