Browse Source

adjust sources

cxgeorge 24 years ago
parent
commit
418fe328f4

+ 4 - 1
panda/src/dxgsg/Sources.pp

@@ -12,11 +12,14 @@
     putil linmath sgraph mathutil pnmimage event
     
   #define COMBINED_SOURCES $[TARGET]_composite1.cxx     
-  
+
+  // need to install these due to external projects that link directly with libpandadx (bartop)  
   #define INSTALL_HEADERS \
     config_dxgsg.h dxGraphicsStateGuardian.I dxGraphicsStateGuardian.h \
     dxTextureContext.h dxGeomNodeContext.h dxGeomNodeContext.I
 
+  // build dxGraphicsStateGuardian separately since its so big
+  
   #define SOURCES \
     dxGraphicsStateGuardian.cxx dxSavedFrameBuffer.I dxSavedFrameBuffer.h $[INSTALL_HEADERS]
     

+ 4 - 0
panda/src/dxgsg/dxGeomNodeContext.h

@@ -35,6 +35,10 @@
 #define D3D_OVERLOADS   //  get D3DVECTOR '+' operator, etc from d3dtypes.h
 #include <d3d.h>
 
+#if DIRECT3D_VERSION != 0x0700
+#error DX7 headers not available, you need to install MS Platform SDK!
+#endif
+
 typedef struct {
      DWORD nVerts;
      D3DPRIMITIVETYPE primtype;

+ 9 - 5
panda/src/wdxdisplay/Sources.pp

@@ -10,15 +10,19 @@
     dxgsg
     
   #define COMBINED_SOURCES $[TARGET]_composite1.cxx 
-    
-  #define SOURCES \
-    config_wdxdisplay.h wdxGraphicsPipe.h wdxGraphicsWindow.cxx wdxGraphicsWindow.h
+  
+  // need to install these due to external projects that link directly with libpandadx (bartop)    
+  #define INSTALL_HEADERS \
+    config_wdxdisplay.h wdxGraphicsPipe.h wdxGraphicsWindow.h
     
   #define INCLUDED_SOURCES \
     config_wdxdisplay.cxx wdxGraphicsPipe.cxx 
     
-  #define INSTALL_HEADERS \
-    config_wdxdisplay.h wdxGraphicsPipe.h wdxGraphicsWindow.h
+  // note SOURCES shoult NOT include INCLUDED_SOURCES, that would cause a double build
+  // SOURCES should be headers and separately-built cxx files
+  // build wdxGraphicsWindow.cxx separately since its big
+  
+  #define SOURCES wdxGraphicsWindow.cxx $[INSTALL_HEADERS]
     
 #end lib_target