mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
general: Move inclusion of checkPandaVersion.h to dtoolbase
This includes it everywhere, meaning developers no longer must remember to include it in each metalib init file.
This commit is contained in:
parent
35ab16d38f
commit
0ce9dc98b1
@ -19,6 +19,13 @@
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load any DLL will fail if they inadvertently link with the wrong version of
|
||||
// dtool, which, transitively, means all DLLs must be from the same
|
||||
// (ABI-compatible) version of Panda.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
#ifdef USE_TAU
|
||||
// Tau provides this destructive version of stdbool.h that we must mask.
|
||||
#define __PDT_STDBOOL_H_
|
||||
|
@ -14,12 +14,6 @@
|
||||
#include "config_pstatclient.h"
|
||||
#endif
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpanda.so.dll will fail if they inadvertently link with the wrong
|
||||
// version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
#if !defined(CPPPARSER) && !defined(BUILDING_LIBPANDA)
|
||||
#error Buildsystem error: BUILDING_LIBPANDA not defined
|
||||
#endif
|
||||
|
@ -7,12 +7,6 @@
|
||||
#include "pandabullet.h"
|
||||
#include "config_bullet.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandabullet.so.dll will fail if they inadvertently link with the
|
||||
// wrong version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -9,12 +9,6 @@
|
||||
#include "config_dxgsg9.h"
|
||||
#include "wdxGraphicsPipe9.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandadx9.dll will fail if they inadvertently link with the wrong
|
||||
// version of libdtool.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -9,12 +9,6 @@
|
||||
#include "config_egg.h"
|
||||
#include "config_egg2pg.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandaegg.so.dll will fail if they inadvertently link with the wrong
|
||||
// version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -8,12 +8,6 @@
|
||||
|
||||
#include "config_egg.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandaegg.so.dll will fail if they inadvertently link with the wrong
|
||||
// version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -3,9 +3,3 @@
|
||||
* @author drose
|
||||
* @date 2000-05-15
|
||||
*/
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandaexpress.so.dll will fail if they inadvertently link with the
|
||||
// wrong version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
@ -8,12 +8,6 @@
|
||||
|
||||
#include "config_distort.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandafx.so.dll will fail if they inadvertently link with the wrong
|
||||
// version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -30,12 +30,6 @@
|
||||
#error One of HAVE_WGL, HAVE_COCOA, HAVE_CARBON or HAVE_GLX must be defined when compiling pandagl!
|
||||
#endif
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandagl.so.dll will fail if they inadvertently link with the wrong
|
||||
// version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -17,12 +17,6 @@
|
||||
#include "eglGraphicsPipe.h"
|
||||
#endif
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandagles.so.dll will fail if they inadvertently link with the
|
||||
// wrong version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -12,12 +12,6 @@
|
||||
#include "config_egldisplay.h"
|
||||
#include "eglGraphicsPipe.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandagles2.so.dll will fail if they inadvertently link with the
|
||||
// wrong version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -7,12 +7,6 @@
|
||||
#include "pandaode.h"
|
||||
#include "config_ode.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandaode.so.dll will fail if they inadvertently link with the wrong
|
||||
// version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -8,12 +8,6 @@
|
||||
#include "config_physics.h"
|
||||
#include "config_particlesystem.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandaphysics.so.dll will fail if they inadvertently link with the
|
||||
// wrong version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -7,12 +7,6 @@
|
||||
#include "pandaphysx.h"
|
||||
#include "config_physx.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libpandaphysx.so.dll will fail if they inadvertently link with the
|
||||
// wrong version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
/**
|
||||
* Initializes the library. This must be called at least once before any of
|
||||
* the functions or classes in this library can be used. Normally it will be
|
||||
|
@ -21,12 +21,6 @@
|
||||
#include "bamCache.h"
|
||||
#include "virtualFileSystem.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to run
|
||||
// pview will fail if it inadvertently links with the wrong version of
|
||||
// libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
PandaFramework framework;
|
||||
framework.open_framework(argc, argv);
|
||||
|
@ -16,12 +16,6 @@
|
||||
#include "dconfig.h"
|
||||
#include "windowFramework.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to
|
||||
// load libframework.so.dll will fail if they inadvertently link with the
|
||||
// wrong version of libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
#if !defined(CPPPARSER) && !defined(BUILDING_FRAMEWORK)
|
||||
#error Buildsystem error: BUILDING_FRAMEWORK not defined
|
||||
#endif
|
||||
|
@ -29,12 +29,6 @@
|
||||
#include "asyncTask.h"
|
||||
#include "boundingSphere.h"
|
||||
|
||||
// By including checkPandaVersion.h, we guarantee that runtime attempts to run
|
||||
// pview will fail if it inadvertently links with the wrong version of
|
||||
// libdtool.so.dll.
|
||||
|
||||
#include "checkPandaVersion.h"
|
||||
|
||||
PandaFramework framework;
|
||||
|
||||
ConfigVariableBool pview_test_hack
|
||||
|
Loading…
x
Reference in New Issue
Block a user