Browse Source

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.
Sam Edwards 7 years ago
parent
commit
9dd37e9dbc
76 changed files with 304 additions and 0 deletions
  1. 4 0
      direct/src/deadrec/config_deadrec.cxx
  2. 4 0
      direct/src/directd/directd.cxx
  3. 4 0
      direct/src/distributed/config_distributed.cxx
  4. 4 0
      direct/src/interval/config_interval.cxx
  5. 4 0
      direct/src/motiontrail/config_motiontrail.cxx
  6. 4 0
      direct/src/showbase/showBase.cxx
  7. 4 0
      dtool/src/dconfig/config_dconfig.cxx
  8. 4 0
      dtool/src/dtoolbase/dtoolbase.cxx
  9. 4 0
      dtool/src/dtoolutil/config_dtoolutil.cxx
  10. 4 0
      dtool/src/prc/config_prc.cxx
  11. 4 0
      panda/metalibs/panda/panda.cxx
  12. 4 0
      panda/src/audio/config_audio.cxx
  13. 4 0
      panda/src/audiotraits/config_fmodAudio.cxx
  14. 4 0
      panda/src/audiotraits/config_milesAudio.cxx
  15. 4 0
      panda/src/audiotraits/config_openalAudio.cxx
  16. 4 0
      panda/src/awesomium/config_awesomium.cxx
  17. 4 0
      panda/src/bullet/config_bullet.cxx
  18. 4 0
      panda/src/chan/config_chan.cxx
  19. 4 0
      panda/src/char/config_char.cxx
  20. 4 0
      panda/src/cocoadisplay/config_cocoadisplay.mm
  21. 4 0
      panda/src/collada/config_collada.cxx
  22. 4 0
      panda/src/collide/config_collide.cxx
  23. 4 0
      panda/src/cull/config_cull.cxx
  24. 4 0
      panda/src/device/config_device.cxx
  25. 4 0
      panda/src/dgraph/config_dgraph.cxx
  26. 4 0
      panda/src/display/config_display.cxx
  27. 4 0
      panda/src/distort/config_distort.cxx
  28. 4 0
      panda/src/downloader/config_downloader.cxx
  29. 4 0
      panda/src/dxgsg9/config_dxgsg9.cxx
  30. 4 0
      panda/src/dxml/config_dxml.cxx
  31. 4 0
      panda/src/egg/config_egg.cxx
  32. 4 0
      panda/src/egg2pg/config_egg2pg.cxx
  33. 4 0
      panda/src/egldisplay/config_egldisplay.cxx
  34. 4 0
      panda/src/event/config_event.cxx
  35. 4 0
      panda/src/express/config_express.cxx
  36. 4 0
      panda/src/ffmpeg/config_ffmpeg.cxx
  37. 4 0
      panda/src/framework/config_framework.cxx
  38. 4 0
      panda/src/gles2gsg/config_gles2gsg.cxx
  39. 4 0
      panda/src/glesgsg/config_glesgsg.cxx
  40. 4 0
      panda/src/glgsg/config_glgsg.cxx
  41. 4 0
      panda/src/glxdisplay/config_glxdisplay.cxx
  42. 4 0
      panda/src/gobj/config_gobj.cxx
  43. 4 0
      panda/src/grutil/config_grutil.cxx
  44. 4 0
      panda/src/gsgbase/config_gsgbase.cxx
  45. 4 0
      panda/src/linmath/config_linmath.cxx
  46. 4 0
      panda/src/mathutil/config_mathutil.cxx
  47. 4 0
      panda/src/movies/config_movies.cxx
  48. 4 0
      panda/src/nativenet/config_nativenet.cxx
  49. 4 0
      panda/src/net/config_net.cxx
  50. 4 0
      panda/src/ode/config_ode.cxx
  51. 4 0
      panda/src/osxdisplay/config_osxdisplay.cxx
  52. 4 0
      panda/src/parametrics/config_parametrics.cxx
  53. 4 0
      panda/src/particlesystem/config_particlesystem.cxx
  54. 4 0
      panda/src/pgraph/config_pgraph.cxx
  55. 4 0
      panda/src/pgraphnodes/config_pgraphnodes.cxx
  56. 4 0
      panda/src/pgui/config_pgui.cxx
  57. 4 0
      panda/src/physics/config_physics.cxx
  58. 4 0
      panda/src/physx/config_physx.cxx
  59. 4 0
      panda/src/pipeline/config_pipeline.cxx
  60. 4 0
      panda/src/pnmimage/config_pnmimage.cxx
  61. 4 0
      panda/src/pnmimagetypes/config_pnmimagetypes.cxx
  62. 4 0
      panda/src/pnmtext/config_pnmtext.cxx
  63. 4 0
      panda/src/pstatclient/config_pstats.cxx
  64. 4 0
      panda/src/putil/config_util.cxx
  65. 4 0
      panda/src/recorder/config_recorder.cxx
  66. 4 0
      panda/src/rocket/config_rocket.cxx
  67. 4 0
      panda/src/skel/config_skel.cxx
  68. 4 0
      panda/src/speedtree/config_speedtree.cxx
  69. 4 0
      panda/src/text/config_text.cxx
  70. 4 0
      panda/src/tform/config_tform.cxx
  71. 4 0
      panda/src/tinydisplay/config_tinydisplay.cxx
  72. 4 0
      panda/src/vision/config_vision.cxx
  73. 4 0
      panda/src/vrpn/config_vrpn.cxx
  74. 4 0
      panda/src/wgldisplay/config_wgldisplay.cxx
  75. 4 0
      panda/src/windisplay/config_windisplay.cxx
  76. 4 0
      panda/src/x11display/config_x11display.cxx

+ 4 - 0
direct/src/deadrec/config_deadrec.cxx

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

+ 4 - 0
direct/src/directd/directd.cxx

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

+ 4 - 0
direct/src/distributed/config_distributed.cxx

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

+ 4 - 0
direct/src/interval/config_interval.cxx

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

+ 4 - 0
direct/src/motiontrail/config_motiontrail.cxx

@@ -14,6 +14,10 @@
 #include "config_motiontrail.h"
 #include "config_motiontrail.h"
 #include "dconfig.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();
 extern EXPCL_DIRECT_MOTIONTRAIL void init_libmotiontrail();
 
 
 Configure(config_motiontrail);
 Configure(config_motiontrail);

+ 4 - 0
direct/src/showbase/showBase.cxx

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

+ 4 - 0
dtool/src/dconfig/config_dconfig.cxx

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

+ 4 - 0
dtool/src/dtoolbase/dtoolbase.cxx

@@ -14,6 +14,10 @@
 #include "dtoolbase.h"
 #include "dtoolbase.h"
 #include "memoryHook.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)
 #if defined(USE_TAU) && defined(WIN32)
 // Hack around tau's lack of DLL export declarations for Profiler class.
 // Hack around tau's lack of DLL export declarations for Profiler class.
 bool __tau_shutdown = false;
 bool __tau_shutdown = false;

+ 4 - 0
dtool/src/dtoolutil/config_dtoolutil.cxx

@@ -16,6 +16,10 @@
 #include "filename.h"
 #include "filename.h"
 #include "pandaSystem.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
  * 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
  * the functions or classes in this library can be used.  Normally it will be

+ 4 - 0
dtool/src/prc/config_prc.cxx

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

+ 4 - 0
panda/metalibs/panda/panda.cxx

@@ -20,6 +20,10 @@
 
 
 #include "checkPandaVersion.h"
 #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
  * 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
  * the functions or classes in this library can be used.  Normally it will be

+ 4 - 0
panda/src/audio/config_audio.cxx

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

+ 4 - 0
panda/src/audiotraits/config_fmodAudio.cxx

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

+ 4 - 0
panda/src/audiotraits/config_milesAudio.cxx

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

+ 4 - 0
panda/src/audiotraits/config_openalAudio.cxx

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

+ 4 - 0
panda/src/awesomium/config_awesomium.cxx

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

+ 4 - 0
panda/src/bullet/config_bullet.cxx

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

+ 4 - 0
panda/src/chan/config_chan.cxx

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

+ 4 - 0
panda/src/char/config_char.cxx

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

+ 4 - 0
panda/src/cocoadisplay/config_cocoadisplay.mm

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

+ 4 - 0
panda/src/collada/config_collada.cxx

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

+ 4 - 0
panda/src/collide/config_collide.cxx

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

+ 4 - 0
panda/src/cull/config_cull.cxx

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

+ 4 - 0
panda/src/device/config_device.cxx

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

+ 4 - 0
panda/src/dgraph/config_dgraph.cxx

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

+ 4 - 0
panda/src/display/config_display.cxx

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

+ 4 - 0
panda/src/distort/config_distort.cxx

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

+ 4 - 0
panda/src/downloader/config_downloader.cxx

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

+ 4 - 0
panda/src/dxgsg9/config_dxgsg9.cxx

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

+ 4 - 0
panda/src/dxml/config_dxml.cxx

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

+ 4 - 0
panda/src/egg/config_egg.cxx

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

+ 4 - 0
panda/src/egg2pg/config_egg2pg.cxx

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

+ 4 - 0
panda/src/egldisplay/config_egldisplay.cxx

@@ -19,6 +19,10 @@
 #include "dconfig.h"
 #include "dconfig.h"
 #include "pandaSystem.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);
 Configure(config_egldisplay);
 NotifyCategoryDef(egldisplay, "display");
 NotifyCategoryDef(egldisplay, "display");
 
 

+ 4 - 0
panda/src/event/config_event.cxx

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

+ 4 - 0
panda/src/express/config_express.cxx

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

+ 4 - 0
panda/src/ffmpeg/config_ffmpeg.cxx

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

+ 4 - 0
panda/src/framework/config_framework.cxx

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

+ 4 - 0
panda/src/gles2gsg/config_gles2gsg.cxx

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

+ 4 - 0
panda/src/glesgsg/config_glesgsg.cxx

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

+ 4 - 0
panda/src/glgsg/config_glgsg.cxx

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

+ 4 - 0
panda/src/glxdisplay/config_glxdisplay.cxx

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

+ 4 - 0
panda/src/gobj/config_gobj.cxx

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

+ 4 - 0
panda/src/grutil/config_grutil.cxx

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

+ 4 - 0
panda/src/gsgbase/config_gsgbase.cxx

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

+ 4 - 0
panda/src/linmath/config_linmath.cxx

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

+ 4 - 0
panda/src/mathutil/config_mathutil.cxx

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

+ 4 - 0
panda/src/movies/config_movies.cxx

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

+ 4 - 0
panda/src/nativenet/config_nativenet.cxx

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

+ 4 - 0
panda/src/net/config_net.cxx

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

+ 4 - 0
panda/src/ode/config_ode.cxx

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

+ 4 - 0
panda/src/osxdisplay/config_osxdisplay.cxx

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

+ 4 - 0
panda/src/parametrics/config_parametrics.cxx

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

+ 4 - 0
panda/src/particlesystem/config_particlesystem.cxx

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

+ 4 - 0
panda/src/pgraph/config_pgraph.cxx

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

+ 4 - 0
panda/src/pgraphnodes/config_pgraphnodes.cxx

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

+ 4 - 0
panda/src/pgui/config_pgui.cxx

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

+ 4 - 0
panda/src/physics/config_physics.cxx

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

+ 4 - 0
panda/src/physx/config_physx.cxx

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

+ 4 - 0
panda/src/pipeline/config_pipeline.cxx

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

+ 4 - 0
panda/src/pnmimage/config_pnmimage.cxx

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

+ 4 - 0
panda/src/pnmimagetypes/config_pnmimagetypes.cxx

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

+ 4 - 0
panda/src/pnmtext/config_pnmtext.cxx

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

+ 4 - 0
panda/src/pstatclient/config_pstats.cxx

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

+ 4 - 0
panda/src/putil/config_util.cxx

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

+ 4 - 0
panda/src/recorder/config_recorder.cxx

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

+ 4 - 0
panda/src/rocket/config_rocket.cxx

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

+ 4 - 0
panda/src/skel/config_skel.cxx

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

+ 4 - 0
panda/src/speedtree/config_speedtree.cxx

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

+ 4 - 0
panda/src/text/config_text.cxx

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

+ 4 - 0
panda/src/tform/config_tform.cxx

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

+ 4 - 0
panda/src/tinydisplay/config_tinydisplay.cxx

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

+ 4 - 0
panda/src/vision/config_vision.cxx

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

+ 4 - 0
panda/src/vrpn/config_vrpn.cxx

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

+ 4 - 0
panda/src/wgldisplay/config_wgldisplay.cxx

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

+ 4 - 0
panda/src/windisplay/config_windisplay.cxx

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

+ 4 - 0
panda/src/x11display/config_x11display.cxx

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