Skip to content

Commit 29beb0f

Browse files
committed
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).
1 parent 37e265c commit 29beb0f

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

makepanda/makepanda.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def parseopts(args):
683683
path = GetThirdpartyDir() + "assimp/lib/IrrXML.lib"
684684
if os.path.isfile(path):
685685
LibName("ASSIMP", GetThirdpartyDir() + "assimp/lib/IrrXML.lib")
686-
IncDirectory("ASSIMP", GetThirdpartyDir() + "assimp/include/assimp")
686+
IncDirectory("ASSIMP", GetThirdpartyDir() + "assimp/include")
687687
if (PkgSkip("SQUISH")==0):
688688
if GetOptimize() <= 2:
689689
LibName("SQUISH", GetThirdpartyDir() + "squish/lib/squishd.lib")
@@ -828,7 +828,7 @@ def parseopts(args):
828828
SmartPkgEnable("EIGEN", "eigen3", (), ("Eigen/Dense",), target_pkg = 'ALWAYS')
829829
SmartPkgEnable("ARTOOLKIT", "", ("AR"), "AR/ar.h")
830830
SmartPkgEnable("FCOLLADA", "", ChooseLib(fcollada_libs, "FCOLLADA"), ("FCollada", "FCollada/FCollada.h"))
831-
SmartPkgEnable("ASSIMP", "", ("assimp"), "assimp")
831+
SmartPkgEnable("ASSIMP", "", ("assimp"), "assimp/Importer.hpp")
832832
SmartPkgEnable("FFMPEG", ffmpeg_libs, ffmpeg_libs, ("libavformat/avformat.h", "libavcodec/avcodec.h", "libavutil/avutil.h"))
833833
SmartPkgEnable("SWSCALE", "libswscale", "libswscale", ("libswscale/swscale.h"), target_pkg = "FFMPEG", thirdparty_dir = "ffmpeg")
834834
SmartPkgEnable("SWRESAMPLE","libswresample", "libswresample", ("libswresample/swresample.h"), target_pkg = "FFMPEG", thirdparty_dir = "ffmpeg")

pandatool/src/assimp/assimpLoader.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
#include "pandaIOSystem.h"
4040
#include "pandaLogger.h"
4141

42-
#include "postprocess.h"
42+
#include <assimp/postprocess.h>
4343

4444
using std::ostringstream;
4545
using std::stringstream;

pandatool/src/assimp/assimpLoader.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#include "texture.h"
2121
#include "pmap.h"
2222

23-
#include "scene.h"
24-
#include "Importer.hpp"
23+
#include <assimp/scene.h>
24+
#include <assimp/Importer.hpp>
2525

2626
class Character;
2727
class CharacterJointBundle;

pandatool/src/assimp/pandaIOStream.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "config_assimp.h"
1818

19-
#include "IOStream.hpp"
19+
#include <assimp/IOStream.hpp>
2020

2121
class PandaIOSystem;
2222

pandatool/src/assimp/pandaIOSystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#include "config_assimp.h"
1818
#include "virtualFileSystem.h"
1919

20-
#include "IOSystem.hpp"
20+
#include <assimp/IOSystem.hpp>
2121

2222
/**
2323
* Custom implementation of Assimp::IOSystem.

pandatool/src/assimp/pandaLogger.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
#include "pandaLogger.h"
1515

16-
#include "DefaultLogger.hpp"
16+
#include <assimp/DefaultLogger.hpp>
1717

1818
PandaLogger *PandaLogger::_ptr = nullptr;
1919

pandatool/src/assimp/pandaLogger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "config_assimp.h"
1818

19-
#include "Logger.hpp"
19+
#include <assimp/Logger.hpp>
2020

2121
/**
2222
* Custom implementation of Assimp::Logger. It simply wraps around the

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy