Browse Source

use precomp hdrs

cxgeorge 24 years ago
parent
commit
a7c2653a8a

+ 3 - 1
panda/src/display/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 display
   #define LOCAL_LIBS \
@@ -39,6 +39,8 @@
     savedFrameBuffer.I savedFrameBuffer.h textureContext.I \
     textureContext.h
 
+  #define PRECOMPILED_HEADER display_headers.h  
+
   #define IGATESCAN all
 
 #end lib_target

+ 8 - 0
panda/src/display/config_display.cxx

@@ -16,6 +16,13 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "config_display.h"
 #include "graphicsStateGuardian.h"
 #include "savedFrameBuffer.h"
@@ -26,6 +33,7 @@
 #include "graphicsChannel.h"
 #include "hardwareChannel.h"
 #include "textureContext.h"
+#endif
 
 Configure(config_display);
 NotifyCategoryDef(display, "");

+ 9 - 1
panda/src/display/displayRegion.cxx

@@ -16,12 +16,20 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "displayRegion.h"
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "graphicsLayer.h"
 #include "graphicsChannel.h"
 #include "graphicsWindow.h"
 #include "config_display.h"
+#endif
 
+#include "displayRegion.h"
 
 ////////////////////////////////////////////////////////////////////
 //     Function: DisplayRegion::Constructor

+ 38 - 0
panda/src/display/display_headers.h

@@ -0,0 +1,38 @@
+// 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 <keyboardButton.h>
+#include <mouseButton.h>
+
+#include "config_display.h"
+#include "graphicsChannel.h"
+#include "graphicsLayer.h"
+#include "graphicsPipe.h"
+#include "graphicsStateGuardian.h"
+#include "graphicsWindow.h"
+#include "hardwareChannel.h"
+#include "interactiveGraphicsPipe.h"
+#include "noninteractiveGraphicsPipe.h"
+#include "savedFrameBuffer.h"
+#include "textureContext.h"
+
+#include <algorithm>
+#include <map>
+
+#pragma hdrstop
+

+ 8 - 0
panda/src/display/graphicsChannel.cxx

@@ -15,11 +15,19 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "graphicsChannel.h"
 #include "graphicsWindow.h"
 #include "config_display.h"
 
 #include <map>
+#endif
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 10 - 2
panda/src/display/graphicsLayer.cxx

@@ -15,14 +15,22 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "graphicsLayer.h"
 #include "graphicsChannel.h"
 #include "graphicsWindow.h"
 #include "config_display.h"
 
-#include <notify.h>
-
 #include <algorithm>
+#endif
+
+#include <notify.h>
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 10 - 2
panda/src/display/graphicsPipe.cxx

@@ -15,14 +15,22 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "graphicsPipe.h"
 #include "config_display.h"
 
+#include <algorithm>
+#endif
+
 #include <load_dso.h>
 #include <filename.h>
 
-#include <algorithm>
-
 // Static variables
 ////////////////////////////////////////////////////////////////////
 TypeHandle GraphicsPipe::_type_handle;

+ 10 - 4
panda/src/display/graphicsStateGuardian.cxx

@@ -16,16 +16,22 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "graphicsStateGuardian.h"
-#include "renderBuffer.h"
 #include "config_display.h"
 #include "textureContext.h"
+#include <algorithm>
+#endif
 
 #include <clockObject.h>
 #include <geomNode.h>
-
-#include <algorithm>
-
+#include "renderBuffer.h"
 
 #ifndef CPPPARSER
 PStatCollector GraphicsStateGuardian::_total_texusage_pcollector("Texture usage");

+ 8 - 0
panda/src/display/graphicsWindow.cxx

@@ -15,6 +15,13 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "graphicsWindow.h"
 #include "graphicsPipe.h"
 #include "config_display.h"
@@ -23,6 +30,7 @@
 #include <keyboardButton.h>
 
 #include <map>
+#endif
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 8 - 0
panda/src/display/graphicsWindowInputDevice.cxx

@@ -16,9 +16,17 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "graphicsWindowInputDevice.h"
 #include <mouseButton.h>
 #include <keyboardButton.h>
+#endif
 
 #define EXPCL EXPCL_PANDA
 #define EXPTP EXPTP_PANDA

+ 8 - 0
panda/src/display/hardwareChannel.cxx

@@ -15,8 +15,16 @@
 // [email protected] .
 //
 ////////////////////////////////////////////////////////////////////
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "hardwareChannel.h"
 #include "config_display.h"
+#endif
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 8 - 0
panda/src/display/interactiveGraphicsPipe.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "interactiveGraphicsPipe.h"
 #include "config_display.h"
+#endif
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 8 - 0
panda/src/display/noninteractiveGraphicsPipe.cxx

@@ -16,8 +16,16 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "noninteractiveGraphicsPipe.h"
 #include "config_display.h"
+#endif
 
 ////////////////////////////////////////////////////////////////////
 // Static variables

+ 10 - 1
panda/src/display/pipeSpec.cxx

@@ -16,8 +16,17 @@
 //
 ////////////////////////////////////////////////////////////////////
 
-#include "pipeSpec.h"
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "config_display.h"
+#endif
+
+#include "pipeSpec.h"
 
 PipeSpecifier::PipeSpecifier(void)
   : _machine(pipe_spec_machine),

+ 8 - 0
panda/src/display/savedFrameBuffer.cxx

@@ -16,6 +16,14 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "savedFrameBuffer.h"
+#endif
 
 TypeHandle SavedFrameBuffer::_type_handle;

+ 9 - 1
panda/src/display/textureContext.cxx

@@ -16,10 +16,18 @@
 //
 ////////////////////////////////////////////////////////////////////
 
+#if defined(WIN32_VC) && !defined(NO_PCH)
+#include "display_headers.h"
+#endif
+
+#pragma hdrstop
+
+#if !defined(WIN32_VC) || defined(NO_PCH)
 #include "textureContext.h"
+#endif
 
-#include <texture.h>
 #include <pixelBuffer.h>
+#include <texture.h>
 
 TypeHandle TextureContext::_type_handle;