packages feed

dx9base 0.1 → 0.1.1

raw patch · 3 files changed

+54/−16 lines, 3 files

Files

DirectX9/Error.hsc view
@@ -8,7 +8,7 @@ #include "fix_decl.h"
 #include "d3d9.h"
 #include "fix_decl_x.h"
--- #include "d3dx9.h"
+#include "d3dx9.h"
 
 
 
@@ -68,18 +68,18 @@     , e_OUTOFMEMORY         = E_OUTOFMEMORY
     , s_OK                  = S_OK
     
+    ,d3DXERR_CANNOTMODIFYINDEXBUFFER    = D3DXERR_CANNOTMODIFYINDEXBUFFER
+    ,d3DXERR_INVALIDMESH                = D3DXERR_INVALIDMESH
+    ,d3DXERR_CANNOTATTRSORT             = D3DXERR_CANNOTATTRSORT
+    ,d3DXERR_SKINNINGNOTSUPPORTED       = D3DXERR_SKINNINGNOTSUPPORTED
+    ,d3DXERR_TOOMANYINFLUENCES          = D3DXERR_TOOMANYINFLUENCES
+    ,d3DXERR_INVALIDDATA                = D3DXERR_INVALIDDATA
+    ,d3DXERR_LOADEDMESHASNODATA         = D3DXERR_LOADEDMESHASNODATA
+    ,d3DXERR_DUPLICATENAMEDFRAGMENT     = D3DXERR_DUPLICATENAMEDFRAGMENT
+	,d3DXERR_CANNOTREMOVELASTITEM       = D3DXERR_CANNOTREMOVELASTITEM
 
     }
 
---    ,d3DXERR_CANNOTMODIFYINDEXBUFFER    = D3DXERR_CANNOTMODIFYINDEXBUFFER
---    ,d3DXERR_INVALIDMESH                = D3DXERR_INVALIDMESH
---    ,d3DXERR_CANNOTATTRSORT             = D3DXERR_CANNOTATTRSORT
---    ,d3DXERR_SKINNINGNOTSUPPORTED       = D3DXERR_SKINNINGNOTSUPPORTED
---    ,d3DXERR_TOOMANYINFLUENCES          = D3DXERR_TOOMANYINFLUENCES
---    ,d3DXERR_INVALIDDATA                = D3DXERR_INVALIDDATA
---    ,d3DXERR_LOADEDMESHASNODATA         = D3DXERR_LOADEDMESHASNODATA
---    ,d3DXERR_DUPLICATENAMEDFRAGMENT     = D3DXERR_DUPLICATENAMEDFRAGMENT
---	,d3DXERR_CANNOTREMOVELASTITEM       = D3DXERR_CANNOTREMOVELASTITEM
 --    , e_INVALIDCALL     =E_INVALIDCALL
 
 
+ README.txt view
@@ -0,0 +1,40 @@+# Installing
+
+ You need need recentish ghc (6.4.x should work).
+ DirectX should be installed somewhere, examples assume %DXSDK%
+ 
+ First, you need to prepare mingw-usable import libraries for
+ directx DLLS.  This is easiest with mingw tool reimp, available on
+ mingw-utilities on mingw site ( www.mingw.org )  Installing
+ mingw and msys are beyond this simple readme.
+ 
+ Cabal setup scripts assume that those libraries are situated in
+ %DXSDK%\Mingw.  If you have mingw and msys installed, doing
+ something like:
+ 
+   cd $DXSDK
+   mkdir Mingw
+   cd Mingw
+   cp ../Lib/x86/*.lib .
+   rm DxErr*.lib
+   ls | xargs -n 1 reimp
+  
+ This will turn all but DxErr libs into mingw-compatible import
+ libraries by running reimp on each .lib
+ DxErr-libraries are not needed and take quite a lot of time to go
+ through reimp.
+
+ The bindings are split into multiple packages.  To compile and install
+ packages, you need to compile Setup.hs
+ 
+  ghc --make Setup.hs -o setup
+  
+ After you have setup.exe, you need to enter a package directory and
+ give cabal commands configure, build and install.
+  cd base
+  ..\setup configure --dx-sdk=%DXSDK%
+  ..\setup build
+  ..\setup install
+ Recommended order to build packages is base, d3d, d3dx so that dependencies
+ are met.
+
dx9base.cabal view
@@ -1,5 +1,5 @@ name:               dx9base
-version:            0.1
+version:            0.1.1
 author:             Esa Ilari Vuokko
 maintainer:         none
 license:            BSD3
@@ -10,7 +10,8 @@                     We think replace some part by <http://hackage.haskell.org/cgi-bin/hackage-scripts/package/com>,
                     or code what generated by <http://hackage.haskell.org/package/hdirect>.
                     .
-                    This version lacks D3DX support and some functionality to build with MinGW's library.
+                    This version requires DirectX SDK that is specified in --extra-include-dirs and --extra-lib-dirs PATH.
+                    See the README file for more information.
 stability:          alpha
 cabal-version:      >= 1.8
 build-type:         Simple
@@ -18,10 +19,7 @@    gen/Parser.hs, gen/extract-dx.hs, gen/extract-d3dx.hs
    gen/d3d_h.h,   gen/d3dx_h.h,      gen/fix_decl_x.h
    gen/d3d_c.h,   gen/d3dx_c.h,      gen/fix_decl.h
-
--- source-repository head
---   type:     darcs
---   location: http://tamelambda.net/darcs/dx9
+   README.txt
 
 library
  build-depends:      base >= 3 && < 5, Win32