Commit Graph

8 Commits

Author SHA1 Message Date
Olly Betts 7274c1d2c7 Fix clean-d-examples for in-source-tree build
SRCDIR is either empty or includes a trailing `/`, so we shouldn't
append a `/` as that fails when it's empty.
2023-06-13 10:20:17 +12:00
Olly Betts ad7d342090 [D] Fix D examples to work when srcdir != builddir 2023-05-20 16:16:19 +12:00
Erez Geva 63b1293e1a Drop D version 1
See #2538
2023-05-04 13:18:10 +12:00
David Nadlinger 86276568df D: Fix out-of-source build for examples. 2014-11-06 23:04:36 +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
William S Fulton e3d0947058 D example makefiles tweaks for consistency with other languages. 2013-04-19 22:47:29 +01: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 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