mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
get_package_version_string()
This commit is contained in:
parent
687961b626
commit
da9f3f8a33
@ -56,6 +56,27 @@ get_version_string() {
|
|||||||
return PANDA_VERSION_STR;
|
return PANDA_VERSION_STR;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
// Function: PandaSystem::get_package_version_string
|
||||||
|
// Access: Published, Static
|
||||||
|
// Description: Returns the version of the Panda3D distributable
|
||||||
|
// package associated with this build. This version
|
||||||
|
// string is set by the builder at compile time;
|
||||||
|
// presumably the person who sets this is also
|
||||||
|
// responsible for building the indicated distributable
|
||||||
|
// package version.
|
||||||
|
//
|
||||||
|
// If this string is empty, there is no distributable
|
||||||
|
// package associated with this build, and you should
|
||||||
|
// probably use a different build of Panda3D to generate
|
||||||
|
// your distributable applications to ensure
|
||||||
|
// compatibility.
|
||||||
|
////////////////////////////////////////////////////////////////////
|
||||||
|
string PandaSystem::
|
||||||
|
get_package_version_string() {
|
||||||
|
return PANDA_PACKAGE_VERSION_STR;
|
||||||
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
// Function: PandaSystem::get_major_version
|
// Function: PandaSystem::get_major_version
|
||||||
// Access: Published, Static
|
// Access: Published, Static
|
||||||
|
@ -33,6 +33,7 @@ protected:
|
|||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
static string get_version_string();
|
static string get_version_string();
|
||||||
|
static string get_package_version_string();
|
||||||
|
|
||||||
static int get_major_version();
|
static int get_major_version();
|
||||||
static int get_minor_version();
|
static int get_minor_version();
|
||||||
|
@ -60,6 +60,11 @@ $[cdefine PANDA_OFFICIAL_VERSION]
|
|||||||
/* This is a string indicating who has provided this distribution. */
|
/* This is a string indicating who has provided this distribution. */
|
||||||
# define PANDA_DISTRIBUTOR "$[PANDA_DISTRIBUTOR]"
|
# define PANDA_DISTRIBUTOR "$[PANDA_DISTRIBUTOR]"
|
||||||
|
|
||||||
|
/* The string indicating the version number of the associated Panda3D
|
||||||
|
distributable package, or empty string if there is no associated
|
||||||
|
package. */
|
||||||
|
# define PANDA_PACKAGE_VERSION_STR "$[PANDA_PACKAGE_VERSION]"
|
||||||
|
|
||||||
#end pandaVersion.h
|
#end pandaVersion.h
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user