adjust sources

This commit is contained in:
cxgeorge 2002-01-28 06:43:41 +00:00
parent c28e02caf1
commit 418fe328f4
3 changed files with 17 additions and 6 deletions

View File

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

View File

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

View File

@ -10,15 +10,19 @@
dxgsg dxgsg
#define COMBINED_SOURCES $[TARGET]_composite1.cxx #define COMBINED_SOURCES $[TARGET]_composite1.cxx
#define SOURCES \ // need to install these due to external projects that link directly with libpandadx (bartop)
config_wdxdisplay.h wdxGraphicsPipe.h wdxGraphicsWindow.cxx wdxGraphicsWindow.h #define INSTALL_HEADERS \
config_wdxdisplay.h wdxGraphicsPipe.h wdxGraphicsWindow.h
#define INCLUDED_SOURCES \ #define INCLUDED_SOURCES \
config_wdxdisplay.cxx wdxGraphicsPipe.cxx config_wdxdisplay.cxx wdxGraphicsPipe.cxx
#define INSTALL_HEADERS \ // note SOURCES shoult NOT include INCLUDED_SOURCES, that would cause a double build
config_wdxdisplay.h wdxGraphicsPipe.h wdxGraphicsWindow.h // 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 #end lib_target