Browse Source

use precomp hdrs

cxgeorge 25 years ago
parent
commit
606dcb8563

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

@@ -58,6 +58,8 @@
     vec4DataTransition.h vectorDataAttribute.I vectorDataAttribute.h \
     vectorDataTransition.I vectorDataTransition.h
 
+  #define PRECOMPILED_HEADER dgraph_headers.h
+  
   #define IGATESCAN \
     dataNode.cxx dataNode.h dataRelation.cxx dataRelation.h \
     dataGraphTraversal.cxx dataGraphTraversal.h

+ 9 - 0
panda/src/dgraph/buttonEventDataAttribute.cxx

@@ -16,10 +16,19 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "buttonEventDataAttribute.h"
 #include "buttonEventDataTransition.h"
 
 #include <indent.h>
+#endif
+
 #include <modifierButtons.h>
 #include <algorithm>
 

+ 8 - 0
panda/src/dgraph/buttonEventDataTransition.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "buttonEventDataTransition.h"
 #include "buttonEventDataAttribute.h"
+#endif
 
 TypeHandle ButtonEventDataTransition::_type_handle;
 

+ 9 - 1
panda/src/dgraph/config_dgraph.cxx

@@ -16,7 +16,14 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "config_dgraph.h"
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
+#include "dgraph_headers.h"
 #include "dataNode.h"
 #include "dataRelation.h"
 #include "intDataTransition.h"
@@ -29,6 +36,7 @@
 #include "matrixDataAttribute.h"
 #include "buttonEventDataTransition.h"
 #include "buttonEventDataAttribute.h"
+#endif
 
 #include <dconfig.h>
 

+ 9 - 0
panda/src/dgraph/dataGraphTraversal.cxx

@@ -16,8 +16,17 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "dataGraphTraversal.h"
 #include "dataGraphTraverser.h"
+#endif
+
 #include <pStatTimer.h>
 #include <pStatCollector.h>
 

+ 8 - 0
panda/src/dgraph/dataGraphTraverser.cxx

@@ -16,11 +16,19 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "dataGraphTraverser.h"
 #include "dataRelation.h"
 #include "dataNode.h"
 #include "config_dgraph.h"
 #include "describe_data_verbose.h"
+#endif
 
 
 

+ 8 - 0
panda/src/dgraph/dataNode.cxx

@@ -16,7 +16,15 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "dataNode.h"
+#endif
 
 TypeHandle DataNode::_type_handle;
 

+ 9 - 0
panda/src/dgraph/dataRelation.cxx

@@ -16,7 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "dataRelation.h"
+#endif
+
 #include "transformTransition.h"
 
 TypeHandle DataRelation::_type_handle;

+ 10 - 2
panda/src/dgraph/describe_data_verbose.cxx

@@ -16,17 +16,25 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "describe_data_verbose.h"
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "dataGraphTraversal.h"
+#include "describe_data_verbose.h"
 
 #include <indent.h>
+#endif
+
 #include <nodeAttributes.h>
 
 // The number of columns in from the start of the name to print the
 // data value.
 static const int data_indent_level = 12;
 
-
 ////////////////////////////////////////////////////////////////////
 //     Function: describe_data_verbose
 //  Description: Writes to the indicated output stream a

+ 43 - 0
panda/src/dgraph/dgraph_headers.h

@@ -0,0 +1,43 @@
+// Filename: dgraph_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 <indent.h>
+
+#include "buttonEventDataAttribute.h"
+#include "buttonEventDataTransition.h"
+#include "config_dgraph.h"
+#include "dataGraphTraversal.h"
+#include "dataGraphTraverser.h"
+#include "dataNode.h"
+#include "dataRelation.h"
+#include "describe_data_verbose.h"
+#include "doubleDataAttribute.h"
+#include "doubleDataTransition.h"
+#include "doublePtrDataAttribute.h"
+#include "doublePtrDataTransition.h"
+#include "intDataAttribute.h"
+#include "intDataTransition.h"
+#include "matrixDataAttribute.h"
+#include "matrixDataTransition.h"
+#include "vec3DataAttribute.h"
+#include "vec3DataTransition.h"
+#include "vec4DataAttribute.h"
+#include "vec4DataTransition.h"
+
+#pragma hdrstop
+

+ 8 - 0
panda/src/dgraph/doubleDataAttribute.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "doubleDataAttribute.h"
 #include "doubleDataTransition.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/doubleDataTransition.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "doubleDataTransition.h"
 #include "doubleDataAttribute.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/doublePtrDataAttribute.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "doublePtrDataAttribute.h"
 #include "doublePtrDataTransition.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/doublePtrDataTransition.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "doublePtrDataTransition.h"
 #include "doublePtrDataAttribute.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/intDataAttribute.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "intDataAttribute.h"
 #include "intDataTransition.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/intDataTransition.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "intDataTransition.h"
 #include "intDataAttribute.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/matrixDataAttribute.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "matrixDataAttribute.h"
 #include "matrixDataTransition.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/matrixDataTransition.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "matrixDataTransition.h"
 #include "matrixDataAttribute.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/vec3DataAttribute.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "vec3DataAttribute.h"
 #include "vec3DataTransition.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/vec3DataTransition.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "vec3DataTransition.h"
 #include "vec3DataAttribute.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/vec4DataAttribute.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "vec4DataAttribute.h"
 #include "vec4DataTransition.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__

+ 8 - 0
panda/src/dgraph/vec4DataTransition.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "dgraph_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "vec4DataTransition.h"
 #include "vec4DataAttribute.h"
+#endif
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 #ifdef __GNUC__