2008-10-13 16:45:48 +00:00
|
|
|
|
2009-01-19 19:34:34 +00:00
|
|
|
// Actually just a dummyy, used by the compiler to build the precompiled header.
|
2008-10-13 16:45:48 +00:00
|
|
|
|
|
|
|
#include "AssimpPCH.h"
|
2009-01-19 19:34:34 +00:00
|
|
|
#include "./../include/aiVersion.h"
|
2008-10-13 16:45:48 +00:00
|
|
|
|
2009-01-19 19:34:34 +00:00
|
|
|
// --------------------------------------------------------------------------------
|
|
|
|
// Legal information string - dont't remove from image!
|
2008-10-13 16:45:48 +00:00
|
|
|
static const char* LEGAL_INFORMATION =
|
|
|
|
|
2008-11-29 15:30:50 +00:00
|
|
|
"Open Asset Import Library (ASSIMP).\n"
|
|
|
|
"A free C/C++ library to import various 3D file formats into applications\n\n"
|
2008-10-13 16:45:48 +00:00
|
|
|
|
2008-11-29 15:30:50 +00:00
|
|
|
"(c) ASSIMP Development Team, 2008-2009\n"
|
2009-01-19 19:34:34 +00:00
|
|
|
"License: BSD\n"
|
2008-11-29 15:30:50 +00:00
|
|
|
"Website: http://assimp.sourceforge.net\n"
|
2008-10-13 16:45:48 +00:00
|
|
|
;
|
2008-11-29 15:30:50 +00:00
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2009-01-19 19:34:34 +00:00
|
|
|
// Get legal string
|
|
|
|
ASSIMP_API const char* aiGetLegalString () {
|
2008-11-29 15:30:50 +00:00
|
|
|
return LEGAL_INFORMATION;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2009-01-19 19:34:34 +00:00
|
|
|
// Get Assimp minor version
|
|
|
|
ASSIMP_API unsigned int aiGetVersionMinor () {
|
2008-11-29 15:30:50 +00:00
|
|
|
return 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
// ------------------------------------------------------------------------------------------------
|
2009-01-19 19:34:34 +00:00
|
|
|
// Get Assimp major version
|
|
|
|
ASSIMP_API unsigned int aiGetVersionMajor () {
|
2008-11-29 15:30:50 +00:00
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2009-01-19 19:34:34 +00:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
// 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;
|
|
|
|
}
|
|
|
|
|
2008-11-29 15:30:50 +00:00
|
|
|
// ------------------------------------------------------------------------------------------------
|
|
|
|
ASSIMP_API unsigned int aiGetVersionRevision ()
|
|
|
|
{
|
|
|
|
// TODO: find a way to update the revision number automatically
|
2009-01-19 19:34:34 +00:00
|
|
|
return 306;
|
2008-11-29 15:30:50 +00:00
|
|
|
}
|
|
|
|
|