SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.
http://www.swig.org
* gsoc2012-scilab: (800 commits) Cosmetic changes in a few test cases Scilab testcase fix Fix preproc_line_file test Fix 'not defined SWIGSCILAB' in testcases Add missing SWIGSCILAB in wrappers and fix unions test for non-scilab languages scilab: other doc minor fixes cosmetic changes in doc remove -nobuilder option remove useless direct_gateway function in wrapper scilab: fix throw_exception test Scilab command line options put in alphabetical order and some html tweaks Fix typo Scilab cosmetics Scilab makefile tidyup change 'Module' section to 'Builder modes' and other fixes reduce slightly the gateway source update doc fix failing unit tests with Scilab V6 fix buildermode error with Scilab V6 fix Scilab V6 support after merge of gateway & wrapper sources do no generate builder by default gateway source is moved into wrapper source beautify scilab.cxx Check for pkg-config before attempting to use it in configure Travis: No need for parallel builds for Scilab now since removing builder Scilab minor coding improvements scilab: test li_std_string_extra is fixed by previous commit scilab: fix std::string length issue scilab: simplify builder script file scilab: rename build command line options scilab: update .gitignore scilab: add the SWIG banner to the generated gateway XML scilab: remove outputlibrary option + renaming module to gateway scilab: fix compilation warnings in primitive_types test scilab: fix matrix2 example compilation warnings scilab: fix primitive types test compilation warnings scilab: fix compilation error in scilab 5.3.3 scilab: fix scilab include search regression in configure.ac scilab: fix test-suite makefiles and util scripts for standard build tools scilab: fix matrix2 example module name scilab: build now examples/tests with standard tools in (no more builder.sce) scilab: fix gateway entry point name scilab: swig generates loader script scilab: fix generated gateway source (missing include, entry point name) scilab: fix segmentation fault scilab: generate gateway source with swig scilab: change swig options, new option -gatewayxml, remove -internalmodule scilab: support typed constants (U UL L) in scilabconst(1) scilab: fix SWIG_SciString_FromChar compilation error on some compilers scilab: fix union and nested tests (they are C and not CPP tests) scilab: fix preproc_line_file test scilab: fix unions test scilab: fix nested test scilab: fix li_std_combinations test scilab: fix template_nested test scilab: fix li_boost_shared_ptr test scilab: fix tests having too long identifier names scilab: fix int typemaps (functions and fragment names) scilab: fix segfault scilab: fix tests having too long identifier names scilab: fix allprotected test scilab: truncates too long (struct, class) member names scilab: fix li_std_string_extra test, missing std_char_traits.i scilab: fix li_std_string_extra, missing lib std_basic_string.i scilab: add li_std_string_extra test scilab: truncates too long identifier names (in addition to display warnings) scilab: fix li_std_except test error codes scilab: fix tests returning wrong error code scilab: fix test-suite (scripts were not executed) scilab: rearrange some comments scilab: in builder.sce use absolute path for source files scilab: fix C++ examples cleaning More clear description of buildverbositylevel scilab: fix Examples Makefile exit code scilab: remove useless SWIG_Scilab_GetOutputPositionAndReset() scilab: rename function name management routines scilab: fix li_std_vector test scilab: rename wrapper global variable fname to SwigFuncName Revert "scilab: remove useless SWIG_Scilab_SetOutput() second parameter" Revert "scilab: fix compilation error (extra parenthesis)" Revert "scilab: fix compilation error (too many args in SWIG_Scilab_SetOutput)" scilab: display loading errors in examples scilab: fix compilation error (too many args in SWIG_Scilab_SetOutput) scilab: fix compilation error (extra parenthesis) scilab: fix wrong code in generated script builder.sce scilab: remove useless SWIG_Scilab_SetOutput() second parameter scilab: remove error messages in example contract scilab: remove example matrix2 warnings Scilab parameter name changes Fix previous commit. Correct global variable name in Scilab wrappers Suppress testcase warning Synchronize common scilab examples with other languages File renames in Scilab std_list example Have just one Scilab constants example Use CXXSRCS for testing for Scilab like other languages Scilab overloaded method testcase warning suppression Suppress Identifier name exceeds 24 characters warning in Scilab example Add RUNPIPE back in for Scilab examples Scilab long identifier name warning message improvement Scilab minor build system improvement scilab: fix doc scilab: apply K&R coding style for typemaps scilab: file name is 'example' as in other examples scilab: use SWIG_Scilab_Raise() for exceptions scilab: macro SWIG_SCILAB_ERROR (value 999 by default) for SWIG errors scilab: use a macro instead of 999 for error code scilab: add missing exit in template example scilab: template example same as in other languages scilab: fix comment typo scilab: remove indentation in example scilab; new example scilab_const scilab: enum example same as in other languages scilab: constants example same as in other languages scilab: hide too long identifier warnings scilab: fix last commit on warnings scilab: set travis warning options scilab: apply boost_shared_ptr fix scilab: use language specific warnings for too long identifier names scilab: fix String & printf previous commit scilab: display truncated name in long identifier name warnings scilab: display by default warnings for long identifier names scilab: use String and Printf in scilab.cxx scilab: no need to use prefix "g_" for global names scilab: coding style remove "_" from parameter names scilab: coding style: remove "_" from parameter names scilab: fix missing include in li_std_container_typemaps test scilab: clean contract example scilab: fix Examples makefile missing separator scilab: coding style: remove "_" from parameter names scilab: fix typo error scilab: library stl.i include same libraries as in other languages scilab: fix exit code in Example makefile scilab: code style: remove underscore in parameters (first part) scilab: rollback INCLUDE scilab: rollback (INCLUDE) scilab: remove debug stuff scilab: use TARGET in Examples Makefile scilab: reorder arguments scilab: remove useless SCRIPTDIR scilab: simplify Examples makefile (removing INCLUDE stuff) scilab: simplify Examples makefile scilab: remove debug stuff scilab: remove debug stuff scilab: remove debug stuff scilab: fix copy of additional sources in current dir + delete it scilab: test fix example contract by copying first sources in current dir scilab: fix build error management scilab: debug travis scilab: rollback scilab: test copy scilab: test copy scilab: test copy scilab: test example contract another source scilab: test example contract with another source scilab: debug travis scilab: test copy source scilab: test enum example, source renamed scilab: test: example contract, source renamed scilab: in example makefiles, use abspath for additional sources scilab: fix example runme path scilab: test travis without class example debug travis Revert "scilab: in Examples makefile use relative path for additional sources" scilab: in Examples makefile use relative path for additional sources scilab: use swig -o option in Examples makefile scilab: debug travis scilab: debug travis scilab: debug travis scilab: debug travis scilab: debug travis (examples) scilab: fix contract example (catch expected errors) scilab: generate builder.sce in currrent dir scilab: remove debug stuff Beautify scilab.cxx Use Insert instead of DohInsertitem Remove author names - they are in the COPYRIGHT file Cosmetic test case change Fix ancient bad merge from trunk Run overload_arrays testcase in all languages not just Scilab Better Scilab workaround for testcase Fix ancient merge error Revert "scilab: implement enum_var test" scilab: debug travis scilab: fix struct example makefile scilab: fix Example Makefile again scilab: Example makefile, try again scilab: fix last commit scilab: fix Example makefile scilab: fix last commit scilab: Examples makefile, remove scilab args macro and checks scilab: fix commit fragment stdint scilab: in configure, use pkg-config + disable scilab if headers not found scilab: rename swig_this(), swig_ptr() to SWIG_this(), SWIG_ptr() scilab: rename fragment scilab: remove matrix2 example README scilab: fix test-suite: change to test dir before running test scilab: fix test-suite clean scilab: no need to copy runme script in in-source build Update scilab examples from other languages ... |
||
|---|---|---|
| CCache | ||
| debian | ||
| Doc | ||
| Examples | ||
| Lib | ||
| Source | ||
| Tools | ||
| vms | ||
| Win | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| ANNOUNCE | ||
| autogen.sh | ||
| CHANGES | ||
| CHANGES.current | ||
| configure.ac | ||
| COPYRIGHT | ||
| INSTALL | ||
| LICENSE | ||
| LICENSE-GPL | ||
| LICENSE-UNIVERSITIES | ||
| Makefile.in | ||
| preinst-swig.in | ||
| README | ||
| RELEASENOTES | ||
| swig.spec.in | ||
| TODO | ||
SWIG (Simplified Wrapper and Interface Generator)
Version: 3.0.5 (in progress)
Tagline: SWIG is a compiler that integrates C and C++ with languages
including Perl, Python, Tcl, Ruby, PHP, Java, C#, D, Go, Lua,
Octave, R, Scheme (Guile, MzScheme/Racket, CHICKEN), Ocaml,
Modula-3, Common Lisp (CLISP, Allegro CL, CFFI, UFFI) and Pike.
SWIG can also export its parse tree into Lisp s-expressions and
XML.
SWIG reads annotated C/C++ header files and creates wrapper code (glue
code) in order to make the corresponding C/C++ libraries available to
the listed languages, or to extend C/C++ programs with a scripting
language.
Up-to-date SWIG related information can be found at
http://www.swig.org
A SWIG FAQ and other hints can be found on the SWIG Wiki:
http://www.dabeaz.com/cgi-bin/wiki.pl
License
=======
Please see the LICENSE file for details of the SWIG license. For
further insight into the license including the license of SWIG's
output code, please visit
http://www.swig.org/legal.html
Release Notes
=============
Please see the CHANGES.current file for a detailed list of bug fixes and
new features for the current release. The CHANGES file contains bug fixes
and new features for older versions. A summary of changes in each release
can be found in the RELEASENOTES file.
Documentation
=============
The Doc/Manual directory contains the most recent set of updated
documentation for this release. The documentation is available in
three different formats, each of which contains identical content.
These format are, pdf (Doc/Manual/SWIGDocumentation.pdf), single
page html (Doc/Manual/SWIGDocumentation.html) or multiple page html
(other files in Doc/Manual). Please select your chosen format and
copy/install to wherever takes your fancy.
There is some technical developer documentation available in the
Doc/Devel subdirectory. This is not necessarily up-to-date, but it
has some information on SWIG internals.
Documentation is also online at http://www.swig.org/doc.html.
Backwards Compatibility
=======================
The developers strive their best to preserve backwards compatibility
between releases, but this is not always possible as the overriding
aim is to provide the best wrapping experience. Where backwards
compatibility is known to be broken, it is clearly marked as an
incompatibility in the CHANGES and CHANGES.current files.
See the documentation for details of the SWIG_VERSION preprocessor
symbol if you have backward compatibility issues and need to use more
than one version of SWIG.
Installation
============
Please read the Doc/Manual/Preface.html#Preface_installation for
full installation instructions for Windows, Unix and Mac OS X.
The INSTALL file has generic build and installation instructions for
Unix users.
Testing
=======
The typical 'make -k check' can be performed on Unix operating systems.
Please read Doc/Manual/Preface.html#Preface_testing for details.
Examples
========
The Examples directory contains a variety of examples of using SWIG
and it has some browsable documentation. Simply point your browser to
the file "Example/index.html".
The Examples directory also includes Visual C++ project 6 (.dsp) files for
building some of the examples on Windows. Later versions of Visual Studio
will convert these old style project files into a current solution file.
Known Issues
============
There are minor known bugs, details of which are in the bug tracker, see
http://www.swig.org/bugs.html.
Troubleshooting
===============
In order to operate correctly, SWIG relies upon a set of library
files. If after building SWIG, you get error messages like this,
$ swig foo.i
:1. Unable to find 'swig.swg'
:3. Unable to find 'tcl8.swg'
it means that SWIG has either been incorrectly configured or
installed. To fix this:
1. Make sure you remembered to do a 'make install' and that
the installation actually worked. Make sure you have
write permission on the install directory.
2. If that doesn't work, type 'swig -swiglib' to find out
where SWIG thinks its library is located.
3. If the location is not where you expect, perhaps
you supplied a bad option to configure. Use
./configure --prefix=pathname to set the SWIG install
location. Also, make sure you don't include a shell
escape character such as ~ when you specify the path.
4. The SWIG library can be changed by setting the SWIG_LIB
environment variable. However, you really shouldn't
have to do this.
If you are having other troubles, you might look at the SWIG Wiki at
http://www.dabeaz.com/cgi-bin/wiki.pl.
Participate!
============
Please report any errors and submit patches (if possible)! We only
have access to a limited variety of hardware (Linux, Solaris, OS-X,
and Windows). All contributions help.
If you would like to join the SWIG development team or contribute a
language module to the distribution, please contact the swig-devel
mailing list, details at http://www.swig.org/mail.html.
-- The SWIG Maintainers