[sword-svn] r2146 - trunk/bindings/swig

benpmorgan at www.crosswire.org benpmorgan at www.crosswire.org
Tue Mar 4 15:49:30 MST 2008


Author: benpmorgan
Date: 2008-03-04 15:49:30 -0700 (Tue, 04 Mar 2008)
New Revision: 2146

Added:
   trunk/bindings/swig/installmgr.i
   trunk/bindings/swig/swlog.i
Modified:
   trunk/bindings/swig/README
Log:
Added swlog.i and installmgr.i which I had forgotten to add. Also, updated the readme for more details on building.

Modified: trunk/bindings/swig/README
===================================================================
--- trunk/bindings/swig/README	2008-03-04 22:34:55 UTC (rev 2145)
+++ trunk/bindings/swig/README	2008-03-04 22:49:30 UTC (rev 2146)
@@ -15,9 +15,12 @@
 make
 
 # Rather than make, you probably only care about one of the languages bindings.
-# So you might try one of these instead:
+# So you might try one of these pairs of commands instead:
 # 
+#   make perl_swig
 #   make perl_make
+#
+#   make python_swig
 #   make python_make
 #
 
@@ -25,4 +28,6 @@
 cd perl
 sudo make install
 
-# TODO Install the python bindings
+# Install the python bindings - you may need to run this with sudo
+cd python
+python setup.py install

Added: trunk/bindings/swig/installmgr.i
===================================================================
--- trunk/bindings/swig/installmgr.i	                        (rev 0)
+++ trunk/bindings/swig/installmgr.i	2008-03-04 22:49:30 UTC (rev 2146)
@@ -0,0 +1,24 @@
+%include "std_map.i"
+%include "std_vector.i"
+%ignore sword::InstallSource::userData;
+%ignore sword::FTPTransport::getDirList;
+//%ignore sword::InstallMgr::getModuleStatus;
+
+%{
+#include "installmgr.h"
+#include "ftptrans.h"
+%}
+
+
+%template() std::pair<sword::SWBuf, sword::InstallSource*>;
+%template(InstallSourceMap) std::map<sword::SWBuf, sword::InstallSource*>;
+%template() std::pair<sword::SWModule *, int>;
+%template() std::map<sword::SWModule *, int>;
+//%ignore sword::InstallSource::MODSTAT_OLDER;
+
+
+
+%include "installmgr.h"
+%include "ftptrans.h"
+
+

Added: trunk/bindings/swig/swlog.i
===================================================================
--- trunk/bindings/swig/swlog.i	                        (rev 0)
+++ trunk/bindings/swig/swlog.i	2008-03-04 22:49:30 UTC (rev 2146)
@@ -0,0 +1,6 @@
+%{
+#include "swlog.h"
+%}
+
+%include "swlog.h"
+




More information about the sword-cvs mailing list