Jelajahi Sumber

use precomp hdrs

cxgeorge 24 tahun lalu
induk
melakukan
8e001d5b9f

+ 2 - 0
panda/src/chan/Sources.pp

@@ -38,6 +38,8 @@
     movingPartScalar.I movingPartScalar.h partBundle.I partBundle.h \
     movingPartScalar.I movingPartScalar.h partBundle.I partBundle.h \
     partBundleNode.I partBundleNode.h partGroup.I partGroup.h \
     partBundleNode.I partBundleNode.h partGroup.I partGroup.h \
     vector_PartGroupStar.h
     vector_PartGroupStar.h
+    
+  #define PRECOMPILED_HEADER chan_headers.h 
 
 
   #define IGATESCAN all
   #define IGATESCAN all
 
 

+ 2 - 7
panda/src/chan/animBundle.cxx

@@ -16,13 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animBundle.h"
-
-#include <indent.h>
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 TypeHandle AnimBundle::_type_handle;
 TypeHandle AnimBundle::_type_handle;
 
 

+ 2 - 5
panda/src/chan/animBundleNode.cxx

@@ -16,11 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animBundleNode.h"
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 TypeHandle AnimBundleNode::_type_handle;
 TypeHandle AnimBundleNode::_type_handle;
 
 

+ 2 - 3
panda/src/chan/animChannel.cxx

@@ -16,9 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animChannel.h"
-
-#include <compose_matrix.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__
 #ifdef __GNUC__

+ 2 - 5
panda/src/chan/animChannelBase.cxx

@@ -16,11 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animChannelBase.h"
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 TypeHandle AnimChannelBase::_type_handle;
 TypeHandle AnimChannelBase::_type_handle;
 
 

+ 4 - 11
panda/src/chan/animChannelMatrixXfmTable.cxx

@@ -16,17 +16,10 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animChannelMatrixXfmTable.h"
-#include "animBundle.h"
-#include "config_chan.h"
-
-#include <compose_matrix.h>
-#include <indent.h>
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
-#include <fftCompressor.h>
+#include "chan_headers.h"
+#pragma hdrstop
+
+
 
 
 TypeHandle AnimChannelMatrixXfmTable::_type_handle;
 TypeHandle AnimChannelMatrixXfmTable::_type_handle;
 
 

+ 2 - 10
panda/src/chan/animChannelScalarTable.cxx

@@ -16,16 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animChannelScalarTable.h"
-#include "animBundle.h"
-#include "config_chan.h"
-
-#include <indent.h>
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
-#include <fftCompressor.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 TypeHandle AnimChannelScalarTable::_type_handle;
 TypeHandle AnimChannelScalarTable::_type_handle;
 
 

+ 2 - 8
panda/src/chan/animControl.cxx

@@ -16,14 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animControl.h"
-#include "animChannelBase.h"
-#include "partBundle.h"
-#include "config_chan.h"
-
-#include <event.h>
-#include <throw_event.h>
-
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 TypeHandle AnimControl::_type_handle;
 TypeHandle AnimControl::_type_handle;
 
 

+ 3 - 1
panda/src/chan/animControlCollection.cxx

@@ -16,7 +16,9 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animControlCollection.h"
+#include "chan_headers.h"
+#pragma hdrstop
+
 
 
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////

+ 3 - 9
panda/src/chan/animGroup.cxx

@@ -16,16 +16,10 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "animGroup.h"
-#include "animBundle.h"
-#include "config_chan.h"
-
-#include <indent.h>
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
+// not precompiled because it causes xtra warnings
 #include <algorithm>
 #include <algorithm>
 
 
 TypeHandle AnimGroup::_type_handle;
 TypeHandle AnimGroup::_type_handle;

+ 2 - 13
panda/src/chan/auto_bind.cxx

@@ -16,18 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "auto_bind.h"
-#include "animBundleNode.h"
-#include "partBundleNode.h"
-#include "config_chan.h"
-
-#include <traverserVisitor.h>
-#include <dftraverser.h>
-#include <nullTransitionWrapper.h>
-#include <nullAttributeWrapper.h>
-#include <nullLevelState.h>
-#include <renderRelation.h>
-#include <string_utils.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 typedef set<AnimBundleNode *> AnimNodes;
 typedef set<AnimBundleNode *> AnimNodes;
 typedef map<string, AnimNodes> Anims;
 typedef map<string, AnimNodes> Anims;
@@ -36,7 +26,6 @@ typedef set<PartBundleNode *> PartNodes;
 typedef map<string, PartNodes> Parts;
 typedef map<string, PartNodes> Parts;
 
 
 
 
-
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //       Class : CollectNodes
 //       Class : CollectNodes
 // Description : This is a traverser visitor that locates bundle nodes
 // Description : This is a traverser visitor that locates bundle nodes

+ 58 - 0
panda/src/chan/chan_headers.h

@@ -0,0 +1,58 @@
+// Filename: chan_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
+// [email protected] .
+//
+////////////////////////////////////////////////////////////////////
+
+#include <bamReader.h>
+#include <bamWriter.h>
+#include <compose_matrix.h>
+#include <datagram.h>
+#include <datagramIterator.h>
+#include <dconfig.h>
+#include <dftraverser.h>
+#include <event.h>
+#include <fftCompressor.h>
+#include <indent.h>
+#include <luse.h>
+#include <nullAttributeWrapper.h>
+#include <nullLevelState.h>
+#include <nullTransitionWrapper.h>
+#include <renderRelation.h>
+#include <string_utils.h>
+#include <throw_event.h>
+#include <traverserVisitor.h>
+
+#include "animBundle.h"
+#include "animBundleNode.h"
+#include "animChannel.h"
+#include "animChannelBase.h"
+#include "animChannelMatrixXfmTable.h"
+#include "animChannelScalarTable.h"
+#include "animControl.h"
+#include "animControlCollection.h"
+#include "animGroup.h"
+#include "auto_bind.h"
+#include "config_chan.h"
+#include "movingPartBase.h"
+#include "movingPartMatrix.h"
+#include "movingPartScalar.h"
+#include "partBundle.h"
+#include "partBundleNode.h"
+#include "partGroup.h"
+#include "vector_PartGroupStar.h"
+
+#pragma hdrstop
+

+ 2 - 17
panda/src/chan/config_chan.cxx

@@ -16,23 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "config_chan.h"
-#include "animBundle.h"
-#include "animBundleNode.h"
-#include "animChannelBase.h"
-#include "animChannelMatrixXfmTable.h"
-#include "animChannelScalarTable.h"
-#include "animControl.h"
-#include "animGroup.h"
-#include "movingPartBase.h"
-#include "movingPartMatrix.h"
-#include "movingPartScalar.h"
-#include "partBundle.h"
-#include "partBundleNode.h"
-#include "partGroup.h"
-
-#include <dconfig.h>
-#include <luse.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 Configure(config_chan);
 Configure(config_chan);
 NotifyCategoryDef(chan, "");
 NotifyCategoryDef(chan, "");

+ 2 - 5
panda/src/chan/movingPartBase.cxx

@@ -16,11 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "movingPartBase.h"
-#include "animControl.h"
-#include "animChannelBase.h"
-
-#include <indent.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 TypeHandle MovingPartBase::_type_handle;
 TypeHandle MovingPartBase::_type_handle;
 
 

+ 2 - 6
panda/src/chan/movingPartMatrix.cxx

@@ -16,13 +16,9 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "movingPartMatrix.h"
+#include "chan_headers.h"
+#pragma hdrstop
 
 
-#include <compose_matrix.h>
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
 
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__
 #ifdef __GNUC__

+ 2 - 5
panda/src/chan/movingPartScalar.cxx

@@ -16,11 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "movingPartScalar.h"
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__
 #ifdef __GNUC__

+ 2 - 10
panda/src/chan/partBundle.cxx

@@ -16,16 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "partBundle.h"
-#include "animBundle.h"
-#include "animControl.h"
-#include "config_chan.h"
-
-#include <indent.h>
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 TypeHandle PartBundle::_type_handle;
 TypeHandle PartBundle::_type_handle;
 
 

+ 2 - 5
panda/src/chan/partBundleNode.cxx

@@ -16,11 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "partBundleNode.h"
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 TypeHandle PartBundleNode::_type_handle;
 TypeHandle PartBundleNode::_type_handle;
 
 

+ 3 - 9
panda/src/chan/partGroup.cxx

@@ -16,16 +16,10 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "partGroup.h"
-#include "animGroup.h"
-#include "config_chan.h"
-
-#include <indent.h>
-#include <datagram.h>
-#include <datagramIterator.h>
-#include <bamReader.h>
-#include <bamWriter.h>
+#include "chan_headers.h"
+#pragma hdrstop
 
 
+// not precompiled because it causes xtra warnings
 #include <algorithm>
 #include <algorithm>
 
 
 TypeHandle PartGroup::_type_handle;
 TypeHandle PartGroup::_type_handle;

+ 3 - 1
panda/src/chan/vector_PartGroupStar.cxx

@@ -16,7 +16,8 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "vector_PartGroupStar.h"
+#include "chan_headers.h"
+#pragma hdrstop
 
 
 #define EXPCL EXPCL_PANDA
 #define EXPCL EXPCL_PANDA
 #define EXPTP EXPTP_PANDA
 #define EXPTP EXPTP_PANDA
@@ -25,6 +26,7 @@
 
 
 #include <vector_src.cxx>
 #include <vector_src.cxx>
 
 
+
 // Tell GCC that we'll take care of the instantiation explicitly here.
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__
 #ifdef __GNUC__
 #pragma implementation
 #pragma implementation