From 606dcb85633c9cf86d518e4ccf47bd9c1dab5ab3 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Mon, 4 Jun 2001 20:57:38 +0000 Subject: [PATCH] use precomp hdrs --- panda/src/dgraph/Sources.pp | 2 + panda/src/dgraph/buttonEventDataAttribute.cxx | 9 ++++ .../src/dgraph/buttonEventDataTransition.cxx | 8 ++++ panda/src/dgraph/config_dgraph.cxx | 10 ++++- panda/src/dgraph/dataGraphTraversal.cxx | 9 ++++ panda/src/dgraph/dataGraphTraverser.cxx | 8 ++++ panda/src/dgraph/dataNode.cxx | 8 ++++ panda/src/dgraph/dataRelation.cxx | 9 ++++ panda/src/dgraph/describe_data_verbose.cxx | 12 +++++- panda/src/dgraph/dgraph_headers.h | 43 +++++++++++++++++++ panda/src/dgraph/doubleDataAttribute.cxx | 8 ++++ panda/src/dgraph/doubleDataTransition.cxx | 8 ++++ panda/src/dgraph/doublePtrDataAttribute.cxx | 8 ++++ panda/src/dgraph/doublePtrDataTransition.cxx | 8 ++++ panda/src/dgraph/intDataAttribute.cxx | 8 ++++ panda/src/dgraph/intDataTransition.cxx | 8 ++++ panda/src/dgraph/matrixDataAttribute.cxx | 8 ++++ panda/src/dgraph/matrixDataTransition.cxx | 8 ++++ panda/src/dgraph/vec3DataAttribute.cxx | 8 ++++ panda/src/dgraph/vec3DataTransition.cxx | 8 ++++ panda/src/dgraph/vec4DataAttribute.cxx | 8 ++++ panda/src/dgraph/vec4DataTransition.cxx | 8 ++++ 22 files changed, 211 insertions(+), 3 deletions(-) create mode 100644 panda/src/dgraph/dgraph_headers.h diff --git a/panda/src/dgraph/Sources.pp b/panda/src/dgraph/Sources.pp index 8f96161ac2..63f695af85 100644 --- a/panda/src/dgraph/Sources.pp +++ b/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 diff --git a/panda/src/dgraph/buttonEventDataAttribute.cxx b/panda/src/dgraph/buttonEventDataAttribute.cxx index 94195ee09b..1c17a98752 100644 --- a/panda/src/dgraph/buttonEventDataAttribute.cxx +++ b/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 +#endif + #include #include diff --git a/panda/src/dgraph/buttonEventDataTransition.cxx b/panda/src/dgraph/buttonEventDataTransition.cxx index 5debcae675..8aa3391e46 100644 --- a/panda/src/dgraph/buttonEventDataTransition.cxx +++ b/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; diff --git a/panda/src/dgraph/config_dgraph.cxx b/panda/src/dgraph/config_dgraph.cxx index dbc5073656..0493e99fd4 100644 --- a/panda/src/dgraph/config_dgraph.cxx +++ b/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 diff --git a/panda/src/dgraph/dataGraphTraversal.cxx b/panda/src/dgraph/dataGraphTraversal.cxx index 93c7c2ec9d..7d29bfb198 100644 --- a/panda/src/dgraph/dataGraphTraversal.cxx +++ b/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 #include diff --git a/panda/src/dgraph/dataGraphTraverser.cxx b/panda/src/dgraph/dataGraphTraverser.cxx index 3458eaaa73..40e9fd6e19 100644 --- a/panda/src/dgraph/dataGraphTraverser.cxx +++ b/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 diff --git a/panda/src/dgraph/dataNode.cxx b/panda/src/dgraph/dataNode.cxx index 6d993b120e..c92a0ba77e 100644 --- a/panda/src/dgraph/dataNode.cxx +++ b/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; diff --git a/panda/src/dgraph/dataRelation.cxx b/panda/src/dgraph/dataRelation.cxx index 9c7dfa6a31..1a3c36dd50 100644 --- a/panda/src/dgraph/dataRelation.cxx +++ b/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; diff --git a/panda/src/dgraph/describe_data_verbose.cxx b/panda/src/dgraph/describe_data_verbose.cxx index 8be0ef0e23..bdeade6ffd 100644 --- a/panda/src/dgraph/describe_data_verbose.cxx +++ b/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 +#endif + #include // 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 diff --git a/panda/src/dgraph/dgraph_headers.h b/panda/src/dgraph/dgraph_headers.h new file mode 100644 index 0000000000..ed465171ef --- /dev/null +++ b/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 +// panda3d@yahoogroups.com . +// +//////////////////////////////////////////////////////////////////// + +#include + +#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 + diff --git a/panda/src/dgraph/doubleDataAttribute.cxx b/panda/src/dgraph/doubleDataAttribute.cxx index 9e7d9205b1..744d7c8296 100644 --- a/panda/src/dgraph/doubleDataAttribute.cxx +++ b/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__ diff --git a/panda/src/dgraph/doubleDataTransition.cxx b/panda/src/dgraph/doubleDataTransition.cxx index 1259266317..d035d658a8 100644 --- a/panda/src/dgraph/doubleDataTransition.cxx +++ b/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__ diff --git a/panda/src/dgraph/doublePtrDataAttribute.cxx b/panda/src/dgraph/doublePtrDataAttribute.cxx index 625a6ca4f0..e32b1edf20 100644 --- a/panda/src/dgraph/doublePtrDataAttribute.cxx +++ b/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__ diff --git a/panda/src/dgraph/doublePtrDataTransition.cxx b/panda/src/dgraph/doublePtrDataTransition.cxx index 612241f770..918339b9b5 100644 --- a/panda/src/dgraph/doublePtrDataTransition.cxx +++ b/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__ diff --git a/panda/src/dgraph/intDataAttribute.cxx b/panda/src/dgraph/intDataAttribute.cxx index 994964dda5..90d927a8f7 100644 --- a/panda/src/dgraph/intDataAttribute.cxx +++ b/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__ diff --git a/panda/src/dgraph/intDataTransition.cxx b/panda/src/dgraph/intDataTransition.cxx index 698ad9ca33..9e3704da77 100644 --- a/panda/src/dgraph/intDataTransition.cxx +++ b/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__ diff --git a/panda/src/dgraph/matrixDataAttribute.cxx b/panda/src/dgraph/matrixDataAttribute.cxx index db229a036b..14d664225e 100644 --- a/panda/src/dgraph/matrixDataAttribute.cxx +++ b/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__ diff --git a/panda/src/dgraph/matrixDataTransition.cxx b/panda/src/dgraph/matrixDataTransition.cxx index ba265960bc..b5b67af88d 100644 --- a/panda/src/dgraph/matrixDataTransition.cxx +++ b/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__ diff --git a/panda/src/dgraph/vec3DataAttribute.cxx b/panda/src/dgraph/vec3DataAttribute.cxx index 3e06e739aa..2b9dd5c68c 100644 --- a/panda/src/dgraph/vec3DataAttribute.cxx +++ b/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__ diff --git a/panda/src/dgraph/vec3DataTransition.cxx b/panda/src/dgraph/vec3DataTransition.cxx index feed003e4c..a13be7f8b9 100644 --- a/panda/src/dgraph/vec3DataTransition.cxx +++ b/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__ diff --git a/panda/src/dgraph/vec4DataAttribute.cxx b/panda/src/dgraph/vec4DataAttribute.cxx index d69f55f64b..71f49ca4a1 100644 --- a/panda/src/dgraph/vec4DataAttribute.cxx +++ b/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__ diff --git a/panda/src/dgraph/vec4DataTransition.cxx b/panda/src/dgraph/vec4DataTransition.cxx index ed19176f77..cfc387a9ac 100644 --- a/panda/src/dgraph/vec4DataTransition.cxx +++ b/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__