Kimkulling/mark blender versions as not supported (#5370)
* Cleanup defs + add deprecated macro * Remove empty line * Remove dead code --------- Co-authored-by: Kim Kulling <kim.kulling@draeger.com>kimkulling/fix_logstream_leak_issue-5700
parent
ed3fccd5db
commit
cd0ef869e3
|
@ -1396,6 +1396,7 @@ IF (ASSIMP_WARNINGS_AS_ERRORS)
|
||||||
-Wno-unused-template
|
-Wno-unused-template
|
||||||
-Wno-undefined-func-template
|
-Wno-undefined-func-template
|
||||||
-Wno-declaration-after-statement
|
-Wno-declaration-after-statement
|
||||||
|
-Wno-deprecated-declarations
|
||||||
)
|
)
|
||||||
ELSE()
|
ELSE()
|
||||||
TARGET_COMPILE_OPTIONS(assimp PRIVATE /W4 /WX)
|
TARGET_COMPILE_OPTIONS(assimp PRIVATE /W4 /WX)
|
||||||
|
@ -1417,9 +1418,7 @@ TARGET_INCLUDE_DIRECTORIES ( assimp PUBLIC
|
||||||
IF(ASSIMP_HUNTER_ENABLED)
|
IF(ASSIMP_HUNTER_ENABLED)
|
||||||
TARGET_LINK_LIBRARIES(assimp
|
TARGET_LINK_LIBRARIES(assimp
|
||||||
PUBLIC
|
PUBLIC
|
||||||
#polyclipping::polyclipping
|
|
||||||
openddlparser::openddl_parser
|
openddlparser::openddl_parser
|
||||||
#poly2tri::poly2tri
|
|
||||||
minizip::minizip
|
minizip::minizip
|
||||||
ZLIB::zlib
|
ZLIB::zlib
|
||||||
RapidJSON::rapidjson
|
RapidJSON::rapidjson
|
||||||
|
|
|
@ -55,8 +55,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include <assimp/config.h>
|
#include <assimp/config.h>
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
/* Define ASSIMP_BUILD_NO_XX_IMPORTER to disable a specific
|
/**
|
||||||
* file format loader. The loader is be excluded from the
|
* @brief Define ASSIMP_BUILD_NO_XX_IMPORTER to disable a specific file format loader.
|
||||||
|
*
|
||||||
|
* The loader is be excluded from the
|
||||||
* build in this case. 'XX' stands for the most common file
|
* build in this case. 'XX' stands for the most common file
|
||||||
* extension of the file format. E.g.:
|
* extension of the file format. E.g.:
|
||||||
* ASSIMP_BUILD_NO_X_IMPORTER disables the X loader.
|
* ASSIMP_BUILD_NO_X_IMPORTER disables the X loader.
|
||||||
|
@ -93,17 +95,16 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
# define ASSIMP_BUILD_NEED_UNZIP
|
# define ASSIMP_BUILD_NEED_UNZIP
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// We need those constants, workaround for any platforms where nobody defined them yet
|
/**
|
||||||
|
* @brief We need those constants, workaround for any platforms where nobody defined them yet.
|
||||||
|
*/
|
||||||
#if (!defined SIZE_MAX)
|
#if (!defined SIZE_MAX)
|
||||||
# define SIZE_MAX (~((size_t)0))
|
# define SIZE_MAX (~((size_t)0))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*#if (!defined UINT_MAX)
|
|
||||||
#define UINT_MAX (~((unsigned int)0))
|
|
||||||
#endif*/
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
/* Define ASSIMP_BUILD_NO_XX_PROCESS to disable a specific
|
/** @brief Define ASSIMP_BUILD_NO_XX_PROCESS to disable a specific
|
||||||
|
*
|
||||||
* post processing step. This is the current list of process names ('XX'):
|
* post processing step. This is the current list of process names ('XX'):
|
||||||
* CALCTANGENTS
|
* CALCTANGENTS
|
||||||
* JOINVERTICES
|
* JOINVERTICES
|
||||||
|
@ -134,22 +135,21 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
* OPTIMIZEGRAPH
|
* OPTIMIZEGRAPH
|
||||||
* GENENTITYMESHES
|
* GENENTITYMESHES
|
||||||
* FIXTEXTUREPATHS
|
* FIXTEXTUREPATHS
|
||||||
* GENBOUNDINGBOXES */
|
* GENBOUNDINGBOXES
|
||||||
//////////////////////////////////////////////////////////////////////////
|
*/
|
||||||
|
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
||||||
|
/** @brief Define 'ASSIMP_BUILD_DLL_EXPORT' to build a DLL of the library
|
||||||
|
*
|
||||||
|
* Define 'ASSIMP_DLL' before including Assimp to link to ASSIMP in
|
||||||
|
* an external DLL under Windows. Default is static linkage.
|
||||||
|
*/
|
||||||
|
//////////////////////////////////////////////////////////////////////////
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
# undef ASSIMP_API
|
# undef ASSIMP_API
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
/* Define 'ASSIMP_BUILD_DLL_EXPORT' to build a DLL of the library */
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
# ifdef ASSIMP_BUILD_DLL_EXPORT
|
# ifdef ASSIMP_BUILD_DLL_EXPORT
|
||||||
# define ASSIMP_API __declspec(dllexport)
|
# define ASSIMP_API __declspec(dllexport)
|
||||||
# define ASSIMP_API_WINONLY __declspec(dllexport)
|
# define ASSIMP_API_WINONLY __declspec(dllexport)
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
/* Define 'ASSIMP_DLL' before including Assimp to link to ASSIMP in
|
|
||||||
* an external DLL under Windows. Default is static linkage. */
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
# elif (defined ASSIMP_DLL)
|
# elif (defined ASSIMP_DLL)
|
||||||
# define ASSIMP_API __declspec(dllimport)
|
# define ASSIMP_API __declspec(dllimport)
|
||||||
# define ASSIMP_API_WINONLY __declspec(dllimport)
|
# define ASSIMP_API_WINONLY __declspec(dllimport)
|
||||||
|
@ -157,23 +157,28 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
# define ASSIMP_API
|
# define ASSIMP_API
|
||||||
# define ASSIMP_API_WINONLY
|
# define ASSIMP_API_WINONLY
|
||||||
# endif
|
# endif
|
||||||
#elif defined(SWIG)
|
|
||||||
/* Do nothing, the relevant defines are all in AssimpSwigPort.i */
|
|
||||||
#else
|
#else
|
||||||
# define ASSIMP_API __attribute__((visibility("default")))
|
# define ASSIMP_API __attribute__((visibility("default")))
|
||||||
# define ASSIMP_API_WINONLY
|
# define ASSIMP_API_WINONLY
|
||||||
#endif // _WIN32
|
#endif // _WIN32
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Helper macros
|
||||||
|
*
|
||||||
|
* @def AI_FORCE_INLINE
|
||||||
|
* @brief Force the compiler to inline a function, if possible
|
||||||
|
*
|
||||||
|
* @def AI_WONT_RETURN
|
||||||
|
* @brief Tells the compiler that a function never returns.
|
||||||
|
*
|
||||||
|
* Used in code analysis to skip dead paths (e.g. after an assertion evaluated to false).
|
||||||
|
*/
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
#pragma warning(disable : 4521 4512 4714 4127 4351 4510)
|
#pragma warning(disable : 4521 4512 4714 4127 4351 4510)
|
||||||
#ifdef ASSIMP_BUILD_DLL_EXPORT
|
#ifdef ASSIMP_BUILD_DLL_EXPORT
|
||||||
#pragma warning(disable : 4251)
|
#pragma warning(disable : 4251)
|
||||||
#endif
|
#endif
|
||||||
/* Force the compiler to inline a function, if possible */
|
|
||||||
#define AI_FORCE_INLINE inline
|
#define AI_FORCE_INLINE inline
|
||||||
|
|
||||||
/* Tells the compiler that a function never returns. Used in code analysis
|
|
||||||
* to skip dead paths (e.g. after an assertion evaluated to false). */
|
|
||||||
#define AI_WONT_RETURN __declspec(noreturn)
|
#define AI_WONT_RETURN __declspec(noreturn)
|
||||||
#elif defined(SWIG)
|
#elif defined(SWIG)
|
||||||
/* Do nothing, the relevant defines are all in AssimpSwigPort.i */
|
/* Do nothing, the relevant defines are all in AssimpSwigPort.i */
|
||||||
|
@ -236,9 +241,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
/* Define ASSIMP_BUILD_SINGLETHREADED to compile assimp
|
/**
|
||||||
|
* Define ASSIMP_BUILD_SINGLETHREADED to compile assimp
|
||||||
* without threading support. The library doesn't utilize
|
* without threading support. The library doesn't utilize
|
||||||
* threads then and is itself not threadsafe. */
|
* threads then and is itself not threadsafe.
|
||||||
|
*/
|
||||||
//////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////
|
||||||
#ifndef ASSIMP_BUILD_SINGLETHREADED
|
#ifndef ASSIMP_BUILD_SINGLETHREADED
|
||||||
# define ASSIMP_BUILD_SINGLETHREADED
|
# define ASSIMP_BUILD_SINGLETHREADED
|
||||||
|
@ -294,7 +301,11 @@ constexpr ai_real ai_epsilon = (ai_real) 1e-6;
|
||||||
# define ai_epsilon ((ai_real)1e-6)
|
# define ai_epsilon ((ai_real)1e-6)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Support for big-endian builds */
|
/**
|
||||||
|
* @brief Support for big-endian builds
|
||||||
|
*
|
||||||
|
* This will check which byte ordering is used on the target architecture.
|
||||||
|
*/
|
||||||
#if defined(__BYTE_ORDER__)
|
#if defined(__BYTE_ORDER__)
|
||||||
# if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
# if (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
|
||||||
# if !defined(__BIG_ENDIAN__)
|
# if !defined(__BIG_ENDIAN__)
|
||||||
|
@ -311,7 +322,8 @@ constexpr ai_real ai_epsilon = (ai_real) 1e-6;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* To avoid running out of memory
|
* @brief To avoid running out of memory
|
||||||
|
*
|
||||||
* This can be adjusted for specific use cases
|
* This can be adjusted for specific use cases
|
||||||
* It's NOT a total limit, just a limit for individual allocations
|
* It's NOT a total limit, just a limit for individual allocations
|
||||||
*/
|
*/
|
||||||
|
@ -332,7 +344,7 @@ constexpr ai_real ai_epsilon = (ai_real) 1e-6;
|
||||||
#endif // _MSC_VER
|
#endif // _MSC_VER
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Helper macro to set a pointer to NULL in debug builds
|
* @brief Helper macro to set a pointer to NULL in debug builds
|
||||||
*/
|
*/
|
||||||
#if (defined ASSIMP_BUILD_DEBUG)
|
#if (defined ASSIMP_BUILD_DEBUG)
|
||||||
# define AI_DEBUG_INVALIDATE_PTR(x) x = NULL;
|
# define AI_DEBUG_INVALIDATE_PTR(x) x = NULL;
|
||||||
|
@ -342,4 +354,18 @@ constexpr ai_real ai_epsilon = (ai_real) 1e-6;
|
||||||
|
|
||||||
#define AI_COUNT_OF(X) (sizeof(X) / sizeof((X)[0]))
|
#define AI_COUNT_OF(X) (sizeof(X) / sizeof((X)[0]))
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Will mark functions or classes as deprecated.
|
||||||
|
*
|
||||||
|
* Deprecation means that we will remove this function, class or methods in the next m
|
||||||
|
*/
|
||||||
|
#if defined(__GNUC__) || defined(__clang__)
|
||||||
|
# define AI_DEPRECATED __attribute__((deprecated))
|
||||||
|
#elif defined(_MSC_VER)
|
||||||
|
# define AI_DEPRECATED __declspec(deprecated)
|
||||||
|
#else
|
||||||
|
# pragma message("WARNING: You need to implement DEPRECATED for this compiler")
|
||||||
|
# define AI_DEPRECATED
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // !! AI_DEFINES_H_INC
|
#endif // !! AI_DEFINES_H_INC
|
||||||
|
|
Loading…
Reference in New Issue