From 9dd37e9dbc361055b64003509275d97784120e84 Mon Sep 17 00:00:00 2001 From: Sam Edwards Date: Fri, 16 Mar 2018 19:51:56 -0600 Subject: [PATCH] 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. --- direct/src/deadrec/config_deadrec.cxx | 4 ++++ direct/src/directd/directd.cxx | 4 ++++ direct/src/distributed/config_distributed.cxx | 4 ++++ direct/src/interval/config_interval.cxx | 4 ++++ direct/src/motiontrail/config_motiontrail.cxx | 4 ++++ direct/src/showbase/showBase.cxx | 4 ++++ dtool/src/dconfig/config_dconfig.cxx | 4 ++++ dtool/src/dtoolbase/dtoolbase.cxx | 4 ++++ dtool/src/dtoolutil/config_dtoolutil.cxx | 4 ++++ dtool/src/prc/config_prc.cxx | 4 ++++ panda/metalibs/panda/panda.cxx | 4 ++++ panda/src/audio/config_audio.cxx | 4 ++++ panda/src/audiotraits/config_fmodAudio.cxx | 4 ++++ panda/src/audiotraits/config_milesAudio.cxx | 4 ++++ panda/src/audiotraits/config_openalAudio.cxx | 4 ++++ panda/src/awesomium/config_awesomium.cxx | 4 ++++ panda/src/bullet/config_bullet.cxx | 4 ++++ panda/src/chan/config_chan.cxx | 4 ++++ panda/src/char/config_char.cxx | 4 ++++ panda/src/cocoadisplay/config_cocoadisplay.mm | 4 ++++ panda/src/collada/config_collada.cxx | 4 ++++ panda/src/collide/config_collide.cxx | 4 ++++ panda/src/cull/config_cull.cxx | 4 ++++ panda/src/device/config_device.cxx | 4 ++++ panda/src/dgraph/config_dgraph.cxx | 4 ++++ panda/src/display/config_display.cxx | 4 ++++ panda/src/distort/config_distort.cxx | 4 ++++ panda/src/downloader/config_downloader.cxx | 4 ++++ panda/src/dxgsg9/config_dxgsg9.cxx | 4 ++++ panda/src/dxml/config_dxml.cxx | 4 ++++ panda/src/egg/config_egg.cxx | 4 ++++ panda/src/egg2pg/config_egg2pg.cxx | 4 ++++ panda/src/egldisplay/config_egldisplay.cxx | 4 ++++ panda/src/event/config_event.cxx | 4 ++++ panda/src/express/config_express.cxx | 4 ++++ panda/src/ffmpeg/config_ffmpeg.cxx | 4 ++++ panda/src/framework/config_framework.cxx | 4 ++++ panda/src/gles2gsg/config_gles2gsg.cxx | 4 ++++ panda/src/glesgsg/config_glesgsg.cxx | 4 ++++ panda/src/glgsg/config_glgsg.cxx | 4 ++++ panda/src/glxdisplay/config_glxdisplay.cxx | 4 ++++ panda/src/gobj/config_gobj.cxx | 4 ++++ panda/src/grutil/config_grutil.cxx | 4 ++++ panda/src/gsgbase/config_gsgbase.cxx | 4 ++++ panda/src/linmath/config_linmath.cxx | 4 ++++ panda/src/mathutil/config_mathutil.cxx | 4 ++++ panda/src/movies/config_movies.cxx | 4 ++++ panda/src/nativenet/config_nativenet.cxx | 4 ++++ panda/src/net/config_net.cxx | 4 ++++ panda/src/ode/config_ode.cxx | 4 ++++ panda/src/osxdisplay/config_osxdisplay.cxx | 4 ++++ panda/src/parametrics/config_parametrics.cxx | 4 ++++ panda/src/particlesystem/config_particlesystem.cxx | 4 ++++ panda/src/pgraph/config_pgraph.cxx | 4 ++++ panda/src/pgraphnodes/config_pgraphnodes.cxx | 4 ++++ panda/src/pgui/config_pgui.cxx | 4 ++++ panda/src/physics/config_physics.cxx | 4 ++++ panda/src/physx/config_physx.cxx | 4 ++++ panda/src/pipeline/config_pipeline.cxx | 4 ++++ panda/src/pnmimage/config_pnmimage.cxx | 4 ++++ panda/src/pnmimagetypes/config_pnmimagetypes.cxx | 4 ++++ panda/src/pnmtext/config_pnmtext.cxx | 4 ++++ panda/src/pstatclient/config_pstats.cxx | 4 ++++ panda/src/putil/config_util.cxx | 4 ++++ panda/src/recorder/config_recorder.cxx | 4 ++++ panda/src/rocket/config_rocket.cxx | 4 ++++ panda/src/skel/config_skel.cxx | 4 ++++ panda/src/speedtree/config_speedtree.cxx | 4 ++++ panda/src/text/config_text.cxx | 4 ++++ panda/src/tform/config_tform.cxx | 4 ++++ panda/src/tinydisplay/config_tinydisplay.cxx | 4 ++++ panda/src/vision/config_vision.cxx | 4 ++++ panda/src/vrpn/config_vrpn.cxx | 4 ++++ panda/src/wgldisplay/config_wgldisplay.cxx | 4 ++++ panda/src/windisplay/config_windisplay.cxx | 4 ++++ panda/src/x11display/config_x11display.cxx | 4 ++++ 76 files changed, 304 insertions(+) diff --git a/direct/src/deadrec/config_deadrec.cxx b/direct/src/deadrec/config_deadrec.cxx index 72c8c15a14..eb1c43a9c6 100644 --- a/direct/src/deadrec/config_deadrec.cxx +++ b/direct/src/deadrec/config_deadrec.cxx @@ -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, ""); diff --git a/direct/src/directd/directd.cxx b/direct/src/directd/directd.cxx index 111a4fd847..1b4601fc41 100644 --- a/direct/src/directd/directd.cxx +++ b/direct/src/directd/directd.cxx @@ -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 diff --git a/direct/src/distributed/config_distributed.cxx b/direct/src/distributed/config_distributed.cxx index 9420bd05df..312964568f 100644 --- a/direct/src/distributed/config_distributed.cxx +++ b/direct/src/distributed/config_distributed.cxx @@ -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, ""); diff --git a/direct/src/interval/config_interval.cxx b/direct/src/interval/config_interval.cxx index d88711c8b9..f56ce67e17 100644 --- a/direct/src/interval/config_interval.cxx +++ b/direct/src/interval/config_interval.cxx @@ -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, ""); diff --git a/direct/src/motiontrail/config_motiontrail.cxx b/direct/src/motiontrail/config_motiontrail.cxx index 0907457acd..997a1a3059 100644 --- a/direct/src/motiontrail/config_motiontrail.cxx +++ b/direct/src/motiontrail/config_motiontrail.cxx @@ -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); diff --git a/direct/src/showbase/showBase.cxx b/direct/src/showbase/showBase.cxx index fabc7a9497..12aa08d4bd 100644 --- a/direct/src/showbase/showBase.cxx +++ b/direct/src/showbase/showBase.cxx @@ -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) { } diff --git a/dtool/src/dconfig/config_dconfig.cxx b/dtool/src/dconfig/config_dconfig.cxx index 49708e719a..d0800084ca 100644 --- a/dtool/src/dconfig/config_dconfig.cxx +++ b/dtool/src/dconfig/config_dconfig.cxx @@ -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"); diff --git a/dtool/src/dtoolbase/dtoolbase.cxx b/dtool/src/dtoolbase/dtoolbase.cxx index 75f25ad253..64b7425057 100644 --- a/dtool/src/dtoolbase/dtoolbase.cxx +++ b/dtool/src/dtoolbase/dtoolbase.cxx @@ -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; diff --git a/dtool/src/dtoolutil/config_dtoolutil.cxx b/dtool/src/dtoolutil/config_dtoolutil.cxx index eb45fa2f3e..98b3c42760 100644 --- a/dtool/src/dtoolutil/config_dtoolutil.cxx +++ b/dtool/src/dtoolutil/config_dtoolutil.cxx @@ -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 diff --git a/dtool/src/prc/config_prc.cxx b/dtool/src/prc/config_prc.cxx index f2a57d1993..2728e642bd 100644 --- a/dtool/src/prc/config_prc.cxx +++ b/dtool/src/prc/config_prc.cxx @@ -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 diff --git a/panda/metalibs/panda/panda.cxx b/panda/metalibs/panda/panda.cxx index 67620867e3..d3a3b0c24a 100644 --- a/panda/metalibs/panda/panda.cxx +++ b/panda/metalibs/panda/panda.cxx @@ -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 diff --git a/panda/src/audio/config_audio.cxx b/panda/src/audio/config_audio.cxx index e59b3c73ef..0f58e56a32 100644 --- a/panda/src/audio/config_audio.cxx +++ b/panda/src/audio/config_audio.cxx @@ -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, ""); diff --git a/panda/src/audiotraits/config_fmodAudio.cxx b/panda/src/audiotraits/config_fmodAudio.cxx index affc593636..f0a188fbc5 100644 --- a/panda/src/audiotraits/config_fmodAudio.cxx +++ b/panda/src/audiotraits/config_fmodAudio.cxx @@ -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"); diff --git a/panda/src/audiotraits/config_milesAudio.cxx b/panda/src/audiotraits/config_milesAudio.cxx index 6f3f29dddb..6877b3700e 100644 --- a/panda/src/audiotraits/config_milesAudio.cxx +++ b/panda/src/audiotraits/config_milesAudio.cxx @@ -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"); diff --git a/panda/src/audiotraits/config_openalAudio.cxx b/panda/src/audiotraits/config_openalAudio.cxx index a3340477c2..ad51368d75 100644 --- a/panda/src/audiotraits/config_openalAudio.cxx +++ b/panda/src/audiotraits/config_openalAudio.cxx @@ -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"); diff --git a/panda/src/awesomium/config_awesomium.cxx b/panda/src/awesomium/config_awesomium.cxx index 4462dce983..95ce655fe7 100644 --- a/panda/src/awesomium/config_awesomium.cxx +++ b/panda/src/awesomium/config_awesomium.cxx @@ -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, ""); diff --git a/panda/src/bullet/config_bullet.cxx b/panda/src/bullet/config_bullet.cxx index 9878a9f038..4e228427b9 100644 --- a/panda/src/bullet/config_bullet.cxx +++ b/panda/src/bullet/config_bullet.cxx @@ -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, ""); diff --git a/panda/src/chan/config_chan.cxx b/panda/src/chan/config_chan.cxx index 9772f2d661..8992cfbbf9 100644 --- a/panda/src/chan/config_chan.cxx +++ b/panda/src/chan/config_chan.cxx @@ -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, ""); diff --git a/panda/src/char/config_char.cxx b/panda/src/char/config_char.cxx index f3a8cc6836..5d536bfc4c 100644 --- a/panda/src/char/config_char.cxx +++ b/panda/src/char/config_char.cxx @@ -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, ""); diff --git a/panda/src/cocoadisplay/config_cocoadisplay.mm b/panda/src/cocoadisplay/config_cocoadisplay.mm index 42f2f98a8f..c88177cf66 100644 --- a/panda/src/cocoadisplay/config_cocoadisplay.mm +++ b/panda/src/cocoadisplay/config_cocoadisplay.mm @@ -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"); diff --git a/panda/src/collada/config_collada.cxx b/panda/src/collada/config_collada.cxx index 81404110f2..fa97023656 100644 --- a/panda/src/collada/config_collada.cxx +++ b/panda/src/collada/config_collada.cxx @@ -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, ""); diff --git a/panda/src/collide/config_collide.cxx b/panda/src/collide/config_collide.cxx index e1999cd147..01d517df04 100644 --- a/panda/src/collide/config_collide.cxx +++ b/panda/src/collide/config_collide.cxx @@ -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, ""); diff --git a/panda/src/cull/config_cull.cxx b/panda/src/cull/config_cull.cxx index a3b4b4881a..452c69ea0c 100644 --- a/panda/src/cull/config_cull.cxx +++ b/panda/src/cull/config_cull.cxx @@ -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, ""); diff --git a/panda/src/device/config_device.cxx b/panda/src/device/config_device.cxx index 51f1159f33..eb8d1a2f10 100644 --- a/panda/src/device/config_device.cxx +++ b/panda/src/device/config_device.cxx @@ -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, ""); diff --git a/panda/src/dgraph/config_dgraph.cxx b/panda/src/dgraph/config_dgraph.cxx index fbaec8b78d..3c91aeea18 100644 --- a/panda/src/dgraph/config_dgraph.cxx +++ b/panda/src/dgraph/config_dgraph.cxx @@ -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, ""); diff --git a/panda/src/display/config_display.cxx b/panda/src/display/config_display.cxx index 391a7e8676..0d3fea3937 100644 --- a/panda/src/display/config_display.cxx +++ b/panda/src/display/config_display.cxx @@ -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); diff --git a/panda/src/distort/config_distort.cxx b/panda/src/distort/config_distort.cxx index 7dc7055c3c..eaa0147dae 100644 --- a/panda/src/distort/config_distort.cxx +++ b/panda/src/distort/config_distort.cxx @@ -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, ""); diff --git a/panda/src/downloader/config_downloader.cxx b/panda/src/downloader/config_downloader.cxx index c1db208d01..9c806dba07 100644 --- a/panda/src/downloader/config_downloader.cxx +++ b/panda/src/downloader/config_downloader.cxx @@ -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, ""); diff --git a/panda/src/dxgsg9/config_dxgsg9.cxx b/panda/src/dxgsg9/config_dxgsg9.cxx index 64831d08c9..d5777602db 100644 --- a/panda/src/dxgsg9/config_dxgsg9.cxx +++ b/panda/src/dxgsg9/config_dxgsg9.cxx @@ -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"); diff --git a/panda/src/dxml/config_dxml.cxx b/panda/src/dxml/config_dxml.cxx index e6691bc676..7e25a58c3a 100644 --- a/panda/src/dxml/config_dxml.cxx +++ b/panda/src/dxml/config_dxml.cxx @@ -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, ""); diff --git a/panda/src/egg/config_egg.cxx b/panda/src/egg/config_egg.cxx index 83d11dad04..65e08efcbc 100644 --- a/panda/src/egg/config_egg.cxx +++ b/panda/src/egg/config_egg.cxx @@ -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, ""); diff --git a/panda/src/egg2pg/config_egg2pg.cxx b/panda/src/egg2pg/config_egg2pg.cxx index 79c3e40a2b..f864a8f4d8 100644 --- a/panda/src/egg2pg/config_egg2pg.cxx +++ b/panda/src/egg2pg/config_egg2pg.cxx @@ -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, ""); diff --git a/panda/src/egldisplay/config_egldisplay.cxx b/panda/src/egldisplay/config_egldisplay.cxx index 809e73916c..9f9bf13770 100644 --- a/panda/src/egldisplay/config_egldisplay.cxx +++ b/panda/src/egldisplay/config_egldisplay.cxx @@ -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"); diff --git a/panda/src/event/config_event.cxx b/panda/src/event/config_event.cxx index 85727d2d7c..c7f1c8eecc 100644 --- a/panda/src/event/config_event.cxx +++ b/panda/src/event/config_event.cxx @@ -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, ""); diff --git a/panda/src/express/config_express.cxx b/panda/src/express/config_express.cxx index 042b6d8db1..d86e300436 100644 --- a/panda/src/express/config_express.cxx +++ b/panda/src/express/config_express.cxx @@ -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"); diff --git a/panda/src/ffmpeg/config_ffmpeg.cxx b/panda/src/ffmpeg/config_ffmpeg.cxx index f0d6a5518e..8cbc9f51ec 100644 --- a/panda/src/ffmpeg/config_ffmpeg.cxx +++ b/panda/src/ffmpeg/config_ffmpeg.cxx @@ -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, ""); diff --git a/panda/src/framework/config_framework.cxx b/panda/src/framework/config_framework.cxx index e5c5d42e70..8746d5bff0 100644 --- a/panda/src/framework/config_framework.cxx +++ b/panda/src/framework/config_framework.cxx @@ -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, ""); diff --git a/panda/src/gles2gsg/config_gles2gsg.cxx b/panda/src/gles2gsg/config_gles2gsg.cxx index 3935783653..aee9c925fb 100644 --- a/panda/src/gles2gsg/config_gles2gsg.cxx +++ b/panda/src/gles2gsg/config_gles2gsg.cxx @@ -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"); diff --git a/panda/src/glesgsg/config_glesgsg.cxx b/panda/src/glesgsg/config_glesgsg.cxx index a1c0496cfc..b30cf23322 100644 --- a/panda/src/glesgsg/config_glesgsg.cxx +++ b/panda/src/glesgsg/config_glesgsg.cxx @@ -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"); diff --git a/panda/src/glgsg/config_glgsg.cxx b/panda/src/glgsg/config_glgsg.cxx index 8f98e49717..6e60169acc 100644 --- a/panda/src/glgsg/config_glgsg.cxx +++ b/panda/src/glgsg/config_glgsg.cxx @@ -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"); diff --git a/panda/src/glxdisplay/config_glxdisplay.cxx b/panda/src/glxdisplay/config_glxdisplay.cxx index b253c0abf9..fffcd2c264 100644 --- a/panda/src/glxdisplay/config_glxdisplay.cxx +++ b/panda/src/glxdisplay/config_glxdisplay.cxx @@ -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"); diff --git a/panda/src/gobj/config_gobj.cxx b/panda/src/gobj/config_gobj.cxx index 058d7463a4..d152f6ebcf 100644 --- a/panda/src/gobj/config_gobj.cxx +++ b/panda/src/gobj/config_gobj.cxx @@ -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, ""); diff --git a/panda/src/grutil/config_grutil.cxx b/panda/src/grutil/config_grutil.cxx index 94613f4da6..337abd11bb 100644 --- a/panda/src/grutil/config_grutil.cxx +++ b/panda/src/grutil/config_grutil.cxx @@ -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, ""); diff --git a/panda/src/gsgbase/config_gsgbase.cxx b/panda/src/gsgbase/config_gsgbase.cxx index 2e5ce60aa9..52da83f9c8 100644 --- a/panda/src/gsgbase/config_gsgbase.cxx +++ b/panda/src/gsgbase/config_gsgbase.cxx @@ -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) { diff --git a/panda/src/linmath/config_linmath.cxx b/panda/src/linmath/config_linmath.cxx index 93cf571c40..fb0942aa55 100644 --- a/panda/src/linmath/config_linmath.cxx +++ b/panda/src/linmath/config_linmath.cxx @@ -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, ""); diff --git a/panda/src/mathutil/config_mathutil.cxx b/panda/src/mathutil/config_mathutil.cxx index 2226b67946..2084b2b670 100644 --- a/panda/src/mathutil/config_mathutil.cxx +++ b/panda/src/mathutil/config_mathutil.cxx @@ -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, ""); diff --git a/panda/src/movies/config_movies.cxx b/panda/src/movies/config_movies.cxx index 4884c15f5b..93448cfe8d 100644 --- a/panda/src/movies/config_movies.cxx +++ b/panda/src/movies/config_movies.cxx @@ -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, ""); diff --git a/panda/src/nativenet/config_nativenet.cxx b/panda/src/nativenet/config_nativenet.cxx index c74a8ca6e2..172e56afa8 100644 --- a/panda/src/nativenet/config_nativenet.cxx +++ b/panda/src/nativenet/config_nativenet.cxx @@ -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, ""); diff --git a/panda/src/net/config_net.cxx b/panda/src/net/config_net.cxx index aafea6fc49..ae717bb580 100644 --- a/panda/src/net/config_net.cxx +++ b/panda/src/net/config_net.cxx @@ -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, ""); diff --git a/panda/src/ode/config_ode.cxx b/panda/src/ode/config_ode.cxx index 1994fe1254..214281d579 100644 --- a/panda/src/ode/config_ode.cxx +++ b/panda/src/ode/config_ode.cxx @@ -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"); diff --git a/panda/src/osxdisplay/config_osxdisplay.cxx b/panda/src/osxdisplay/config_osxdisplay.cxx index 943fe57937..4ac68f5e58 100644 --- a/panda/src/osxdisplay/config_osxdisplay.cxx +++ b/panda/src/osxdisplay/config_osxdisplay.cxx @@ -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"); diff --git a/panda/src/parametrics/config_parametrics.cxx b/panda/src/parametrics/config_parametrics.cxx index 93a6e3841f..2b07e493bd 100644 --- a/panda/src/parametrics/config_parametrics.cxx +++ b/panda/src/parametrics/config_parametrics.cxx @@ -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, ""); diff --git a/panda/src/particlesystem/config_particlesystem.cxx b/panda/src/particlesystem/config_particlesystem.cxx index 9c2d9e6a09..0eba6c33f1 100644 --- a/panda/src/particlesystem/config_particlesystem.cxx +++ b/panda/src/particlesystem/config_particlesystem.cxx @@ -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, ""); diff --git a/panda/src/pgraph/config_pgraph.cxx b/panda/src/pgraph/config_pgraph.cxx index 237c1d0011..54fa621f7b 100644 --- a/panda/src/pgraph/config_pgraph.cxx +++ b/panda/src/pgraph/config_pgraph.cxx @@ -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, ""); diff --git a/panda/src/pgraphnodes/config_pgraphnodes.cxx b/panda/src/pgraphnodes/config_pgraphnodes.cxx index f512110858..3879a980b3 100644 --- a/panda/src/pgraphnodes/config_pgraphnodes.cxx +++ b/panda/src/pgraphnodes/config_pgraphnodes.cxx @@ -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, ""); diff --git a/panda/src/pgui/config_pgui.cxx b/panda/src/pgui/config_pgui.cxx index 7a1682cc96..c2c3e72405 100644 --- a/panda/src/pgui/config_pgui.cxx +++ b/panda/src/pgui/config_pgui.cxx @@ -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, ""); diff --git a/panda/src/physics/config_physics.cxx b/panda/src/physics/config_physics.cxx index c0db4dcdf4..5ce5c905f0 100644 --- a/panda/src/physics/config_physics.cxx +++ b/panda/src/physics/config_physics.cxx @@ -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, ""); diff --git a/panda/src/physx/config_physx.cxx b/panda/src/physx/config_physx.cxx index e7a4a653e1..4880e37e88 100644 --- a/panda/src/physx/config_physx.cxx +++ b/panda/src/physx/config_physx.cxx @@ -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, ""); diff --git a/panda/src/pipeline/config_pipeline.cxx b/panda/src/pipeline/config_pipeline.cxx index 6dc24178f0..8f82307c86 100644 --- a/panda/src/pipeline/config_pipeline.cxx +++ b/panda/src/pipeline/config_pipeline.cxx @@ -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, ""); diff --git a/panda/src/pnmimage/config_pnmimage.cxx b/panda/src/pnmimage/config_pnmimage.cxx index 1cb8b24bf8..5bb734cf85 100644 --- a/panda/src/pnmimage/config_pnmimage.cxx +++ b/panda/src/pnmimage/config_pnmimage.cxx @@ -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, ""); diff --git a/panda/src/pnmimagetypes/config_pnmimagetypes.cxx b/panda/src/pnmimagetypes/config_pnmimagetypes.cxx index 2fc23d574a..b115aa5213 100644 --- a/panda/src/pnmimagetypes/config_pnmimagetypes.cxx +++ b/panda/src/pnmimagetypes/config_pnmimagetypes.cxx @@ -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); diff --git a/panda/src/pnmtext/config_pnmtext.cxx b/panda/src/pnmtext/config_pnmtext.cxx index b806b8d048..a0a627aca7 100644 --- a/panda/src/pnmtext/config_pnmtext.cxx +++ b/panda/src/pnmtext/config_pnmtext.cxx @@ -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, ""); diff --git a/panda/src/pstatclient/config_pstats.cxx b/panda/src/pstatclient/config_pstats.cxx index 4a25d9e85c..dcd49a4365 100644 --- a/panda/src/pstatclient/config_pstats.cxx +++ b/panda/src/pstatclient/config_pstats.cxx @@ -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, ""); diff --git a/panda/src/putil/config_util.cxx b/panda/src/putil/config_util.cxx index 516c98ce6a..c5956adc2b 100644 --- a/panda/src/putil/config_util.cxx +++ b/panda/src/putil/config_util.cxx @@ -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); diff --git a/panda/src/recorder/config_recorder.cxx b/panda/src/recorder/config_recorder.cxx index 6057362134..97335e17cd 100644 --- a/panda/src/recorder/config_recorder.cxx +++ b/panda/src/recorder/config_recorder.cxx @@ -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, ""); diff --git a/panda/src/rocket/config_rocket.cxx b/panda/src/rocket/config_rocket.cxx index b4a43f8127..4de7bf3e28 100644 --- a/panda/src/rocket/config_rocket.cxx +++ b/panda/src/rocket/config_rocket.cxx @@ -26,6 +26,10 @@ #include #undef Factory +#if !defined(CPPPARSER) && !defined(BUILDING_ROCKET) + #error Buildsystem error: BUILDING_ROCKET not defined +#endif + Configure(config_rocket); NotifyCategoryDef(rocket, ""); diff --git a/panda/src/skel/config_skel.cxx b/panda/src/skel/config_skel.cxx index 2c307d3270..5fa6f6595c 100644 --- a/panda/src/skel/config_skel.cxx +++ b/panda/src/skel/config_skel.cxx @@ -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, ""); diff --git a/panda/src/speedtree/config_speedtree.cxx b/panda/src/speedtree/config_speedtree.cxx index fd4eb3cd5a..b386bcb59a 100644 --- a/panda/src/speedtree/config_speedtree.cxx +++ b/panda/src/speedtree/config_speedtree.cxx @@ -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, ""); diff --git a/panda/src/text/config_text.cxx b/panda/src/text/config_text.cxx index 9475eabf55..2fff80cd0c 100644 --- a/panda/src/text/config_text.cxx +++ b/panda/src/text/config_text.cxx @@ -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, ""); diff --git a/panda/src/tform/config_tform.cxx b/panda/src/tform/config_tform.cxx index 1bbb3a7e57..b8a578d07c 100644 --- a/panda/src/tform/config_tform.cxx +++ b/panda/src/tform/config_tform.cxx @@ -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, ""); diff --git a/panda/src/tinydisplay/config_tinydisplay.cxx b/panda/src/tinydisplay/config_tinydisplay.cxx index 228be9a1ee..31ef112ee5 100644 --- a/panda/src/tinydisplay/config_tinydisplay.cxx +++ b/panda/src/tinydisplay/config_tinydisplay.cxx @@ -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"); diff --git a/panda/src/vision/config_vision.cxx b/panda/src/vision/config_vision.cxx index 50d4b8aeb3..ffe3719962 100644 --- a/panda/src/vision/config_vision.cxx +++ b/panda/src/vision/config_vision.cxx @@ -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, ""); diff --git a/panda/src/vrpn/config_vrpn.cxx b/panda/src/vrpn/config_vrpn.cxx index 77d2b198ee..cc577bd328 100644 --- a/panda/src/vrpn/config_vrpn.cxx +++ b/panda/src/vrpn/config_vrpn.cxx @@ -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, ""); diff --git a/panda/src/wgldisplay/config_wgldisplay.cxx b/panda/src/wgldisplay/config_wgldisplay.cxx index 9cd4a149f3..93dc2ad36c 100644 --- a/panda/src/wgldisplay/config_wgldisplay.cxx +++ b/panda/src/wgldisplay/config_wgldisplay.cxx @@ -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"); diff --git a/panda/src/windisplay/config_windisplay.cxx b/panda/src/windisplay/config_windisplay.cxx index 65447af18d..1af5cf95da 100644 --- a/panda/src/windisplay/config_windisplay.cxx +++ b/panda/src/windisplay/config_windisplay.cxx @@ -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"); diff --git a/panda/src/x11display/config_x11display.cxx b/panda/src/x11display/config_x11display.cxx index c2b89c42b2..bca59d5a17 100644 --- a/panda/src/x11display/config_x11display.cxx +++ b/panda/src/x11display/config_x11display.cxx @@ -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");