Browse Source

assimp: Update include path

This changes the Assimp include path to point to the
directory containing assimp/ instead of inside assimp/
directly. This is for consistency with how the Assimp
project defines their "include path" and keeps the actual
inclusions themselves unambiguous (since Assimp's headers
have fairly generic filenames).
Sam Edwards 7 years ago
parent
commit
29beb0f043

+ 2 - 2
makepanda/makepanda.py

@@ -683,7 +683,7 @@ if (COMPILER == "MSVC"):
         path = GetThirdpartyDir() + "assimp/lib/IrrXML.lib"
         if os.path.isfile(path):
             LibName("ASSIMP", GetThirdpartyDir() + "assimp/lib/IrrXML.lib")
-        IncDirectory("ASSIMP", GetThirdpartyDir() + "assimp/include/assimp")
+        IncDirectory("ASSIMP", GetThirdpartyDir() + "assimp/include")
     if (PkgSkip("SQUISH")==0):
         if GetOptimize() <= 2:
             LibName("SQUISH",   GetThirdpartyDir() + "squish/lib/squishd.lib")
@@ -828,7 +828,7 @@ if (COMPILER=="GCC"):
         SmartPkgEnable("EIGEN",     "eigen3",    (), ("Eigen/Dense",), target_pkg = 'ALWAYS')
         SmartPkgEnable("ARTOOLKIT", "",          ("AR"), "AR/ar.h")
         SmartPkgEnable("FCOLLADA",  "",          ChooseLib(fcollada_libs, "FCOLLADA"), ("FCollada", "FCollada/FCollada.h"))
-        SmartPkgEnable("ASSIMP",    "",          ("assimp"), "assimp")
+        SmartPkgEnable("ASSIMP",    "",          ("assimp"), "assimp/Importer.hpp")
         SmartPkgEnable("FFMPEG",    ffmpeg_libs, ffmpeg_libs, ("libavformat/avformat.h", "libavcodec/avcodec.h", "libavutil/avutil.h"))
         SmartPkgEnable("SWSCALE",   "libswscale", "libswscale", ("libswscale/swscale.h"), target_pkg = "FFMPEG", thirdparty_dir = "ffmpeg")
         SmartPkgEnable("SWRESAMPLE","libswresample", "libswresample", ("libswresample/swresample.h"), target_pkg = "FFMPEG", thirdparty_dir = "ffmpeg")

+ 1 - 1
pandatool/src/assimp/assimpLoader.cxx

@@ -39,7 +39,7 @@
 #include "pandaIOSystem.h"
 #include "pandaLogger.h"
 
-#include "postprocess.h"
+#include <assimp/postprocess.h>
 
 using std::ostringstream;
 using std::stringstream;

+ 2 - 2
pandatool/src/assimp/assimpLoader.h

@@ -20,8 +20,8 @@
 #include "texture.h"
 #include "pmap.h"
 
-#include "scene.h"
-#include "Importer.hpp"
+#include <assimp/scene.h>
+#include <assimp/Importer.hpp>
 
 class Character;
 class CharacterJointBundle;

+ 1 - 1
pandatool/src/assimp/pandaIOStream.h

@@ -16,7 +16,7 @@
 
 #include "config_assimp.h"
 
-#include "IOStream.hpp"
+#include <assimp/IOStream.hpp>
 
 class PandaIOSystem;
 

+ 1 - 1
pandatool/src/assimp/pandaIOSystem.h

@@ -17,7 +17,7 @@
 #include "config_assimp.h"
 #include "virtualFileSystem.h"
 
-#include "IOSystem.hpp"
+#include <assimp/IOSystem.hpp>
 
 /**
  * Custom implementation of Assimp::IOSystem.

+ 1 - 1
pandatool/src/assimp/pandaLogger.cxx

@@ -13,7 +13,7 @@
 
 #include "pandaLogger.h"
 
-#include "DefaultLogger.hpp"
+#include <assimp/DefaultLogger.hpp>
 
 PandaLogger *PandaLogger::_ptr = nullptr;
 

+ 1 - 1
pandatool/src/assimp/pandaLogger.h

@@ -16,7 +16,7 @@
 
 #include "config_assimp.h"
 
-#include "Logger.hpp"
+#include <assimp/Logger.hpp>
 
 /**
  * Custom implementation of Assimp::Logger.  It simply wraps around the