Commit Graph

28 Commits

Author SHA1 Message Date
William S Fulton 79849cc70c Tidy up EXTRA_ build flags
Use new EXTRA_CPPFLAGS in Github CI
Harmonise use of:
  EXTRA_CPPFLAGS
  EXTRA_CFLAGS
  EXTRA_CXXFLAGS
  EXTRA_LDFLAGS
2024-03-24 18:12:21 +00:00
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
Olly Betts 9d51ce87a2 [D] Require gdmd to be used to run tests with gdc
gdmd is a wrapper which translates command line options from a
dmd-compatible syntax to the syntax gdc uses, which makes the
machinery to run D tests simpler.
2023-05-20 15:22:26 +12:00
Olly Betts 61fdfc78a7 [D] Drop explicit -fversion=/-version=
There are pre-defined version identifiers for each of the different
compiler implementations so there's no need to define them ourselves.

See list at https://dlang.org/spec/version.html#predefined-versions
- for example, version identifier `LDC` is already defined by ldc.
2023-05-20 15:22:26 +12:00
Erez Geva eaabe152b3 [D] Fix to support recent D releases
Fixes #56
Fixes #2538
Fixes #2570
2023-05-20 15:22:12 +12:00
Erez Geva 63b1293e1a Drop D version 1
See #2538
2023-05-04 13:18:10 +12:00
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