Commit graph

21 commits

Author SHA1 Message Date
William S Fulton
8e2bc595c6 Remove use of preinst-swig script
Complete the prototype removal in ca1431.

The script prevents SWIGTOOL=gdb from working as gdb can't be used to
debug a shell script, it requires a binary.

Add support for SWIGTOOL in all the examples.

SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles.

See issue #473.
2015-08-21 22:43:17 +01:00
William S Fulton
b4c441f62e Remove unused std_string.i from callback examples 2015-05-10 11:49:28 +01:00
William S Fulton
3aab2df371 Fix D examples when run 'in-source' 2014-12-29 17:17:25 +00:00
William S Fulton
2d340efe0d Fix D examples clean
Was not working if run out of source without previously running D examples
2014-12-28 19:54:46 +00:00
William S Fulton
063aa9e3c5 Revert "Fix D examples clean"
This reverts commit c26010eb01.
2014-12-28 19:14:25 +00:00
William S Fulton
c26010eb01 Fix D examples clean 2014-12-28 17:35:18 +00:00
David Nadlinger
0e5e043870 D: Fix up the emergency CI build fix (fe3d137ce).
Turns out the issue that led me to push a broken commit in
the first place also caused the build to succeed when I
tested the fix in a rush. I should've just used the GitHub
merge button. Sorry for the noise, hopefully won't happen again.
2014-11-07 00:42:45 +01:00
David Nadlinger
fe3d137ce9 D: Fixup example makefile.
This fixes 8627656. I accidentally merged an old version to master,
sorry for the intermittent breakage.
2014-11-06 23:12:00 +01:00
David Nadlinger
86276568df D: Fix out-of-source build for examples. 2014-11-06 23:04:36 +01:00
William S Fulton
f39ed94419 Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic -Wreturn-type 2014-05-24 13:13:32 +01:00
Karl Wette
f574a34155 Allow examples and test-suite to be built out of source tree
- Examples/Makefile.in rules use SRCDIR as the relative source directory

- ./config.status replicates Examples/ source directory tree in build
  directory, and copies each Makefile to build directory, prefixed with
  a header which sets SRCDIR to source directory

- Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir

- Examples/test-suite/errors/Makefile.in needs to filter out source
  directory from SWIG error messages

- Lua: embedded interpreters are passed location of run-time test

- Python: copy run-time scripts to build directory because of 2to3
  conversion; import_packages example copies __init__.py from source
  directory; test-suite sets SCRIPTDIR to location of run-time tests

- Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir
  can be substituted with SRCDIR; removed './' from require() statements
  so that NODE_PATH can be used to point Node.js to build directory
2014-05-11 23:21:10 +02:00
Olly Betts
b115c984a9 More cleaning up of the class examples 2014-05-05 16:14:31 +12:00
Olly Betts
0de4cf13a8 Further cleaning up of class examples 2014-02-24 10:10:24 +13:00
William S Fulton
152905e193 Fix gcc -Waddress warning in variables examples 2013-10-18 06:53:02 +01:00
Olly Betts
12708c9241 Fix typos 2013-09-25 17:29:33 +12:00
William S Fulton
e3d0947058 D example makefiles tweaks for consistency with other languages. 2013-04-19 22:47:29 +01:00
David Nadlinger
4e61e0bb76 [D] Fixed possible output ordering issue in test case.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12901 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2012-01-23 21:59:34 +00:00
David Nadlinger
a344899ed8 [D] Added workaround for LDC to the D1 version of the 'funcptr' example.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12361 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-01 14:34:51 +00:00
David Nadlinger
0c3f855cc9 [D] Not only build, but also run the examples for the 'check' target.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12360 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2011-01-01 14:23:47 +00:00
David Nadlinger
d69d8ff641 [D] Renamed the "dnativeconst" feature to "dmanifestconst".
This should make it clearer that it controls manifest constant generation, not handling of C++ const member functions.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12300 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-18 10:16:05 +00:00
David Nadlinger
03aefbc6e9 Added support for the D programming languge.
It is still a bit rough around some edges, particularly with regard to multi-threading and operator overloading, and there are some documentation bits missing, but it should be fine for basic use.

The test-suite should build and run fine with the current versions of DMD, LDC and Tango (at least) on Linux x86_64 and Mac OS X 10.6.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12299 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2010-11-18 00:24:02 +00:00