Ian Abbott
d5e7c2a116
Revert previous commit, renaming comedi_wrap.c back to comedi_python_wrap.c.
...
Add "comedi_python.i" swig interface file which merely %includes the
"comedi.i" in the parent directory. Fix paths in "setup.py" and set it up
to run swig directly (using "comedi_python.i" as the source). Change
"_comedi.py" to "comedi.py" (but keep the underscore prefix on the .so
and .la files).
Based on a patch by W. Trevor King.
2010-12-16 16:03:35 +00:00
Ian Abbott
5605af7eba
Use #ifdef SWIGRUBY around typemap(ruby,...) and remove the ruby argument.
2010-12-16 11:41:41 +00:00
Ian Abbott
6c6a5d5b4f
Renamed comedi_python_wrap.c to the swig default comedi_wrap.c.
2010-12-16 11:34:07 +00:00
Ian Abbott
4b8bf1aff5
Import DESTDIR in swig/ruby/setup.rb for configurable rbconfig install paths.
...
Patch from W. Trevor King.
2010-12-14 14:37:18 +00:00
Ian Abbott
309fc0d7f8
Include chanlist length in call to comedi_get_cmd_generic_timed.
...
Truncate the Float period to an integer.
2010-11-08 11:38:40 +00:00
Ian Abbott
003b9ec501
Add chanlist_len parameter to comedi_get_cmd_generic_timed.
2010-11-08 11:01:42 +00:00
Ian Abbott
41759a9bea
Defined SWIG_USE_OLD_TYPEMAPS as a temporary measure to work with SWIG 2.0.
2010-11-08 10:42:42 +00:00
Ian Abbott
5dcb180472
Specify EXTRA_DIST files in subdirectories explicitly.
2010-03-24 16:45:15 +00:00
Ian Abbott
d7bdd10bd6
Update setup.rb using http://i.loveruby.net/archive/setup/setup-3.4.1.tar.gz
2009-02-18 15:14:53 +00:00
Ian Abbott
24147c08a4
Allow swig to include comedi.h and comedilib.h from comedi.i to avoid
...
duplication.
2009-01-30 14:51:38 +00:00
Ian Abbott
3c25224334
Added updates from comedi.h and comedilib.h.
2009-01-30 14:21:52 +00:00
Ian Abbott
a68c805998
Fix out-of-tree build of ruby bindings.
2007-11-02 16:03:58 +00:00
Frank Mori Hess
9e4c195b92
Patch from steven.jenkins@ieee.org (Steven Jenkins):
...
The SWIG interface file (swig/comedi.i) is out of date with respect to comedi.h
and comedilib.h. I've attempted to make it current by applying most of the
changes since 1.22 (both headers).
My ability to test is limited. The swig/ruby/demo/cmd application runs
successfully using the comedi_test device. The python extension library
compiles, but that's as far as I've taken it.
2007-10-15 00:02:49 +00:00
Frank Mori Hess
c1082cee65
Fixed comedi_get_cmd_generic_timed() by adding a chanlist_len
...
parameter. Old version is still available in library, thanks to the
magic of the version_script.
2007-08-02 19:46:44 +00:00
Frank Mori Hess
5d4729b9ec
mmap works for output waveforms now.
2005-01-23 03:11:30 +00:00
Frank Mori Hess
ca83900fcf
patch from steven.jenkins@ieee.org (Steven Jenkins):
...
'setup.rb config' calls 'extconf.rb' in the ext directory to build the extension
Makefile. 'extconf.rb' looks for C source files in the directory when it runs,
so SWIG needs to run before 'setup.rb config'. The attached patch makes the
output of SWIG a prerequisite for ext/Makefile.
2004-12-04 18:12:35 +00:00
Frank Mori Hess
0942349bb8
patch from Steven Jenkins <steven.jenkins@ieee.org>:
...
If configure attempts to build the Ruby extension on a system without a previous
installation of comedilib, compilation fails because gcc can't find comedilib.h.
The attached patch adds the distribution include directory to the gcc search
path when compiling the extension.
2004-11-23 01:18:14 +00:00
Frank Mori Hess
366b8b5da0
fix handling of swig so it is run at compile time instead of when
...
building tarball (due to possible dependence on swig library).
2004-09-27 03:27:43 +00:00
David Schleef
f8389c58f5
Fix distcheck
2004-08-11 21:37:46 +00:00
Frank Mori Hess
9a84e6a44b
use setup.rb for clean-local and distclean-local
2004-06-20 03:36:33 +00:00
Frank Mori Hess
06a5a7846a
added some files to EXTRA_DIST that were left out of tarball
2004-06-19 17:55:38 +00:00
Frank Mori Hess
d20c5e18c9
fix compilation when builddir != srcdir
2004-06-19 15:06:00 +00:00
David Schleef
2541e7b171
distcheck fixes
2004-06-12 20:56:06 +00:00
Frank Mori Hess
dfc1ffbdba
update to ruby binding from steven jenkins:
...
Better exception handling. More consistent handling of return values. Updated
documentation.
2004-03-29 01:39:36 +00:00
Frank Mori Hess
41ce3f70a0
patch from Steven Jenkins -------
...
The attached patch updates files in comedilib/swig/ruby. lib/comedi.rb is
updated to raise Ruby exceptions as indicated by the comedilib API
documentation. README and demo/cmd are updated accordingly.
2004-03-06 22:13:37 +00:00
Frank Mori Hess
ad69935bad
don't make comedi_command arg INOUT
2004-01-18 20:26:47 +00:00
Frank Mori Hess
2fe5055c25
clean up object files
2004-01-17 19:18:08 +00:00
Frank Mori Hess
3e81d9e11e
update README to reflect automake support for compilation/installation
2004-01-17 19:17:42 +00:00
Frank Mori Hess
b8d7e64c4d
more autoconf support for ruby binding
2004-01-17 19:08:46 +00:00
Frank Mori Hess
a3005f2922
start of automake support for ruby extension
2004-01-17 17:11:17 +00:00
Frank Mori Hess
cac5a2eac6
ruby binding and example from Steven Jenkins. I still need to tweak
...
the Makefiles a bit to integrate it properly
2004-01-17 16:33:09 +00:00
Frank Mori Hess
a7ad74bf2d
include typemaps.i
2004-01-12 22:41:40 +00:00
Frank Mori Hess
153547a047
ruby fix from steven jenkins
2004-01-12 01:38:06 +00:00
Frank Mori Hess
37cc8552e8
add some comments on obsolete sections
2004-01-11 23:16:02 +00:00
Frank Mori Hess
711679b1e2
restore README.txt that got lost when I moved the python directory
2004-01-11 23:14:44 +00:00
Frank Mori Hess
09aa989c1f
swig deprecated BOTH in favor of INOUT
2004-01-11 23:04:35 +00:00
Frank Mori Hess
a64c59b46d
make cvs checkout compilable by people without swig
2004-01-08 03:10:32 +00:00
Frank Mori Hess
76c73a0956
fix typo
2004-01-04 17:07:04 +00:00
Frank Mori Hess
bc7a0262b2
moved SWIG code from python directory to new swig directory. Added
...
beginnings of support for ruby swig binding
2004-01-04 16:56:35 +00:00