mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
remove LINK_IN_GL etc.
This commit is contained in:
parent
4f3ea6ad9d
commit
3a41895780
@ -883,13 +883,6 @@
|
|||||||
// on Windows. Some Windows compilers may not support this syntax.
|
// on Windows. Some Windows compilers may not support this syntax.
|
||||||
#defer EXPORT_TEMPLATES yes
|
#defer EXPORT_TEMPLATES yes
|
||||||
|
|
||||||
// Define this to explicitly link in the various external drivers, which
|
|
||||||
// are normally separate, as part of the Panda library.
|
|
||||||
//#define LINK_IN_GL yes
|
|
||||||
//#define LINK_IN_DX yes
|
|
||||||
//#define LINK_IN_EGG yes
|
|
||||||
//#define LINK_IN_PHYSICS yes
|
|
||||||
|
|
||||||
// Define USE_COMPILER to switch the particular compiler that should
|
// Define USE_COMPILER to switch the particular compiler that should
|
||||||
// be used. A handful of tokens are recognized, depending on BUILD_TYPE.
|
// be used. A handful of tokens are recognized, depending on BUILD_TYPE.
|
||||||
// This may also be further customized within Global.$[BUILD_TYPE].pp.
|
// This may also be further customized within Global.$[BUILD_TYPE].pp.
|
||||||
|
@ -380,12 +380,6 @@ $[cdefine NOTIFY_DEBUG]
|
|||||||
makes sense to MSVC++. */
|
makes sense to MSVC++. */
|
||||||
$[cdefine EXPORT_TEMPLATES]
|
$[cdefine EXPORT_TEMPLATES]
|
||||||
|
|
||||||
/* Define if we are linking PANDAGL in with PANDA. */
|
|
||||||
$[cdefine LINK_IN_GL]
|
|
||||||
|
|
||||||
/* Define if we are linking PANDAPHYSICS in with PANDA. */
|
|
||||||
$[cdefine LINK_IN_PHYSICS]
|
|
||||||
|
|
||||||
/* The compiled-in character(s) to expect to separate different
|
/* The compiled-in character(s) to expect to separate different
|
||||||
components of a path list (e.g. $PRC_PATH). */
|
components of a path list (e.g. $PRC_PATH). */
|
||||||
# define DEFAULT_PATHSEP "$[DEFAULT_PATHSEP]"
|
# define DEFAULT_PATHSEP "$[DEFAULT_PATHSEP]"
|
||||||
|
@ -26,18 +26,6 @@
|
|||||||
interrogatedb:c dconfig:c dtoolconfig:m \
|
interrogatedb:c dconfig:c dtoolconfig:m \
|
||||||
dtoolutil:c dtoolbase:c dtool:m prc:c
|
dtoolutil:c dtoolbase:c dtool:m prc:c
|
||||||
|
|
||||||
#if $[LINK_IN_GL]
|
|
||||||
#define BUILDING_DLL $[BUILDING_DLL] BUILDING_PANDAGL
|
|
||||||
#define COMPONENT_LIBS $[COMPONENT_LIBS] \
|
|
||||||
glgsg glxdisplay wgldisplay
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if $[LINK_IN_PHYSICS]
|
|
||||||
#define BUILDING_DLL $[BUILDING_DLL] BUILDING_PANDAPHYSICS
|
|
||||||
#define COMPONENT_LIBS $[COMPONENT_LIBS] \
|
|
||||||
physics particlesystem
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#begin metalib_target
|
#begin metalib_target
|
||||||
#define TARGET panda
|
#define TARGET panda
|
||||||
|
|
||||||
|
@ -13,18 +13,6 @@
|
|||||||
#include "config_pstats.h"
|
#include "config_pstats.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LINK_IN_GL
|
|
||||||
#include "config_glgsg.h"
|
|
||||||
#ifdef HAVE_WGL
|
|
||||||
#include "config_wgldisplay.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef LINK_IN_PHYSICS
|
|
||||||
#include "config_physics.h"
|
|
||||||
#include "config_particlesystem.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// By including checkPandaVersion.h, we guarantee that runtime
|
// By including checkPandaVersion.h, we guarantee that runtime
|
||||||
// attempts to load libpanda.so/.dll will fail if they inadvertently
|
// attempts to load libpanda.so/.dll will fail if they inadvertently
|
||||||
// link with the wrong version of libdtool.so/.dll.
|
// link with the wrong version of libdtool.so/.dll.
|
||||||
@ -48,16 +36,4 @@ init_libpanda() {
|
|||||||
#ifdef DO_PSTATS
|
#ifdef DO_PSTATS
|
||||||
init_libpstatclient();
|
init_libpstatclient();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef LINK_IN_GL
|
|
||||||
init_libglgsg();
|
|
||||||
#ifdef HAVE_WGL
|
|
||||||
init_libwgldisplay();
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef LINK_IN_PHYSICS
|
|
||||||
init_libphysics();
|
|
||||||
init_libparticlesystem();
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
@ -8,13 +8,9 @@
|
|||||||
#define BUILDING_DLL BUILDING_PANDAGL
|
#define BUILDING_DLL BUILDING_PANDAGL
|
||||||
#define BUILD_DIRECTORY $[HAVE_GL]
|
#define BUILD_DIRECTORY $[HAVE_GL]
|
||||||
|
|
||||||
#if $[eq $[LINK_IN_GL],]
|
#define COMPONENT_LIBS \
|
||||||
// We don't have any components if we're linking the GL library
|
glgsg glxdisplay \
|
||||||
// directly into Panda.
|
wgldisplay osxdisplay
|
||||||
#define COMPONENT_LIBS \
|
|
||||||
glgsg glxdisplay \
|
|
||||||
wgldisplay osxdisplay
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define LOCAL_LIBS gsgbase display express
|
#define LOCAL_LIBS gsgbase display express
|
||||||
#define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
|
#define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
|
||||||
|
@ -7,12 +7,8 @@
|
|||||||
#define DIR_TYPE metalib
|
#define DIR_TYPE metalib
|
||||||
#define BUILDING_DLL BUILDING_PANDAPHYSICS
|
#define BUILDING_DLL BUILDING_PANDAPHYSICS
|
||||||
|
|
||||||
#if $[eq $[LINK_IN_PHYSICS],]
|
#define COMPONENT_LIBS \
|
||||||
// We don't have any components if we're linking the Physics library
|
physics particlesystem
|
||||||
// directly into Panda.
|
|
||||||
#define COMPONENT_LIBS \
|
|
||||||
physics particlesystem
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define LOCAL_LIBS linmath putil express
|
#define LOCAL_LIBS linmath putil express
|
||||||
#define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
|
#define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \
|
||||||
|
@ -4,11 +4,8 @@
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include "pandaphysics.h"
|
#include "pandaphysics.h"
|
||||||
|
|
||||||
#ifndef LINK_IN_PHYSICS
|
|
||||||
#include "config_physics.h"
|
#include "config_physics.h"
|
||||||
#include "config_particlesystem.h"
|
#include "config_particlesystem.h"
|
||||||
#endif
|
|
||||||
|
|
||||||
// By including checkPandaVersion.h, we guarantee that runtime
|
// By including checkPandaVersion.h, we guarantee that runtime
|
||||||
// attempts to load libpandaphysics.so/.dll will fail if they
|
// attempts to load libpandaphysics.so/.dll will fail if they
|
||||||
@ -26,8 +23,6 @@
|
|||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
void
|
void
|
||||||
init_libpandaphysics() {
|
init_libpandaphysics() {
|
||||||
#ifndef LINK_IN_PHYSICS
|
|
||||||
init_libphysics();
|
init_libphysics();
|
||||||
init_libparticlesystem();
|
init_libparticlesystem();
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user