general: Add guards to ensure proper BUILDING_ macros defined

This is designed to sanity-check the buildsystem, ensuring that the
expected BUILDING_ macros are defined at the expected time. It
also helps catch cases where the wrong BUILDING_/EXPCL_ macros
are used.
This commit is contained in:
Sam Edwards 2018-03-16 19:51:56 -06:00
parent f231ba4cd7
commit 9dd37e9dbc
76 changed files with 304 additions and 0 deletions

View File

@ -15,6 +15,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DIRECT_DEADREC)
#error Buildsystem error: BUILDING_DIRECT_DEADREC not defined
#endif
Configure(config_deadrec);
NotifyCategoryDef(deadrec, "");

View File

@ -30,6 +30,10 @@
#include "pset.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DIRECT_DIRECTD)
#error Buildsystem error: BUILDING_DIRECT_DIRECTD not defined
#endif
namespace {
// ...This section is part of the old stuff from the original
// implementation. The new stuff that uses job objects doesn't need this

View File

@ -14,6 +14,10 @@
#include "config_distributed.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DIRECT_DISTRIBUTED)
#error Buildsystem error: BUILDING_DIRECT_DISTRIBUTED not defined
#endif
Configure(config_distributed);
NotifyCategoryDef(distributed, "");

View File

@ -29,6 +29,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DIRECT_INTERVAL)
#error Buildsystem error: BUILDING_DIRECT_INTERVAL not defined
#endif
Configure(config_interval);
NotifyCategoryDef(interval, "");

View File

@ -14,6 +14,10 @@
#include "config_motiontrail.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DIRECT_MOTIONTRAIL)
#error Buildsystem error: BUILDING_DIRECT_MOTIONTRAIL not defined
#endif
extern EXPCL_DIRECT_MOTIONTRAIL void init_libmotiontrail();
Configure(config_motiontrail);

View File

@ -34,6 +34,10 @@ TOGGLEKEYS g_StartupToggleKeys = {sizeof(TOGGLEKEYS), 0};
FILTERKEYS g_StartupFilterKeys = {sizeof(FILTERKEYS), 0};
#endif
#if !defined(CPPPARSER) && !defined(BUILDING_DIRECT_SHOWBASE)
#error Buildsystem error: BUILDING_DIRECT_SHOWBASE not defined
#endif
ConfigureDef(config_showbase);
ConfigureFn(config_showbase) {
}

View File

@ -13,5 +13,9 @@
#include "config_dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DTOOL_DCONFIG)
#error Buildsystem error: BUILDING_DTOOL_DCONFIG not defined
#endif
NotifyCategoryDef(dconfig, "");
NotifyCategoryDef(microconfig, "dconfig");

View File

@ -14,6 +14,10 @@
#include "dtoolbase.h"
#include "memoryHook.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DTOOL_DTOOLBASE)
#error Buildsystem error: BUILDING_DTOOL_DTOOLBASE not defined
#endif
#if defined(USE_TAU) && defined(WIN32)
// Hack around tau's lack of DLL export declarations for Profiler class.
bool __tau_shutdown = false;

View File

@ -16,6 +16,10 @@
#include "filename.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DTOOL_DTOOLUTIL)
#error Buildsystem error: BUILDING_DTOOL_DCTOOLUTIL not defined
#endif
/**
* 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

View File

@ -16,6 +16,10 @@
#include "configVariableEnum.h"
#include "pandaFileStreamBuf.h"
#if !defined(CPPPARSER) && !defined(BUILDING_DTOOL_PRC)
#error Buildsystem error: BUILDING_DTOOL_PRC not defined
#endif
NotifyCategoryDef(prc, "");
ALIGN_16BYTE ConfigVariableBool assert_abort

View File

@ -20,6 +20,10 @@
#include "checkPandaVersion.h"
#if !defined(CPPPARSER) && !defined(BUILDING_LIBPANDA)
#error Buildsystem error: BUILDING_LIBPANDA not defined
#endif
/**
* 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

View File

@ -21,6 +21,10 @@
#include "nullAudioSound.h"
#include "string_utils.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_AUDIO)
#error Buildsystem error: BUILDING_PANDA_AUDIO not defined
#endif
Configure(config_audio);
NotifyCategoryDef(audio, "");

View File

@ -19,6 +19,10 @@
#include "pandaSystem.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_FMOD_AUDIO)
#error Buildsystem error: BUILDING_FMOD_AUDIO not defined
#endif
ConfigureDef(config_fmodAudio);
NotifyCategoryDef(fmodAudio, ":audio");

View File

@ -22,6 +22,10 @@
#include "pandaSystem.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_MILES_AUDIO)
#error Buildsystem error: BUILDING_MILES_AUDIO not defined
#endif
ConfigureDef(config_milesAudio);
NotifyCategoryDef(milesAudio, ":audio");

View File

@ -18,6 +18,10 @@
#include "pandaSystem.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_OPENAL_AUDIO)
#error Buildsystem error: BUILDING_OPENAL_AUDIO not defined
#endif
ConfigureDef(config_openalAudio);
NotifyCategoryDef(openalAudio, ":audio");

View File

@ -18,6 +18,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAAWESOMIUM)
#error Buildsystem error: BUILDING_PANDAAWESOMIUM not defined
#endif
Configure(config_awesomium);
NotifyCategoryDef(awesomium, "");

View File

@ -56,6 +56,10 @@ extern ContactDestroyedCallback gContactDestroyedCallback;
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDABULLET)
#error Buildsystem error: BUILDING_PANDABULLET not defined
#endif
Configure(config_bullet);
NotifyCategoryDef(bullet, "");

View File

@ -34,6 +34,10 @@
#include "luse.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_CHAN)
#error Buildsystem error: BUILDING_PANDA_CHAN not defined
#endif
Configure(config_chan);
NotifyCategoryDef(chan, "");

View File

@ -21,6 +21,10 @@
#include "jointVertexTransform.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_CHAR)
#error Buildsystem error: BUILDING_PANDA_CHAR not defined
#endif
Configure(config_char);
NotifyCategoryDef(char, "");

View File

@ -20,6 +20,10 @@
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAGL)
#error Buildsystem error: BUILDING_PANDAGL not defined
#endif
Configure(config_cocoadisplay);
NotifyCategoryDef(cocoadisplay, "display");

View File

@ -17,6 +17,10 @@
#include "loaderFileTypeDae.h"
#include "loaderFileTypeRegistry.h"
#if !defined(CPPPARSER) && !defined(BUILDING_COLLADA)
#error Buildsystem error: BUILDING_COLLADA not defined
#endif
ConfigureDef(config_collada);
NotifyCategoryDef(collada, "");

View File

@ -42,6 +42,10 @@
#include "collisionVisualizer.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_COLLIDE)
#error Buildsystem error: BUILDING_PANDA_COLLIDE not defined
#endif
Configure(config_collide);
NotifyCategoryDef(collide, "");

View File

@ -22,6 +22,10 @@
#include "cullBinManager.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_CULL)
#error Buildsystem error: BUILDING_PANDA_CULL not defined
#endif
ConfigureDef(config_cull);
NotifyCategoryDef(cull, "");

View File

@ -27,6 +27,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_DEVICE)
#error Buildsystem error: BUILDING_PANDA_DEVICE not defined
#endif
Configure(config_device);
NotifyCategoryDef(device, "");

View File

@ -17,6 +17,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_DGRAPH)
#error Buildsystem error: BUILDING_PANDA_DGRAPH not defined
#endif
Configure(config_dgraph);
NotifyCategoryDef(dgraph, "");

View File

@ -31,6 +31,10 @@
#include "subprocessWindow.h"
#include "windowHandle.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_DISPLAY)
#error Buildsystem error: BUILDING_PANDA_DISPLAY not defined
#endif
ConfigureDef(config_display);
NotifyCategoryDef(display, "");
NotifyCategoryDef(gsg, display_cat);

View File

@ -20,6 +20,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAFX)
#error Buildsystem error: BUILDING_PANDAFX not defined
#endif
Configure(config_distort);
NotifyCategoryDef(distort, "");

View File

@ -19,6 +19,10 @@
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAEXPRESS)
#error Buildsystem error: BUILDING_PANDAEXPRESS not defined
#endif
ConfigureDef(config_downloader);
NotifyCategoryDef(downloader, "");

View File

@ -27,6 +27,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDADX)
#error Buildsystem error: BUILDING_PANDADX not defined
#endif
DToolConfigure(config_dxgsg9);
NotifyCategoryDef(dxgsg9, ":display:gsg");
NotifyCategoryDef(wdxdisplay9, "display");

View File

@ -19,6 +19,10 @@ BEGIN_PUBLISH
#include "tinyxml.h"
END_PUBLISH
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_DXML)
#error Buildsystem error: BUILDING_PANDA_DXML not defined
#endif
Configure(config_dxml);
NotifyCategoryDef(dxml, "");

View File

@ -58,6 +58,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAEGG)
#error Buildsystem error: BUILDING_PANDAEGG not defined
#endif
Configure(config_egg);
NotifyCategoryDef(egg, "");

View File

@ -20,6 +20,10 @@
#include "configVariableCore.h"
#include "eggRenderState.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAEGG)
#error Buildsystem error: BUILDING_PANDAEGG not defined
#endif
ConfigureDef(config_egg2pg);
NotifyCategoryDef(egg2pg, "");

View File

@ -19,6 +19,10 @@
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAGLES) && !defined(BUILDING_PANDAGLES2)
#error Buildsystem error: BUILDING_PANDAGLES(2) not defined
#endif
Configure(config_egldisplay);
NotifyCategoryDef(egldisplay, "display");

View File

@ -27,6 +27,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_EVENT)
#error Buildsystem error: BUILDING_PANDA_EVENT not defined
#endif
Configure(config_event);
NotifyCategoryDef(event, "");
NotifyCategoryDef(task, "");

View File

@ -36,6 +36,10 @@
#include "dconfig.h"
#include "streamWrapper.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAEXPRESS)
#error Buildsystem error: BUILDING_PANDAEXPRESS not defined
#endif
ConfigureDef(config_express);
NotifyCategoryDef(express, "");
NotifyCategoryDef(clock, ":express");

View File

@ -24,6 +24,10 @@ extern "C" {
#include "libavcodec/avcodec.h"
}
#if !defined(CPPPARSER) && !defined(BUILDING_FFMPEG)
#error Buildsystem error: BUILDING_FFMPEG not defined
#endif
ConfigureDef(config_ffmpeg);
NotifyCategoryDef(ffmpeg, "");

View File

@ -22,6 +22,10 @@
#include "checkPandaVersion.h"
#if !defined(CPPPARSER) && !defined(BUILDING_FRAMEWORK)
#error Buildsystem error: BUILDING_FRAMEWORK not defined
#endif
Configure(config_framework);
NotifyCategoryDef(framework, "");

View File

@ -16,6 +16,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAGLES2)
#error Buildsystem error: BUILDING_PANDAGLES2 not defined
#endif
ConfigureDef(config_gles2gsg);
NotifyCategoryDef(gles2gsg, ":display:gsg");

View File

@ -16,6 +16,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAGLES)
#error Buildsystem error: BUILDING_PANDAGLES not defined
#endif
ConfigureDef(config_glesgsg);
NotifyCategoryDef(glesgsg, ":display:gsg");

View File

@ -16,6 +16,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAGL)
#error Buildsystem error: BUILDING_PANDAGL not defined
#endif
ConfigureDef(config_glgsg);
NotifyCategoryDef(glgsg, ":display:gsg");

View File

@ -23,6 +23,10 @@
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAGL)
#error Buildsystem error: BUILDING_PANDAGL not defined
#endif
Configure(config_glxdisplay);
NotifyCategoryDef(glxdisplay, "display");

View File

@ -70,6 +70,10 @@
#include "dconfig.h"
#include "string_utils.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_GOBJ)
#error Buildsystem error: BUILDING_PANDA_GOBJ not defined
#endif
Configure(config_gobj);
NotifyCategoryDef(gobj, "");
NotifyCategoryDef(shader, "");

View File

@ -27,6 +27,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_GRUTIL)
#error Buildsystem error: BUILDING_PANDA_GRUTIL not defined
#endif
Configure(config_grutil);
NotifyCategoryDef(grutil, "");

View File

@ -17,6 +17,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_GSGBASE)
#error Buildsystem error: BUILDING_PANDA_GSGBASE not defined
#endif
Configure(config_gsgbase);
ConfigureFn(config_gsgbase) {

View File

@ -17,6 +17,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_LINMATH)
#error Buildsystem error: BUILDING_PANDA_LINMATH not defined
#endif
Configure(config_linmath);
NotifyCategoryDef(linmath, "");

View File

@ -26,6 +26,10 @@
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_MATHUTIL)
#error Buildsystem error: BUILDING_PANDA_MATHUTIL not defined
#endif
Configure(config_mathutil);
NotifyCategoryDef(mathutil, "");

View File

@ -32,6 +32,10 @@
#include "wavAudio.h"
#include "wavAudioCursor.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_MOVIES)
#error Buildsystem error: BUILDING_PANDA_MOVIES not defined
#endif
ConfigureDef(config_movies);
NotifyCategoryDef(movies, "");

View File

@ -26,6 +26,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_NATIVENET)
#error Buildsystem error: BUILDING_PANDA_NATIVENET not defined
#endif
Configure(config_nativenet);
NotifyCategoryDef(nativenet, "");

View File

@ -18,6 +18,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_NET)
#error Buildsystem error: BUILDING_PANDA_NET not defined
#endif
Configure(config_net);
NotifyCategoryDef(net, "");

View File

@ -47,6 +47,10 @@
#include "odeCollisionEntry.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAODE)
#error Buildsystem error: BUILDING_PANDAODE not defined
#endif
Configure(config_ode);
NotifyCategoryDef(ode, "");
NotifyCategoryDef(odeworld, "ode");

View File

@ -20,6 +20,10 @@
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAGL)
#error Buildsystem error: BUILDING_PANDAGL not defined
#endif
Configure(config_osxdisplay);
NotifyCategoryDef(osxdisplay, "display");

View File

@ -22,6 +22,10 @@
#include "ropeNode.h"
#include "sheetNode.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PARAMETRICS)
#error Buildsystem error: BUILDING_PANDA_PARAMETRICS not defined
#endif
Configure(config_parametrics);
NotifyCategoryDef(parametrics, "");

View File

@ -16,6 +16,10 @@
#include "geomParticleRenderer.h"
#include "geomNode.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAPHYSICS)
#error Buildsystem error: BUILDING_PANDAPHYSICS not defined
#endif
ConfigureDef(config_particlesystem);
NotifyCategoryDef(particlesystem, "");

View File

@ -92,6 +92,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PGRAPH)
#error Buildsystem error: BUILDING_PANDA_PGRAPH not defined
#endif
ConfigureDef(config_pgraph);
NotifyCategoryDef(pgraph, "");
NotifyCategoryDef(loader, "");

View File

@ -37,6 +37,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PGRAPHNODES)
#error Buildsystem error: BUILDING_PANDA_PGRAPHNODES not defined
#endif
ConfigureDef(config_pgraphnodes);
NotifyCategoryDef(pgraphnodes, "");

View File

@ -28,6 +28,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PGUI)
#error Buildsystem error: BUILDING_PANDA_PGUI not defined
#endif
Configure(config_pgui);
NotifyCategoryDef(pgui, "");

View File

@ -26,6 +26,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAPHYSICS)
#error Buildsystem error: BUILDING_PANDAPHYSICS not defined
#endif
ConfigureDef(config_physics);
NotifyCategoryDef(physics, "");

View File

@ -67,6 +67,10 @@
#include "physxWheel.h"
#include "physxWheelShape.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAPHYSX)
#error Buildsystem error: BUILDING_PANDAPHYSX not defined
#endif
ConfigureDef(config_physx);
NotifyCategoryDef(physx, "");

View File

@ -20,6 +20,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PIPELINE)
#error Buildsystem error: BUILDING_PANDA_PIPELINE not defined
#endif
ConfigureDef(config_pipeline);
NotifyCategoryDef(pipeline, "");
NotifyCategoryDef(thread, "");

View File

@ -17,6 +17,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PNMIMAGE)
#error Buildsystem error: BUILDING_PANDA_PNMIMAGE not defined
#endif
Configure(config_pnmimage);
NotifyCategoryDef(pnmimage, "");

View File

@ -32,6 +32,10 @@
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PNMIMAGETYPES)
#error Buildsystem error: BUILDING_PANDA_PNMIMAGETYPES not defined
#endif
Configure(config_pnmimagetypes);
NotifyCategoryDefName(pnmimage_sgi, "sgi", pnmimage_cat);
NotifyCategoryDefName(pnmimage_tga, "tga", pnmimage_cat);

View File

@ -16,6 +16,10 @@
#include "dconfig.h"
#include "freetypeFace.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PNMTEXT)
#error Buildsystem error: BUILDING_PANDA_PNMTEXT not defined
#endif
Configure(config_pnmtext);
NotifyCategoryDef(pnmtext, "");

View File

@ -15,6 +15,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PSTATCLIENT)
#error Buildsystem error: BUILDING_PANDA_PSTATCLIENT not defined
#endif
ConfigureDef(config_pstats);
NotifyCategoryDef(pstats, "");

View File

@ -47,6 +47,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_PUTIL)
#error Buildsystem error: BUILDING_PANDA_PUTIL not defined
#endif
ConfigureDef(config_util);
NotifyCategoryDef(util, "");
NotifyCategoryDef(bam, util_cat);

View File

@ -22,6 +22,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_RECORDER)
#error Buildsystem error: BUILDING_PANDA_RECORDER not defined
#endif
ConfigureDef(config_recorder);
NotifyCategoryDef(recorder, "");

View File

@ -26,6 +26,10 @@
#include <Rocket/Core.h>
#undef Factory
#if !defined(CPPPARSER) && !defined(BUILDING_ROCKET)
#error Buildsystem error: BUILDING_ROCKET not defined
#endif
Configure(config_rocket);
NotifyCategoryDef(rocket, "");

View File

@ -16,6 +16,10 @@
#include "typedSkel.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDASKEL)
#error Buildsystem error: BUILDING_PANDASKEL not defined
#endif
Configure(config_skel);
NotifyCategoryDef(skel, "");

View File

@ -21,6 +21,10 @@
#include "loaderFileTypeRegistry.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDASPEEDTREE)
#error Buildsystem error: BUILDING_PANDASPEEDTREE not defined
#endif
ConfigureDef(config_speedtree);
NotifyCategoryDef(speedtree, "");

View File

@ -27,6 +27,10 @@
#include "dconfig.h"
#include "config_express.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_TEXT)
#error Buildsystem error: BUILDING_PANDA_TEXT not defined
#endif
Configure(config_text);
NotifyCategoryDef(text, "");

View File

@ -25,6 +25,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDA_TFORM)
#error Buildsystem error: BUILDING_PANDA_TFORM not defined
#endif
Configure(config_tform);
NotifyCategoryDef(tform, "");

View File

@ -29,6 +29,10 @@
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_TINYDISPLAY)
#error Buildsystem error: BUILDING_TINYDISPLAY not defined
#endif
Configure(config_tinydisplay);
NotifyCategoryDef(tinydisplay, "display");

View File

@ -23,6 +23,10 @@
#include "texturePool.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_VISION)
#error Buildsystem error: BUILDING_VISION not defined
#endif
Configure(config_vision);
NotifyCategoryDef(vision, "");

View File

@ -21,6 +21,10 @@
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_VRPN)
#error Buildsystem error: BUILDING_VRPN not defined
#endif
Configure(config_vrpn);
NotifyCategoryDef(vrpn, "");

View File

@ -20,6 +20,10 @@
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAGL)
#error Buildsystem error: BUILDING_PANDAGL not defined
#endif
Configure(config_wgldisplay);
NotifyCategoryDef(wgldisplay, "display");

View File

@ -16,6 +16,10 @@
#include "winGraphicsWindow.h"
#include "dconfig.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAWIN)
#error Buildsystem error: BUILDING_PANDAWIN not defined
#endif
Configure(config_windisplay);
NotifyCategoryDef(windisplay, "display");

View File

@ -18,6 +18,10 @@
#include "dconfig.h"
#include "pandaSystem.h"
#if !defined(CPPPARSER) && !defined(BUILDING_PANDAX11)
#error Buildsystem error: BUILDING_PANDAX11 not defined
#endif
Configure(config_x11display);
NotifyCategoryDef(x11display, "display");