Browse Source

Add Python wrappers for more libraries

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@36052 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 16 years ago
parent
commit
b7a513d4f6
7 changed files with 73 additions and 11 deletions
  1. 25 11
      swig/python/Makefile
  2. 8 0
      swig/python/arraystats.i
  3. 8 0
      swig/python/cluster.i
  4. 8 0
      swig/python/dbmi.i
  5. 8 0
      swig/python/g3d.i
  6. 8 0
      swig/python/trans.i
  7. 8 0
      swig/python/vedit.i

+ 25 - 11
swig/python/Makefile

@@ -10,17 +10,24 @@ include $(MODULE_TOPDIR)/include/Make/Doxygen.make
 DOXNAME=
 DOXINPUT=grasspython.dox
 
-MODULES = utils date grass math proj imagery vector raster display stats
-
-date_LIBS    = $(DATETIMELIB)
-grass_LIBS   = $(GISLIB)
-math_LIBS    = $(GMATHLIB)
-proj_LIBS    = $(GPROJLIB)
-imagery_LIBS = $(IMAGERYLIB)
-vector_LIBS  = $(VECTLIB)
-raster_LIBS  = $(RASTERLIB)
-display_LIBS = $(DISPLAYLIB)
-stats_LIBS   = $(STATSLIB)
+MODULES = utils date grass math proj imagery vector raster display stats \
+	dbmi g3d arraystats cluster trans vedit
+
+date_LIBS       = $(DATETIMELIB)
+grass_LIBS      = $(GISLIB)
+math_LIBS       = $(GMATHLIB)
+proj_LIBS       = $(GPROJLIB)
+imagery_LIBS    = $(IMAGERYLIB)
+vector_LIBS     = $(VECTLIB)
+raster_LIBS     = $(RASTERLIB)
+display_LIBS    = $(DISPLAYLIB)
+stats_LIBS      = $(STATSLIB)
+dbmi_LIBS       = $(DBMILIB)
+g3d_LIBS        = $(G3DLIB)
+arraystats_LIBS = $(ARRAYSTATSLIB)
+cluster_LIBS    = $(CLUSTERLIB)
+trans_LIBS      = $(TRANSLIB)
+vedit_LIBS      = $(VEDITLIB)
 
 vector_wrap_c_FLAGS = $(VECT_INC)
 proj_wrap_c_FLAGS = $(PROJINC) $(GDALCFLAGS)
@@ -77,4 +84,11 @@ vector_wrap.c: $(ARCH_INCDIR)/vect/dig_structs.h
 raster_wrap.c: $(ARCH_INCDIR)/raster.h
 display_wrap.c: $(ARCH_INCDIR)/display.h
 stats_wrap.c: $(ARCH_INCDIR)/stats.h
+dbmi_wrap.c: $(ARCH_INCDIR)/dbmi.h
+dbmi_wrap.c: $(ARCH_INCDIR)/proto_dbmi.h
+g3d_wrap.c: $(ARCH_INCDIR)/G3d.h
+arraystats_wrap.c: $(ARCH_INCDIR)/arraystats.h
+cluster_wrap.c: $(ARCH_INCDIR)/cluster.h
+trans_wrap.c: $(ARCH_INCDIR)/transform.h
+vedit_wrap.c: $(ARCH_INCDIR)/vedit.h
 utils_wrap.c:

+ 8 - 0
swig/python/arraystats.i

@@ -0,0 +1,8 @@
+
+%include "common.i"
+
+%{
+#include <grass/arraystats.h>
+%}
+
+%include "grass/arraystats.h"

+ 8 - 0
swig/python/cluster.i

@@ -0,0 +1,8 @@
+
+%include "common.i"
+
+%{
+#include <grass/cluster.h>
+%}
+
+%include "grass/cluster.h"

+ 8 - 0
swig/python/dbmi.i

@@ -0,0 +1,8 @@
+
+%include "common.i"
+
+%{
+#include <grass/dbmi.h>
+%}
+
+%include "grass/dbmi.h"

+ 8 - 0
swig/python/g3d.i

@@ -0,0 +1,8 @@
+
+%include "common.i"
+
+%{
+#include <grass/G3d.h>
+%}
+
+%include "grass/G3d.h"

+ 8 - 0
swig/python/trans.i

@@ -0,0 +1,8 @@
+
+%include "common.i"
+
+%{
+#include <grass/transform.h>
+%}
+
+%include "grass/transform.h"

+ 8 - 0
swig/python/vedit.i

@@ -0,0 +1,8 @@
+
+%include "common.i"
+
+%{
+#include <grass/vedit.h>
+%}
+
+%include "grass/vedit.h"