AssimpPCH.cpp 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. // Actually just a dummy, used by the compiler to build the precompiled header.
  2. #include "AssimpPCH.h"
  3. #include "./../include/aiVersion.h"
  4. // --------------------------------------------------------------------------------
  5. // Legal information string - dont't remove from image!
  6. static const char* LEGAL_INFORMATION =
  7. "Open Asset Import Library (Assimp).\n"
  8. "A free C/C++ library to import various 3D file formats into applications\n\n"
  9. "(c) 2008-2010, ASSIMP Development Team\n"
  10. "License under the terms and conditions of the 3-clause BSD license\n"
  11. "http://assimp.sourceforge.net\n"
  12. ;
  13. // ------------------------------------------------------------------------------------------------
  14. // Get legal string
  15. ASSIMP_API const char* aiGetLegalString () {
  16. return LEGAL_INFORMATION;
  17. }
  18. // ------------------------------------------------------------------------------------------------
  19. // Get Assimp minor version
  20. ASSIMP_API unsigned int aiGetVersionMinor () {
  21. return 0;
  22. }
  23. // ------------------------------------------------------------------------------------------------
  24. // Get Assimp major version
  25. ASSIMP_API unsigned int aiGetVersionMajor () {
  26. return 2;
  27. }
  28. // ------------------------------------------------------------------------------------------------
  29. // Get flags used for compilation
  30. ASSIMP_API unsigned int aiGetCompileFlags () {
  31. unsigned int flags = 0;
  32. #ifdef ASSIMP_BUILD_BOOST_WORKAROUND
  33. flags |= ASSIMP_CFLAGS_NOBOOST;
  34. #endif
  35. #ifdef ASSIMP_BUILD_SINGLETHREADED
  36. flags |= ASSIMP_CFLAGS_SINGLETHREADED;
  37. #endif
  38. #ifdef ASSIMP_BUILD_DEBUG
  39. flags |= ASSIMP_CFLAGS_DEBUG;
  40. #endif
  41. #ifdef ASSIMP_BUILD_DLL_EXPORT
  42. flags |= ASSIMP_CFLAGS_SHARED;
  43. #endif
  44. #ifdef _STLPORT_VERSION
  45. flags |= ASSIMP_CFLAGS_STLPORT;
  46. #endif
  47. return flags;
  48. }
  49. // include current build revision, which is even updated from time to time -- :-)
  50. #include "../revision.h"
  51. // ------------------------------------------------------------------------------------------------
  52. ASSIMP_API unsigned int aiGetVersionRevision ()
  53. {
  54. return SVNRevision;
  55. }