From 389d73a485337c68f5982da41df5287c39ea70c1 Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 7 Oct 2015 15:51:56 +0200 Subject: [PATCH] Include Eigen headers in Windows SDK to prevent people from having to grab the thirdparty packages --- makepanda/makepanda.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/makepanda/makepanda.py b/makepanda/makepanda.py index b1c31930ea..8c28cc20cc 100755 --- a/makepanda/makepanda.py +++ b/makepanda/makepanda.py @@ -2676,6 +2676,11 @@ if (PkgSkip("PYTHON")==0 and os.path.isdir(GetThirdpartyBase()+"/Pmw")): CopyTree(GetOutputDir()+'/Pmw', GetThirdpartyBase()+'/Pmw') ConditionalWriteFile(GetOutputDir()+'/include/ctl3d.h', '/* dummy file to make MAX happy */') +# Since Eigen is included by all sorts of core headers, as a convenience +# to C++ users on Windows, we include it in the Panda include directory. +if not PkgSkip("EIGEN") and GetTarget() == "windows" and GetThirdpartyDir(): + CopyTree(GetOutputDir()+'/include/Eigen', GetThirdpartyDir()+'eigen/include/Eigen') + ######################################################################## # # Copy header files to the built/include/parser-inc directory.