Browse Source

use precomp hdrs

cxgeorge 24 years ago
parent
commit
8ed94a51e7

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

@@ -33,6 +33,8 @@
     builderTypes.h builderVertex.I builderVertex.h builderVertexTempl.I \
     builderTypes.h builderVertex.I builderVertex.h builderVertexTempl.I \
     builderVertexTempl.h config_builder.h
     builderVertexTempl.h config_builder.h
 
 
+  #define PRECOMPILED_HEADER builder_headers.h 
+
 #end lib_target
 #end lib_target
 
 
 #begin test_bin_target
 #begin test_bin_target

+ 11 - 3
panda/src/builder/builder.cxx

@@ -16,16 +16,24 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "builder.h"
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "builderFuncs.h"
 #include "builderFuncs.h"
 #include "builderMisc.h"
 #include "builderMisc.h"
 
 
 #include <notify.h>
 #include <notify.h>
 #include <namedNode.h>
 #include <namedNode.h>
 #include <geomNode.h>
 #include <geomNode.h>
-#include <renderRelation.h>
-
 #include <map>
 #include <map>
+#endif
+
+#include "builder.h"
+#include <renderRelation.h>
 
 
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////

+ 8 - 0
panda/src/builder/builderAttrib.cxx

@@ -16,7 +16,15 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "builderAttrib.h"
 #include "builderAttrib.h"
+#endif
 
 
 
 
 // Tell GCC that we'll take care of the instantiation explicitly here.
 // Tell GCC that we'll take care of the instantiation explicitly here.

+ 10 - 1
panda/src/builder/builderBucket.cxx

@@ -16,13 +16,22 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "builderAttrib.h"
 #include "builderAttrib.h"
 #include "builderBucket.h"
 #include "builderBucket.h"
 #include "builderFuncs.h"
 #include "builderFuncs.h"
 #include "builderMisc.h"
 #include "builderMisc.h"
-
 #include <namedNode.h>
 #include <namedNode.h>
 #include <geomNode.h>
 #include <geomNode.h>
+#endif
+
+
 
 
 BuilderBucket *BuilderBucket::_default_bucket = NULL;
 BuilderBucket *BuilderBucket::_default_bucket = NULL;
 
 

+ 10 - 2
panda/src/builder/builderBucketNode.cxx

@@ -16,10 +16,18 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "builderFuncs.h"
-#include "builderBucketNode.h"
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
 
 
+#if !defined(WIN32_VC) || defined(NO_PCH)
+#include "builderFuncs.h"
 #include <geomNode.h>
 #include <geomNode.h>
+#endif
+
+#include "builderBucketNode.h"
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: BuilderBucketNode::add_prim
 //     Function: BuilderBucketNode::add_prim

+ 8 - 0
panda/src/builder/builderMisc.cxx

@@ -16,11 +16,19 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "builderMisc.h"
 #include "builderMisc.h"
 #include "builderTypes.h"
 #include "builderTypes.h"
 
 
 #include <luse.h>
 #include <luse.h>
 #include <stdlib.h>
 #include <stdlib.h>
+#endif
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 //     Function: make_random_color
 //     Function: make_random_color

+ 10 - 1
panda/src/builder/builderNormalVisualizer.cxx

@@ -16,8 +16,17 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "builderNormalVisualizer.h"
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "builderFuncs.h"
 #include "builderFuncs.h"
+#endif
+
+#include "builderNormalVisualizer.h"
 
 
 #ifdef SUPPORT_SHOW_NORMALS
 #ifdef SUPPORT_SHOW_NORMALS
 
 

+ 8 - 2
panda/src/builder/builderPrim.cxx

@@ -16,10 +16,16 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
-#include "builderPrim.h"
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
 
 
-#include <geom.h>
+#if !defined(WIN32_VC) || defined(NO_PCH)
+#include "builderPrim.h"
 #include <notify.h>
 #include <notify.h>
+#endif
 
 
 // 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__

+ 8 - 0
panda/src/builder/builderProperties.cxx

@@ -16,7 +16,15 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "builderProperties.h"
 #include "builderProperties.h"
+#endif
 
 
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////

+ 8 - 0
panda/src/builder/builderTypes.cxx

@@ -16,9 +16,17 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "builderTypes.h"
 #include "builderTypes.h"
 
 
 #include <notify.h>
 #include <notify.h>
+#endif
 
 
 ostream &operator << (ostream &out, BuilderAttribFlags baf) {
 ostream &operator << (ostream &out, BuilderAttribFlags baf) {
   const char *space = "";
   const char *space = "";

+ 8 - 0
panda/src/builder/builderVertex.cxx

@@ -16,8 +16,16 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "builderAttrib.h"
 #include "builderAttrib.h"
 #include "builderVertex.h"
 #include "builderVertex.h"
+#endif
 
 
 // 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__

+ 51 - 0
panda/src/builder/builder_headers.h

@@ -0,0 +1,51 @@
+// Filename: xxx_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 <geom.h>
+#include <geomNode.h>
+#include <list>
+#include <luse.h>
+#include <map>
+#include <math.h>
+#include <namedNode.h>
+#include <notify.h>
+#include <pandabase.h>
+#include <pta_Colorf.h>
+#include <pta_Normalf.h>
+#include <pta_TexCoordf.h>
+#include <pta_Vertexf.h>
+#include <set>
+#include <stdlib.h>
+#include <vector>
+
+#include "builderAttrib.h"
+#include "builderAttribTempl.h"
+#include "builderBucket.h"
+#include "builderFuncs.h"
+#include "builderMisc.h"
+#include "builderPrim.h"
+#include "builderProperties.h"
+#include "builderTypes.h"
+#include "builderVertex.h"
+#include "mesher.h"
+#include "mesherConfig.h"
+#include "mesherEdge.h"
+#include "mesherStrip.h"
+
+#pragma hdrstop
+

+ 0 - 1
panda/src/builder/config_builder.cxx

@@ -17,7 +17,6 @@
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
 #include "config_builder.h"
 #include "config_builder.h"
-
 #include <dconfig.h>
 #include <dconfig.h>
 
 
 Configure(config_builder);
 Configure(config_builder);

+ 8 - 0
panda/src/builder/mesher.cxx

@@ -16,7 +16,15 @@
 //
 //
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////
 
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "builder_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "mesher.h"
 #include "mesher.h"
+#endif
 
 
 // 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__