Fix the build.

pull/2506/head
Kim Kulling 2019-06-11 20:17:50 +02:00
parent f76d77955d
commit cc10967913
31 changed files with 64 additions and 86 deletions

View File

@ -990,6 +990,7 @@ MESSAGE(STATUS "Disabled exporter formats:${ASSIMP_EXPORTERS_DISABLED}")
SET( assimp_src SET( assimp_src
# Assimp Files # Assimp Files
${Core_SRCS} ${Core_SRCS}
${CApi_SRCS}
${Common_SRCS} ${Common_SRCS}
${Logging_SRCS} ${Logging_SRCS}
${Exporter_SRCS} ${Exporter_SRCS}

View File

@ -1,6 +1,6 @@
ply ply
format ascii 1.0 format ascii 1.0
comment Created by Open Asset Import Library - http://assimp.sf.net (v4.1.3297435427) comment Created by Open Asset Import Library - http://assimp.sf.net (v4.1.4151146389)
element vertex 8 element vertex 8
property float x property float x
property float y property float y

View File

@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "Importer.h" #include "Common/Importer.h"
#include "TestIOSystem.h" #include "TestIOSystem.h"
using namespace ::Assimp; using namespace ::Assimp;

View File

@ -41,11 +41,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "BlenderIntermediate.h" #include "Blender/BlenderIntermediate.h"
#include "./../include/assimp/camera.h" #include <assimp/camera.h>
#include "./../include/assimp/light.h" #include <assimp/light.h>
#include "./../include/assimp/mesh.h" #include <assimp/mesh.h>
#include "./../include/assimp/texture.h" #include <assimp/texture.h>
using namespace ::Assimp; using namespace ::Assimp;
using namespace ::Assimp::Blender; using namespace ::Assimp::Blender;

View File

@ -48,7 +48,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <assimp/scene.h> #include <assimp/scene.h>
#include <assimp/postprocess.h> #include <assimp/postprocess.h>
#include "D3MFExporter.h" #include "3MF/D3MFExporter.h"
class utD3MFImporterExporter : public AbstractImportExportBase { class utD3MFImporterExporter : public AbstractImportExportBase {
public: public:

View File

@ -42,8 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <FindDegenerates.h> #include "PostProcessing/FindDegenerates.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;

View File

@ -42,9 +42,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <FindInvalidDataProcess.h> #include "PostProcessing/FindInvalidDataProcess.h"
#include "../../include/assimp/mesh.h" #include <assimp/mesh.h>
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;
@ -61,8 +60,7 @@ protected:
}; };
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
void FindInvalidDataProcessTest::SetUp() void FindInvalidDataProcessTest::SetUp() {
{
ASSERT_TRUE( AI_MAX_NUMBER_OF_TEXTURECOORDS >= 3); ASSERT_TRUE( AI_MAX_NUMBER_OF_TEXTURECOORDS >= 3);
piProcess = new FindInvalidDataProcess(); piProcess = new FindInvalidDataProcess();

View File

@ -41,7 +41,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <GenVertexNormalsProcess.h>
#include "PostProcessing/GenVertexNormalsProcess.h"
using namespace ::std; using namespace ::std;
using namespace ::Assimp; using namespace ::Assimp;

View File

@ -43,14 +43,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <JoinVerticesProcess.h>
#include "PostProcessing/JoinVerticesProcess.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;
class JoinVerticesTest : public ::testing::Test class JoinVerticesTest : public ::testing::Test {
{
public: public:
virtual void SetUp(); virtual void SetUp();
virtual void TearDown(); virtual void TearDown();

View File

@ -43,7 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <LimitBoneWeightsProcess.h> #include "PostProcessing/LimitBoneWeightsProcess.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;

View File

@ -43,13 +43,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <MaterialSystem.h> #include "Material/MaterialSystem.h"
using namespace ::std; using namespace ::std;
using namespace ::Assimp; using namespace ::Assimp;
class MaterialSystemTest : public ::testing::Test class MaterialSystemTest : public ::testing::Test {
{
public: public:
virtual void SetUp() { this->pcMat = new aiMaterial(); } virtual void SetUp() { this->pcMat = new aiMaterial(); }
virtual void TearDown() { delete this->pcMat; } virtual void TearDown() { delete this->pcMat; }

View File

@ -41,8 +41,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "ObjTools.h" #include "Obj/ObjTools.h"
#include "ObjFileParser.h" #include "Obj/ObjFileParser.h"
using namespace ::Assimp; using namespace ::Assimp;

View File

@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "SceneDiffer.h" #include "SceneDiffer.h"
#include "AbstractImportExportBase.h" #include "AbstractImportExportBase.h"
#include "MMDImporter.h" #include "MMD/MMDImporter.h"
#include <assimp/Importer.hpp> #include <assimp/Importer.hpp>

View File

@ -43,7 +43,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <PretransformVertices.h> #include "PostProcessing/PretransformVertices.h"
using namespace std; using namespace std;

View File

@ -43,22 +43,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <RemoveVCProcess.h> #include "PostProcessing/RemoveVCProcess.h"
#include <MaterialSystem.h> #include "Material/MaterialSystem.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;
class RemoveVCProcessTest : public ::testing::Test class RemoveVCProcessTest : public ::testing::Test {
{
public: public:
virtual void SetUp(); virtual void SetUp();
virtual void TearDown(); virtual void TearDown();
protected: protected:
RemoveVCProcess* piProcess; RemoveVCProcess* piProcess;
aiScene* pScene; aiScene* pScene;
}; };

View File

@ -43,24 +43,19 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <RemoveRedundantMaterials.h> #include "PostProcessing/RemoveRedundantMaterials.h"
#include <MaterialSystem.h> #include "Material/MaterialSystem.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;
class RemoveRedundantMatsTest : public ::testing::Test class RemoveRedundantMatsTest : public ::testing::Test {
{
public: public:
virtual void SetUp(); virtual void SetUp();
virtual void TearDown(); virtual void TearDown();
protected: protected:
RemoveRedundantMatsProcess* piProcess; RemoveRedundantMatsProcess* piProcess;
aiScene* pcScene1; aiScene* pcScene1;
}; };

View File

@ -41,7 +41,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "code/RemoveVCProcess.h" #include "PostProcessing/RemoveVCProcess.h"
#include <assimp/mesh.h> #include <assimp/mesh.h>
#include <assimp/scene.h> #include <assimp/scene.h>

View File

@ -42,9 +42,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "SIBImporter.h" #include "SIB/SIBImporter.h"
#include <assimp/Importer.hpp> #include <assimp/Importer.hpp>
#include <assimp/postprocess.h> #include <assimp/postprocess.h>
#include "AbstractImportExportBase.h" #include "AbstractImportExportBase.h"
using namespace ::Assimp; using namespace ::Assimp;

View File

@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "SMDLoader.h" #include "SMD/SMDLoader.h"
#include <assimp/Importer.hpp> #include <assimp/Importer.hpp>
#include <assimp/postprocess.h> #include <assimp/postprocess.h>
#include "AbstractImportExportBase.h" #include "AbstractImportExportBase.h"

View File

@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "ScaleProcess.h" #include "PostProcessing/ScaleProcess.h"
#include "TestModelFactory.h" #include "TestModelFactory.h"
namespace Assimp { namespace Assimp {

View File

@ -45,7 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <assimp/mesh.h> #include <assimp/mesh.h>
#include <assimp/scene.h> #include <assimp/scene.h>
#include <assimp/Importer.hpp> #include <assimp/Importer.hpp>
#include <ScenePreprocessor.h> #include "Common/ScenePreprocessor.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;

View File

@ -43,21 +43,18 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <BaseProcess.h>
#include "Common/BaseProcess.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;
class SharedPPDataTest : public ::testing::Test class SharedPPDataTest : public ::testing::Test {
{
public: public:
virtual void SetUp(); virtual void SetUp();
virtual void TearDown(); virtual void TearDown();
protected: protected:
SharedPostProcessInfo* shared; SharedPostProcessInfo* shared;
}; };

View File

@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "simd.h" #include "Common/simd.h"
using namespace ::Assimp; using namespace ::Assimp;

View File

@ -43,29 +43,25 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <ScenePreprocessor.h> #include "Common/ScenePreprocessor.h"
#include <SortByPTypeProcess.h> #include "PostProcessing/SortByPTypeProcess.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;
class SortByPTypeProcessTest : public ::testing::Test class SortByPTypeProcessTest : public ::testing::Test {
{
public: public:
virtual void SetUp(); virtual void SetUp();
virtual void TearDown(); virtual void TearDown();
protected: protected:
SortByPTypeProcess* process1; SortByPTypeProcess* process1;
aiScene* scene; aiScene* scene;
}; };
// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------------------------------------------
static unsigned int num[10][4] = static unsigned int num[10][4] = {
{
{0,0,0,1000}, {0,0,0,1000},
{0,0,1000,0}, {0,0,1000,0},
{0,1000,0,0}, {0,1000,0,0},

View File

@ -43,16 +43,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <SplitLargeMeshes.h> #include "PostProcessing/SplitLargeMeshes.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;
class SplitLargeMeshesTest : public ::testing::Test class SplitLargeMeshesTest : public ::testing::Test {
{
public: public:
virtual void SetUp(); virtual void SetUp();
virtual void TearDown(); virtual void TearDown();

View File

@ -43,7 +43,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include <assimp/scene.h> #include <assimp/scene.h>
#include <TriangulateProcess.h>
#include "PostProcessing/TriangulateProcess.h"
using namespace std; using namespace std;

View File

@ -42,19 +42,16 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "UnitTestPCH.h" #include "UnitTestPCH.h"
#include "assimp/types.h" #include <assimp/types.h>
#include "assimp/mesh.h" #include <assimp/mesh.h>
#include <VertexTriangleAdjacency.h>
#include "Common/VertexTriangleAdjacency.h"
using namespace std; using namespace std;
using namespace Assimp; using namespace Assimp;
class VTAdjacencyTest : public ::testing::Test class VTAdjacencyTest : public ::testing::Test {
{
protected: protected:
void checkMesh(const aiMesh& mesh); void checkMesh(const aiMesh& mesh);
}; };

View File

@ -53,7 +53,7 @@ const char* AICMD_MSG_CMPDUMP_HELP =
"\tCompare two short dumps produced with \'assimp dump <..> -s\' for equality.\n" "\tCompare two short dumps produced with \'assimp dump <..> -s\' for equality.\n"
; ;
#include "../../code/assbin_chunks.h" #include "Common/assbin_chunks.h"
//////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
#include "generic_inserter.hpp" #include "generic_inserter.hpp"
@ -62,7 +62,7 @@ const char* AICMD_MSG_CMPDUMP_HELP =
#include <stack> #include <stack>
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>
#include "../../include/assimp/ai_assert.h" #include <assimp/ai_assert.h>
// get << for aiString // get << for aiString
template <typename char_t, typename traits_t> template <typename char_t, typename traits_t>

View File

@ -46,7 +46,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include "Main.h" #include "Main.h"
#include "../code/ProcessHelper.h" #include "PostProcessing/ProcessHelper.h"
const char* AICMD_MSG_DUMP_HELP = const char* AICMD_MSG_DUMP_HELP =
"assimp dump <model> [<out>] [-b] [-s] [-z] [common parameters]\n" "assimp dump <model> [<out>] [-b] [-s] [-z] [common parameters]\n"
@ -59,7 +59,7 @@ const char* AICMD_MSG_DUMP_HELP =
"\t -cfull Fires almost all post processing steps \n" "\t -cfull Fires almost all post processing steps \n"
; ;
#include "../../code/assbin_chunks.h" #include "Common/assbin_chunks.h"
FILE* out = NULL; FILE* out = NULL;
bool shortened = false; bool shortened = false;

View File

@ -41,11 +41,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "assimp_view.h" #include "assimp_view.h"
#include "GenFaceNormalsProcess.h" #include "PostProcessing/GenFaceNormalsProcess.h"
#include "GenVertexNormalsProcess.h" #include "PostProcessing/GenVertexNormalsProcess.h"
#include "JoinVerticesProcess.h" #include "PostProcessing/JoinVerticesProcess.h"
#include "CalcTangentsProcess.h" #include "PostProcessing/CalcTangentsProcess.h"
#include "MakeVerboseFormat.h" #include "PostProcessing/MakeVerboseFormat.h"
namespace AssimpView { namespace AssimpView {

View File

@ -72,9 +72,8 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <assimp/LogStream.hpp> #include <assimp/LogStream.hpp>
#include <assimp/DefaultLogger.hpp> #include <assimp/DefaultLogger.hpp>
#include "Material/MaterialSystem.h" // aiMaterial class
#include "../../code/MaterialSystem.h" // aiMaterial class #include <assimp/StringComparison.h> // ASSIMP_stricmp and ASSIMP_strincmp
#include <assimp/StringComparison.h> // ASSIMP_stricmp and ASSIMP_strincmp
#include <time.h> #include <time.h>