AssimpPCH.h 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. ---------------------------------------------------------------------------
  3. Open Asset Import Library (ASSIMP)
  4. ---------------------------------------------------------------------------
  5. Copyright (c) 2006-2008, ASSIMP Development Team
  6. All rights reserved.
  7. Redistribution and use of this software in source and binary forms,
  8. with or without modification, are permitted provided that the following
  9. conditions are met:
  10. * Redistributions of source code must retain the above
  11. copyright notice, this list of conditions and the
  12. following disclaimer.
  13. * Redistributions in binary form must reproduce the above
  14. copyright notice, this list of conditions and the
  15. following disclaimer in the documentation and/or other
  16. materials provided with the distribution.
  17. * Neither the name of the ASSIMP team, nor the names of its
  18. contributors may be used to endorse or promote products
  19. derived from this software without specific prior
  20. written permission of the ASSIMP Development Team.
  21. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  22. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  23. LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  24. A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  25. OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  26. SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  27. LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  28. DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  29. THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  30. (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  31. OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  32. ---------------------------------------------------------------------------
  33. */
  34. #ifndef ASSIMP_PCH_INCLUDED
  35. #define ASSIMP_PCH_INCLUDED
  36. #define ASSIMP_INTERNAL_BUILD
  37. #ifdef ASSIMP_BUILD_DLL_EXPORT
  38. # if _MSC_VER >= 1400
  39. # pragma message( "AssimpBuild: Building Windows DLL" )
  40. # endif
  41. #endif
  42. // *******************************************************************
  43. // Print detailled memory allocation statistics? In this case we'll
  44. // need to overload all C++ memory management functions. It is assumed
  45. // that old C routines, such as malloc(), are NOT used in Assimp.
  46. // *******************************************************************
  47. #ifdef ASSIMP_BUILD_MEMORY_STATISTICS
  48. void *operator new (size_t);
  49. void operator delete (void *);
  50. void *operator new[] (size_t);
  51. void operator delete[] (void *);
  52. # if _MSC_VER >= 1400
  53. # pragma message( "AssimpBuild: Memory tracking enabled" )
  54. # endif
  55. #endif
  56. #if _MSC_VER >= 1400
  57. # ifdef _DEBUG
  58. # pragma message( "AssimpBuild: Debug build" )
  59. # else
  60. # pragma message( "AssimpBuild: Release build" )
  61. # endif
  62. #endif
  63. // *******************************************************************
  64. // If we have at least VC8 some C string manipulation functions
  65. // are mapped to their safe _s counterparts (e.g. _itoa_s).
  66. // *******************************************************************
  67. #if _MSC_VER >= 1400 && !(defined _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
  68. # define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
  69. #endif
  70. // *******************************************************************
  71. // STL headers - we need quite a lot of them
  72. // *******************************************************************
  73. #include <vector>
  74. #include <list>
  75. #include <map>
  76. #include <string>
  77. #include <sstream>
  78. #include <iomanip>
  79. #include <cassert>
  80. #include <stack>
  81. #include <queue>
  82. #include <iostream>
  83. #include <algorithm>
  84. // *******************************************************************
  85. // public ASSIMP headers
  86. // *******************************************************************
  87. #include "../include/DefaultLogger.h"
  88. #include "../include/IOStream.h"
  89. #include "../include/IOSystem.h"
  90. #include "../include/aiScene.h"
  91. #include "../include/aiPostProcess.h"
  92. #include "../include/assimp.hpp"
  93. // *******************************************************************
  94. // internal headers that are nearly always required
  95. // *******************************************************************
  96. #include "BaseImporter.h"
  97. #include "MaterialSystem.h"
  98. #include "StringComparison.h"
  99. #include "StreamReader.h"
  100. #include "qnan.h"
  101. // *******************************************************************
  102. // boost headers - take them from the workaround dir if possible
  103. // *******************************************************************
  104. #ifdef ASSIMP_BUILD_BOOST_WORKAROUND
  105. #if _MSC_VER >= 1400
  106. # pragma message( "AssimpBuild: Using -noBoost workaround" )
  107. #endif
  108. # include "../include/BoostWorkaround/boost/scoped_ptr.hpp"
  109. # include "../include/BoostWorkaround/boost/scoped_array.hpp"
  110. # include "../include/BoostWorkaround/boost/format.hpp"
  111. # include "../include/BoostWorkaround/boost/foreach.hpp"
  112. #else
  113. #if _MSC_VER >= 1400
  114. # pragma message( "AssimpBuild: Using standard boost headers" )
  115. #endif
  116. # include <boost/scoped_ptr.hpp>
  117. # include <boost/scoped_array.hpp>
  118. # include <boost/format.hpp>
  119. # include <boost/foreach.hpp>
  120. #endif
  121. #endif // !! ASSIMP_PCH_INCLUDED