From David Callu, improved consistency of Version strings and add version support
for osgIntrospection and osgManipulator.
This commit is contained in:
@@ -28,7 +28,7 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) library
|
||||
# Check for the OpenSceneGraph (OSG) DB library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgDBGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph DB library not found. See http://www.openscenegraph.org)],)
|
||||
|
||||
46
include/osgFX/Version
Normal file
46
include/osgFX/Version
Normal file
@@ -0,0 +1,46 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef OSGFX_VERSION
|
||||
#define OSGFX_VERSION 1
|
||||
|
||||
#include <osgFX/Export>
|
||||
|
||||
extern "C" {
|
||||
|
||||
/**
|
||||
* osgFXGetVersion() returns the library version number.
|
||||
* Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgFXGetVersion.
|
||||
*
|
||||
* This C function can be also used to check for the existence of the OpenSceneGraph
|
||||
* library using autoconf and its m4 macro AC_CHECK_LIB.
|
||||
*
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) FX library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgFXGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph FX library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGFX_EXPORT const char* osgFXGetVersion();
|
||||
|
||||
/**
|
||||
* getLibraryName() returns the library name in human friendly form.
|
||||
*/
|
||||
extern OSGFX_EXPORT const char* osgFXGetLibraryName();
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -29,10 +29,10 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) utility library
|
||||
# Check for the OpenSceneGraph (OSG) GA library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgGAGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph utility library not found. See http://www.openscenegraph.org)],)
|
||||
[AC_MSG_ERROR(OpenSceneGraph GA library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGGA_EXPORT const char* osgGAGetVersion();
|
||||
|
||||
48
include/osgIntrospection/Version
Normal file
48
include/osgIntrospection/Version
Normal file
@@ -0,0 +1,48 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef OSGINTROSPECTION_VERSION
|
||||
#define OSGINTROSPECTION_VERSION 1
|
||||
|
||||
#include <osgIntrospection/Export>
|
||||
|
||||
|
||||
extern "C" {
|
||||
|
||||
/**
|
||||
* osgIntrospectionGetVersion() returns the library version number.
|
||||
* Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgIntrospectionGetVersion.
|
||||
*
|
||||
* This C function can be also used to check for the existence of the OpenSceneGraph
|
||||
* library using autoconf and its m4 macro AC_CHECK_LIB.
|
||||
*
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) Introspection library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgIntrospectionGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph Introspection library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGINTROSPECTION_EXPORT const char* osgIntrospectionGetVersion();
|
||||
|
||||
/**
|
||||
* getLibraryName_osgIntrospection() returns the library name in human friendly form.
|
||||
*/
|
||||
extern OSGINTROSPECTION_EXPORT const char* osgIntrospectionGetLibraryName();
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
48
include/osgManipulator/Version
Normal file
48
include/osgManipulator/Version
Normal file
@@ -0,0 +1,48 @@
|
||||
/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield
|
||||
*
|
||||
* This library is open source and may be redistributed and/or modified under
|
||||
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
|
||||
* (at your option) any later version. The full license is in LICENSE file
|
||||
* included with this distribution, and on the openscenegraph.org website.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef OSGMANIPULATOR_VERSION
|
||||
#define OSGMANIPULATOR_VERSION 1
|
||||
|
||||
#include <osgManipulator/Export>
|
||||
|
||||
|
||||
extern "C" {
|
||||
|
||||
/**
|
||||
* osgManipulatorGetVersion() returns the library version number.
|
||||
* Numbering convention : OpenSceneGraph-1.0 will return 1.0 from osgManipulatorGetVersion.
|
||||
*
|
||||
* This C function can be also used to check for the existence of the OpenSceneGraph
|
||||
* library using autoconf and its m4 macro AC_CHECK_LIB.
|
||||
*
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) Manipulator library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgManipulatorGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph Manipulator library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGMANIPULATOR_EXPORT const char* osgManipulatorGetVersion();
|
||||
|
||||
/**
|
||||
* osgManipulatorGetLibraryName() returns the library name in human friendly form.
|
||||
*/
|
||||
extern OSGMANIPULATOR_EXPORT const char* osgManipulatorGetLibraryName();
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -29,10 +29,10 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph Terrain library
|
||||
# Check for the OpenSceneGraph Particle library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgParticleGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph Terrain library not found. See http://www.openscenegraph.org)],)
|
||||
[AC_MSG_ERROR(OpenSceneGraph Particle library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
OSGPARTICLE_EXPORT const char* osgParticleGetVersion();
|
||||
|
||||
@@ -28,10 +28,10 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) library
|
||||
# Check for the OpenSceneGraph (OSG) Shadow library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgShadowGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph library not found. See http://www.openscenegraph.org)],)
|
||||
[AC_MSG_ERROR(OpenSceneGraph Shadow library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGSHADOW_EXPORT const char* osgShadowGetVersion();
|
||||
|
||||
@@ -28,10 +28,10 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph-Sim library
|
||||
# Check for the OpenSceneGraph (OSG) Sim library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgSimGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph library not found. See http://www.openscenegraph.org)],)
|
||||
[AC_MSG_ERROR(OpenSceneGraph Sim library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGSIM_EXPORT const char* osgSimGetVersion();
|
||||
|
||||
@@ -28,7 +28,7 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph Terrain library
|
||||
# Check for the OpenSceneGraph (OSG) Terrain library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgTerrainGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph Terrain library not found. See http://www.openscenegraph.org)],)
|
||||
|
||||
@@ -28,10 +28,10 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) library
|
||||
# Check for the OpenSceneGraph (OSG) Text library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgTextGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph library not found. See http://www.openscenegraph.org)],)
|
||||
[AC_MSG_ERROR(OpenSceneGraph Text library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGTEXT_EXPORT const char* osgTextGetVersion();
|
||||
|
||||
@@ -29,10 +29,10 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) utility library
|
||||
# Check for the OpenSceneGraph (OSG) Util library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgUtilGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph utility library not found. See http://www.openscenegraph.org)],)
|
||||
[AC_MSG_ERROR(OpenSceneGraph Util library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGUTIL_EXPORT const char* osgUtilGetVersion();
|
||||
|
||||
@@ -29,10 +29,10 @@ extern "C" {
|
||||
* Here is the code to add to your configure.in:
|
||||
\verbatim
|
||||
#
|
||||
# Check for the OpenSceneGraph (OSG) utility library
|
||||
# Check for the OpenSceneGraph (OSG) Viewer library
|
||||
#
|
||||
AC_CHECK_LIB(osg, osgViewerGetVersion, ,
|
||||
[AC_MSG_ERROR(OpenSceneGraph utility library not found. See http://www.openscenegraph.org)],)
|
||||
[AC_MSG_ERROR(OpenSceneGraph Viewer library not found. See http://www.openscenegraph.org)],)
|
||||
\endverbatim
|
||||
*/
|
||||
extern OSGVIEWER_EXPORT const char* osgViewerGetVersion();
|
||||
|
||||
Reference in New Issue
Block a user