From 8fb0e507e2728955ee0e1f97d136f6acf7916d2d Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Fri, 1 Jun 2001 04:28:41 +0000 Subject: [PATCH] use precomp hdrs --- panda/src/cull/Sources.pp | 4 +- panda/src/cull/config_cull.cxx | 15 +----- panda/src/cull/cullState.cxx | 8 +-- panda/src/cull/cullStateLookup.cxx | 7 +-- panda/src/cull/cullStateSubtree.cxx | 4 +- panda/src/cull/cullTraverser.cxx | 24 +-------- panda/src/cull/cull_headers.h | 59 +++++++++++++++++++++++ panda/src/cull/directRenderTransition.cxx | 5 +- panda/src/cull/geomBin.cxx | 14 +----- panda/src/cull/geomBinAttribute.cxx | 9 +--- panda/src/cull/geomBinBackToFront.cxx | 11 +---- panda/src/cull/geomBinFixed.cxx | 12 +---- panda/src/cull/geomBinGroup.cxx | 8 +-- panda/src/cull/geomBinNormal.cxx | 9 +--- panda/src/cull/geomBinTransition.cxx | 8 +-- panda/src/cull/geomBinUnsorted.cxx | 9 +--- panda/src/device/Sources.pp | 4 +- panda/src/device/analogNode.cxx | 4 +- panda/src/device/buttonNode.cxx | 6 +-- panda/src/device/clientAnalogDevice.cxx | 5 +- panda/src/device/clientBase.cxx | 4 +- panda/src/device/clientButtonDevice.cxx | 5 +- panda/src/device/clientDevice.cxx | 6 +-- panda/src/device/clientDialDevice.cxx | 5 +- panda/src/device/clientTrackerDevice.cxx | 3 +- panda/src/device/config_device.cxx | 16 +----- panda/src/device/device_headers.h | 41 ++++++++++++++++ panda/src/device/dialNode.cxx | 4 +- panda/src/device/mouse.cxx | 7 +-- panda/src/device/trackerData.cxx | 3 +- panda/src/device/trackerNode.cxx | 4 +- 31 files changed, 160 insertions(+), 163 deletions(-) create mode 100644 panda/src/cull/cull_headers.h create mode 100644 panda/src/device/device_headers.h diff --git a/panda/src/cull/Sources.pp b/panda/src/cull/Sources.pp index 1d07bcb1bb..eaf30ac237 100644 --- a/panda/src/cull/Sources.pp +++ b/panda/src/cull/Sources.pp @@ -1,6 +1,6 @@ #define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \ dtoolutil:c dtoolbase:c dtool:m - + #begin lib_target #define TARGET cull #define LOCAL_LIBS \ @@ -34,6 +34,8 @@ geomBinUnsorted.h #define IGATESCAN all + + #define PRECOMPILED_HEADER cull_headers.h #end lib_target diff --git a/panda/src/cull/config_cull.cxx b/panda/src/cull/config_cull.cxx index d87b814369..292aaf9f05 100644 --- a/panda/src/cull/config_cull.cxx +++ b/panda/src/cull/config_cull.cxx @@ -16,19 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "config_cull.h" -#include "cullTraverser.h" -#include "geomBin.h" -#include "geomBinUnsorted.h" -#include "geomBinBackToFront.h" -#include "geomBinGroup.h" -#include "geomBinNormal.h" -#include "geomBinTransition.h" -#include "geomBinAttribute.h" -#include "geomBinFixed.h" -#include "directRenderTransition.h" - -#include +#include "cull_headers.h" +#pragma hdrstop ConfigureDef(config_cull); NotifyCategoryDef(cull, ""); diff --git a/panda/src/cull/cullState.cxx b/panda/src/cull/cullState.cxx index 5c974fcbf5..564a638bfd 100644 --- a/panda/src/cull/cullState.cxx +++ b/panda/src/cull/cullState.cxx @@ -16,12 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "cullState.h" -#include "config_cull.h" - -#include -#include -#include +#include "cull_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Function: CullState::check_currency diff --git a/panda/src/cull/cullStateLookup.cxx b/panda/src/cull/cullStateLookup.cxx index b8b580f4ce..e9cb25b5ad 100644 --- a/panda/src/cull/cullStateLookup.cxx +++ b/panda/src/cull/cullStateLookup.cxx @@ -16,11 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "cullStateLookup.h" -#include "cullState.h" -#include "cullStateSubtree.h" - -#include +#include "cull_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Function: CullStateLookup::Destructor diff --git a/panda/src/cull/cullStateSubtree.cxx b/panda/src/cull/cullStateSubtree.cxx index 89d332ac4b..4992e61aba 100644 --- a/panda/src/cull/cullStateSubtree.cxx +++ b/panda/src/cull/cullStateSubtree.cxx @@ -16,8 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "cullStateSubtree.h" -#include "config_cull.h" +#include "cull_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// diff --git a/panda/src/cull/cullTraverser.cxx b/panda/src/cull/cullTraverser.cxx index d93ba8d35e..201b1845a3 100644 --- a/panda/src/cull/cullTraverser.cxx +++ b/panda/src/cull/cullTraverser.cxx @@ -16,28 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "cullTraverser.h" -#include "geomBinTransition.h" -#include "geomBinAttribute.h" -#include "cullStateSubtree.h" -#include "geomBinNormal.h" -#include "geomBinFixed.h" -#include "directRenderTransition.h" -#include "config_cull.h" - -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include // for implicit_app_traversal -#include // for support_decals -#include -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle CullTraverser::_type_handle; diff --git a/panda/src/cull/cull_headers.h b/panda/src/cull/cull_headers.h new file mode 100644 index 0000000000..5736d19af4 --- /dev/null +++ b/panda/src/cull/cull_headers.h @@ -0,0 +1,59 @@ +// Filename: cull_headers.h +// Created by: georges (30May01) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved +// +// All use of this software is subject to the terms of the Panda 3d +// Software license. You should have received a copy of this license +// along with this source code; you will also find a current copy of +// the license at http://www.panda3d.org/license.txt . +// +// To contact the maintainers of this program write to +// panda3d@yahoogroups.com . +// +//////////////////////////////////////////////////////////////////// + +#include +#include // for support_decals +#include // for implicit_app_traversal +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include "config_cull.h" +#include "cullState.h" +#include "cullStateLookup.h" +#include "cullStateSubtree.h" +#include "cullTraverser.h" +#include "directRenderTransition.h" +#include "geomBin.h" +#include "geomBinAttribute.h" +#include "geomBinBackToFront.h" +#include "geomBinFixed.h" +#include "geomBinGroup.h" +#include "geomBinNormal.h" +#include "geomBinTransition.h" +#include "geomBinUnsorted.h" + +#pragma hdrstop + diff --git a/panda/src/cull/directRenderTransition.cxx b/panda/src/cull/directRenderTransition.cxx index 783c3fce6f..e04e0ff985 100644 --- a/panda/src/cull/directRenderTransition.cxx +++ b/panda/src/cull/directRenderTransition.cxx @@ -16,9 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "directRenderTransition.h" - -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle DirectRenderTransition::_type_handle; diff --git a/panda/src/cull/geomBin.cxx b/panda/src/cull/geomBin.cxx index a1ee937622..96e424862b 100644 --- a/panda/src/cull/geomBin.cxx +++ b/panda/src/cull/geomBin.cxx @@ -16,18 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "geomBin.h" -#include "cullTraverser.h" -#include "config_cull.h" -#include "geomBinNormal.h" -#include "geomBinUnsorted.h" -#include "geomBinFixed.h" -#include "geomBinBackToFront.h" - -#include -#include -#include -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle GeomBin::_type_handle; diff --git a/panda/src/cull/geomBinAttribute.cxx b/panda/src/cull/geomBinAttribute.cxx index 2778b0eeec..6bcf2558fc 100644 --- a/panda/src/cull/geomBinAttribute.cxx +++ b/panda/src/cull/geomBinAttribute.cxx @@ -16,13 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "geomBinAttribute.h" -#include "geomBinTransition.h" - -#include -#include - -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle GeomBinAttribute::_type_handle; diff --git a/panda/src/cull/geomBinBackToFront.cxx b/panda/src/cull/geomBinBackToFront.cxx index 3e677e0621..260808c696 100644 --- a/panda/src/cull/geomBinBackToFront.cxx +++ b/panda/src/cull/geomBinBackToFront.cxx @@ -16,15 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "geomBinBackToFront.h" -#include "cullTraverser.h" - -#include -#include -#include -#include -#include -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle GeomBinBackToFront::_type_handle; diff --git a/panda/src/cull/geomBinFixed.cxx b/panda/src/cull/geomBinFixed.cxx index 5a673c0972..2332771354 100644 --- a/panda/src/cull/geomBinFixed.cxx +++ b/panda/src/cull/geomBinFixed.cxx @@ -16,16 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "geomBinFixed.h" -#include "cullTraverser.h" - -#include -#include -#include -#include -#include -#include -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle GeomBinFixed::_type_handle; diff --git a/panda/src/cull/geomBinGroup.cxx b/panda/src/cull/geomBinGroup.cxx index 6200e961fa..5c9246e781 100644 --- a/panda/src/cull/geomBinGroup.cxx +++ b/panda/src/cull/geomBinGroup.cxx @@ -16,12 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "geomBinGroup.h" -#include "cullTraverser.h" - -#include -#include -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle GeomBinGroup::_type_handle; diff --git a/panda/src/cull/geomBinNormal.cxx b/panda/src/cull/geomBinNormal.cxx index 1c94f0c307..e4c549ad8f 100644 --- a/panda/src/cull/geomBinNormal.cxx +++ b/panda/src/cull/geomBinNormal.cxx @@ -16,13 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "geomBinNormal.h" -#include "geomBinUnsorted.h" -#include "geomBinBackToFront.h" - -#include -#include -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle GeomBinNormal::_type_handle; diff --git a/panda/src/cull/geomBinTransition.cxx b/panda/src/cull/geomBinTransition.cxx index 239471f0b2..2b27ea2710 100644 --- a/panda/src/cull/geomBinTransition.cxx +++ b/panda/src/cull/geomBinTransition.cxx @@ -16,12 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "geomBinTransition.h" -#include "geomBinAttribute.h" - -#include - -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle GeomBinTransition::_type_handle; diff --git a/panda/src/cull/geomBinUnsorted.cxx b/panda/src/cull/geomBinUnsorted.cxx index c98d59d1be..b902319347 100644 --- a/panda/src/cull/geomBinUnsorted.cxx +++ b/panda/src/cull/geomBinUnsorted.cxx @@ -16,13 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "geomBinUnsorted.h" -#include "cullTraverser.h" - -#include -#include -#include -#include +#include "cull_headers.h" +#pragma hdrstop TypeHandle GeomBinUnsorted::_type_handle; diff --git a/panda/src/device/Sources.pp b/panda/src/device/Sources.pp index 2412770ef1..99cc4445a9 100644 --- a/panda/src/device/Sources.pp +++ b/panda/src/device/Sources.pp @@ -1,6 +1,6 @@ #define OTHER_LIBS interrogatedb:c dconfig:c dtoolconfig:m \ dtoolutil:c dtoolbase:c dtool:m - + #begin lib_target #define TARGET device #define LOCAL_LIBS \ @@ -35,6 +35,8 @@ trackerData.I trackerData.h \ trackerNode.I trackerNode.h + #define PRECOMPILED_HEADER device_headers.h + #define IGATESCAN all #end lib_target diff --git a/panda/src/device/analogNode.cxx b/panda/src/device/analogNode.cxx index 5b8fcd175b..2c9d983734 100644 --- a/panda/src/device/analogNode.cxx +++ b/panda/src/device/analogNode.cxx @@ -16,8 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "analogNode.h" -#include "config_device.h" +#include "device_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Static variables diff --git a/panda/src/device/buttonNode.cxx b/panda/src/device/buttonNode.cxx index dbd9a71958..3bf3a88aa6 100644 --- a/panda/src/device/buttonNode.cxx +++ b/panda/src/device/buttonNode.cxx @@ -16,10 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "buttonNode.h" -#include "config_device.h" - -#include +#include "device_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Static variables diff --git a/panda/src/device/clientAnalogDevice.cxx b/panda/src/device/clientAnalogDevice.cxx index f9dca4c8f8..0af78e1ac2 100644 --- a/panda/src/device/clientAnalogDevice.cxx +++ b/panda/src/device/clientAnalogDevice.cxx @@ -16,9 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "clientAnalogDevice.h" - -#include +#include "device_headers.h" +#pragma hdrstop TypeHandle ClientAnalogDevice::_type_handle; diff --git a/panda/src/device/clientBase.cxx b/panda/src/device/clientBase.cxx index be0ed0223a..132fcb081b 100644 --- a/panda/src/device/clientBase.cxx +++ b/panda/src/device/clientBase.cxx @@ -16,8 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "clientBase.h" -#include "config_device.h" +#include "device_headers.h" +#pragma hdrstop TypeHandle ClientBase::_type_handle; diff --git a/panda/src/device/clientButtonDevice.cxx b/panda/src/device/clientButtonDevice.cxx index e68d8ff950..46e5d04292 100644 --- a/panda/src/device/clientButtonDevice.cxx +++ b/panda/src/device/clientButtonDevice.cxx @@ -16,9 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "clientButtonDevice.h" - -#include +#include "device_headers.h" +#pragma hdrstop TypeHandle ClientButtonDevice::_type_handle; diff --git a/panda/src/device/clientDevice.cxx b/panda/src/device/clientDevice.cxx index 22947bb395..f5ca6b8342 100644 --- a/panda/src/device/clientDevice.cxx +++ b/panda/src/device/clientDevice.cxx @@ -16,10 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "clientDevice.h" -#include "clientBase.h" - -#include +#include "device_headers.h" +#pragma hdrstop TypeHandle ClientDevice::_type_handle; diff --git a/panda/src/device/clientDialDevice.cxx b/panda/src/device/clientDialDevice.cxx index 2e4fd34c1d..7f40140723 100644 --- a/panda/src/device/clientDialDevice.cxx +++ b/panda/src/device/clientDialDevice.cxx @@ -16,9 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "clientDialDevice.h" - -#include +#include "device_headers.h" +#pragma hdrstop TypeHandle ClientDialDevice::_type_handle; diff --git a/panda/src/device/clientTrackerDevice.cxx b/panda/src/device/clientTrackerDevice.cxx index cbf09a74a0..f7e44524e4 100644 --- a/panda/src/device/clientTrackerDevice.cxx +++ b/panda/src/device/clientTrackerDevice.cxx @@ -16,6 +16,7 @@ // //////////////////////////////////////////////////////////////////// -#include "clientTrackerDevice.h" +#include "device_headers.h" +#pragma hdrstop TypeHandle ClientTrackerDevice::_type_handle; diff --git a/panda/src/device/config_device.cxx b/panda/src/device/config_device.cxx index 87a31a92df..a5019a3497 100644 --- a/panda/src/device/config_device.cxx +++ b/panda/src/device/config_device.cxx @@ -16,20 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "config_device.h" -#include "analogNode.h" -#include "buttonNode.h" -#include "clientAnalogDevice.h" -#include "clientBase.h" -#include "clientButtonDevice.h" -#include "clientDevice.h" -#include "clientDialDevice.h" -#include "clientTrackerDevice.h" -#include "dialNode.h" -#include "mouse.h" -#include "trackerNode.h" - -#include +#include "device_headers.h" +#pragma hdrstop Configure(config_device); NotifyCategoryDef(device, ""); diff --git a/panda/src/device/device_headers.h b/panda/src/device/device_headers.h new file mode 100644 index 0000000000..86ba57410b --- /dev/null +++ b/panda/src/device/device_headers.h @@ -0,0 +1,41 @@ +// Filename: device_headers.h +// Created by: georges (30May01) +// +//////////////////////////////////////////////////////////////////// +// +// PANDA 3D SOFTWARE +// Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved +// +// All use of this software is subject to the terms of the Panda 3d +// Software license. You should have received a copy of this license +// along with this source code; you will also find a current copy of +// the license at http://www.panda3d.org/license.txt . +// +// To contact the maintainers of this program write to +// panda3d@yahoogroups.com . +// +//////////////////////////////////////////////////////////////////// + +#include +#include +#include +#include +#include +#include + +#include "analogNode.h" +#include "buttonNode.h" +#include "clientAnalogDevice.h" +#include "clientBase.h" +#include "clientButtonDevice.h" +#include "clientDevice.h" +#include "clientDialDevice.h" +#include "clientTrackerDevice.h" +#include "config_device.h" +#include "dialNode.h" +#include "mouse.h" +#include "trackerData.h" +#include "trackerNode.h" + +#pragma hdrstop + diff --git a/panda/src/device/dialNode.cxx b/panda/src/device/dialNode.cxx index 3835a1e0bf..6855aa8d0c 100644 --- a/panda/src/device/dialNode.cxx +++ b/panda/src/device/dialNode.cxx @@ -16,8 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "dialNode.h" -#include "config_device.h" +#include "device_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Static variables diff --git a/panda/src/device/mouse.cxx b/panda/src/device/mouse.cxx index 19fdb28db0..68d776600c 100644 --- a/panda/src/device/mouse.cxx +++ b/panda/src/device/mouse.cxx @@ -15,11 +15,8 @@ // panda3d@yahoogroups.com . // //////////////////////////////////////////////////////////////////// -#include "mouse.h" - -#include -#include -#include +#include "device_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Static variables diff --git a/panda/src/device/trackerData.cxx b/panda/src/device/trackerData.cxx index 93fb2c9cab..b3a2fb4467 100644 --- a/panda/src/device/trackerData.cxx +++ b/panda/src/device/trackerData.cxx @@ -16,7 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "trackerData.h" +#include "device_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Function: TrackerData::Copy Assignment Operator diff --git a/panda/src/device/trackerNode.cxx b/panda/src/device/trackerNode.cxx index 748cf70409..ae8731066a 100644 --- a/panda/src/device/trackerNode.cxx +++ b/panda/src/device/trackerNode.cxx @@ -16,8 +16,8 @@ // //////////////////////////////////////////////////////////////////// -#include "trackerNode.h" -#include "config_device.h" +#include "device_headers.h" +#pragma hdrstop //////////////////////////////////////////////////////////////////// // Static variables