Moved some defines into the core, away from the public stuff.
Fixed build error regarding zutil.c with vc9. Updated VC9 project files (again ...) Moved version getters to aiVersion.h. Deleted redundant fast_atof.h from irrXML. Added vc9 config for cppunit Fixed a missing include when building against stlport git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@307 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
This commit is contained in:
@@ -1,47 +1,68 @@
|
||||
|
||||
|
||||
|
||||
// This is a dummy unit - it is used to generate the precompiled header file.
|
||||
// + it contains version management functions
|
||||
// Actually just a dummyy, used by the compiler to build the precompiled header.
|
||||
|
||||
#include "AssimpPCH.h"
|
||||
#include "./../include/aiVersion.h"
|
||||
|
||||
// ################################################################################
|
||||
// Legal information string
|
||||
// Note that this string must be contained in the compiled image.
|
||||
// --------------------------------------------------------------------------------
|
||||
// Legal information string - dont't remove from image!
|
||||
static const char* LEGAL_INFORMATION =
|
||||
|
||||
"Open Asset Import Library (ASSIMP).\n"
|
||||
"A free C/C++ library to import various 3D file formats into applications\n\n"
|
||||
|
||||
"(c) ASSIMP Development Team, 2008-2009\n"
|
||||
"License: modified BSD license (http://assimp.sourceforge.net/main_license.html)\n"
|
||||
"License: BSD\n"
|
||||
"Website: http://assimp.sourceforge.net\n"
|
||||
;
|
||||
// ################################################################################
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
ASSIMP_API const char* aiGetLegalString ()
|
||||
{
|
||||
// Get legal string
|
||||
ASSIMP_API const char* aiGetLegalString () {
|
||||
return LEGAL_INFORMATION;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
ASSIMP_API unsigned int aiGetVersionMinor ()
|
||||
{
|
||||
// Get Assimp minor version
|
||||
ASSIMP_API unsigned int aiGetVersionMinor () {
|
||||
return 5;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
ASSIMP_API unsigned int aiGetVersionMajor ()
|
||||
{
|
||||
// Get Assimp major version
|
||||
ASSIMP_API unsigned int aiGetVersionMajor () {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
// Get flags used for compilation
|
||||
ASSIMP_API unsigned int aiGetCompileFlags () {
|
||||
|
||||
unsigned int flags = 0;
|
||||
|
||||
#ifdef ASSIMP_BUILD_BOOST_WORKAROUND
|
||||
flags |= ASSIMP_CFLAGS_NOBOOST;
|
||||
#endif
|
||||
#ifdef ASSIMP_BUILD_SINGLETHREADED
|
||||
flags |= ASSIMP_CFLAGS_SINGLETHREADED;
|
||||
#endif
|
||||
#ifdef ASSIMP_BUILD_DEBUG
|
||||
flags |= ASSIMP_CFLAGS_DEBUG;
|
||||
#endif
|
||||
#ifdef ASSIMP_BUILD_DLL_EXPORT
|
||||
flags |= ASSIMP_CFLAGS_SHARED;
|
||||
#endif
|
||||
#ifdef _STLPORT_VERSION
|
||||
flags |= ASSIMP_CFLAGS_STLPORT;
|
||||
#endif
|
||||
|
||||
return flags;
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------------------------------
|
||||
ASSIMP_API unsigned int aiGetVersionRevision ()
|
||||
{
|
||||
// TODO: find a way to update the revision number automatically
|
||||
return 254;
|
||||
return 306;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user