mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
Changes to makepanda to compile with Assimp
This includes updating header files for Assimp 3.
This commit is contained in:
parent
75978222a1
commit
5f735b4e50
@ -87,7 +87,7 @@ PkgListSet(["PYTHON", "DIRECT", # Python support
|
||||
"ODE", "PHYSX", "BULLET", "PANDAPHYSICS", # Physics
|
||||
"SPEEDTREE", # SpeedTree
|
||||
"ZLIB", "PNG", "JPEG", "TIFF", "SQUISH", "FREETYPE", # 2D Formats support
|
||||
] + MAYAVERSIONS + MAXVERSIONS + [ "FCOLLADA", # 3D Formats support
|
||||
] + MAYAVERSIONS + MAXVERSIONS + [ "FCOLLADA", "ASSIMP", # 3D Formats support
|
||||
"VRPN", "OPENSSL", # Transport
|
||||
"FFTW", # Algorithm helpers
|
||||
"ARTOOLKIT", "OPENCV", "DIRECTCAM", "VISION", # Augmented Reality
|
||||
@ -595,6 +595,7 @@ if (COMPILER == "MSVC"):
|
||||
if (PkgSkip("FFTW")==0): LibName("FFTW", GetThirdpartyDir() + "fftw/lib/fftw.lib")
|
||||
if (PkgSkip("ARTOOLKIT")==0):LibName("ARTOOLKIT",GetThirdpartyDir() + "artoolkit/lib/libAR.lib")
|
||||
if (PkgSkip("FCOLLADA")==0): LibName("FCOLLADA", GetThirdpartyDir() + "fcollada/lib/FCollada.lib")
|
||||
if (PkgSkip("ASSIMP")==0): PkgDisable("ASSIMP") # Not yet supported
|
||||
if (PkgSkip("OPENCV")==0): LibName("OPENCV", GetThirdpartyDir() + "opencv/lib/cv.lib")
|
||||
if (PkgSkip("OPENCV")==0): LibName("OPENCV", GetThirdpartyDir() + "opencv/lib/highgui.lib")
|
||||
if (PkgSkip("OPENCV")==0): LibName("OPENCV", GetThirdpartyDir() + "opencv/lib/cvaux.lib")
|
||||
@ -737,6 +738,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"), "assimp")
|
||||
SmartPkgEnable("FFMPEG", ffmpeg_libs, ffmpeg_libs, ffmpeg_libs)
|
||||
SmartPkgEnable("SWSCALE", "libswscale", "libswscale", ("libswscale", "libswscale/swscale.h"), target_pkg = "FFMPEG")
|
||||
SmartPkgEnable("SWRESAMPLE","libswresample", "libswresample", ("libswresample", "libswresample/swresample.h"), target_pkg = "FFMPEG")
|
||||
@ -5207,6 +5209,16 @@ if (PkgSkip("PANDATOOL")==0 and PkgSkip("FCOLLADA")==0):
|
||||
TargetAdd('libp3daeegg.lib', input='p3daeegg_composite1.obj')
|
||||
TargetAdd('libp3daeegg.lib', opts=['FCOLLADA', 'CARBON'])
|
||||
|
||||
#
|
||||
# DIRECTORY: pandatool/src/assimp
|
||||
#
|
||||
if (PkgSkip("PANDATOOL") == 0 and PkgSkip("ASSIMP")==0):
|
||||
OPTS=['DIR:pandatool/src/assimp', 'ASSIMP', 'MODULE']
|
||||
TargetAdd('p3assimp_composite1.obj', opts=OPTS, input='p3assimp_composite1.cxx')
|
||||
TargetAdd('libp3assimp.dll', input='p3assimp_composite1.obj')
|
||||
TargetAdd('libp3assimp.dll', input=COMMON_PANDA_LIBS)
|
||||
TargetAdd('libp3assimp.dll', opts=OPTS)
|
||||
|
||||
#
|
||||
# DIRECTORY: pandatool/src/daeprogs/
|
||||
#
|
||||
|
@ -36,7 +36,7 @@
|
||||
#include "pandaIOSystem.h"
|
||||
#include "pandaLogger.h"
|
||||
|
||||
#include "aiPostProcess.h"
|
||||
#include "assimp/postprocess.h"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function: AssimpLoader::Constructor
|
||||
|
@ -20,7 +20,8 @@
|
||||
#include "modelRoot.h"
|
||||
#include "texture.h"
|
||||
|
||||
#include "aiScene.h"
|
||||
#include "assimp/scene.h"
|
||||
#include "assimp/Importer.hpp"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : AssimpLoader
|
||||
|
@ -17,8 +17,6 @@
|
||||
|
||||
#include "pandatoolbase.h"
|
||||
|
||||
#include "assimp.hpp"
|
||||
|
||||
#include "dconfig.h"
|
||||
|
||||
ConfigureDecl(config_assimp, EXPCL_ASSIMP, EXPTP_ASSIMP);
|
||||
|
7
pandatool/src/assimp/p3assimp_composite1.cxx
Normal file
7
pandatool/src/assimp/p3assimp_composite1.cxx
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
#include "config_assimp.cxx"
|
||||
#include "assimpLoader.cxx"
|
||||
#include "loaderFileTypeAssimp.cxx"
|
||||
#include "pandaIOStream.cxx"
|
||||
#include "pandaIOSystem.cxx"
|
||||
#include "pandaLogger.cxx"
|
@ -17,7 +17,7 @@
|
||||
|
||||
#include "config_assimp.h"
|
||||
|
||||
#include "IOStream.h"
|
||||
#include "assimp/IOStream.hpp"
|
||||
|
||||
class PandaIOSystem;
|
||||
|
||||
|
@ -18,7 +18,7 @@
|
||||
#include "config_assimp.h"
|
||||
#include "virtualFileSystem.h"
|
||||
|
||||
#include "IOSystem.h"
|
||||
#include "assimp/IOSystem.hpp"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : PandaIOSystem
|
||||
|
@ -14,7 +14,7 @@
|
||||
|
||||
#include "pandaLogger.h"
|
||||
|
||||
#include "DefaultLogger.h"
|
||||
#include "assimp/DefaultLogger.hpp"
|
||||
|
||||
PandaLogger *PandaLogger::_ptr = NULL;
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
#include "config_assimp.h"
|
||||
|
||||
#include "Logger.h"
|
||||
#include "assimp/Logger.hpp"
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Class : PandaLogger
|
||||
|
Loading…
x
Reference in New Issue
Block a user