Commit graph

231 commits

Author SHA1 Message Date
William S Fulton
8128b1e12f For Android examples, replace hard coded tool names with those detected at configure time. 2014-09-15 19:44:18 +01:00
William S Fulton
ef4cb2f574 Fix example clean target in makefile for operating systems that don't use .so as shared library extension 2014-06-04 13:00:18 +01:00
Karl Wette
b8026cc02f Fix cleaning of Python runme.py scripts for in-source-tree builds 2014-05-29 14:40:50 +02:00
Karl Wette
cc0738bbda Fully clean Python examples and test-suite 2014-05-29 02:29:27 +02:00
Karl Wette
74e17fdbf6 Fix Javascript examples so that "make clean" works properly with node
- Need to copy example.cxx to build directory so that build products
  end up in the right place; use a gyp command expansion to do so
2014-05-29 02:29:27 +02:00
William S Fulton
78719759d5 Test-suite makefile fixes for Windows
Remove $(realpath ) which is no good for Windows executables running
under Cygwin's make
2014-05-28 23:44:55 +01:00
William S Fulton
4ab2eb96cd R examples building out-of-source
They still don't run though
2014-05-25 00:29:32 +01:00
William S Fulton
879296f71b Correct CFLAGS CXXFLAGS for Javascript and guile examples 2014-05-24 13:13:32 +01:00
William S Fulton
ac89f7f785 Javascript examples tidy up
- Remove empty files
- Improve clean
2014-05-18 00:59:47 +01:00
William S Fulton
50f5b4f7f4 Fix in source android examples clean 2014-05-16 20:46:35 +01:00
William S Fulton
6181853312 Fix out of source clean-android-examples 2014-05-15 23:28:47 +01:00
William S Fulton
18d72f4562 Add in CPPFLAGS and LDFLAGS to examples/test-suite
- Split current usage of CXXFLAGS into the conventional CPPFLAGS CXXFLAGS and LDFLAGS
- Split current usage of CFLAGS into the conventional CPPFLAGS CFLAGS and LDFLAGS
- This restores 'make whatever CXXFLAGS=-g' which stopped working during
  the recently added suppport for out of source builds.
- LDFLAGS is currently empty, but is there for future use
2014-05-15 23:11:08 +01:00
William S Fulton
2b5499a262 Slight simplification of test-suite build for new out-of-source changes
Provide default SRCDIR and SCRIPTDIR variables in common.mk and override
only where needed.
2014-05-15 23:11:07 +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
Karl Wette
96153c7c0a Regenerate configured Makefile if Makefile.in or config.status have changed 2014-05-11 21:31:32 +02:00
Karl Wette
d5b765d388 Whitespace cleanup of all Makefiles*
- some of the %.clean rules in the test-suite Makefiles were using a single tab
  as an empty rule, dangerous! I've replaced these with the safer '@exit 0'.
2014-05-02 20:06:11 +02:00
William S Fulton
dbf80cbaa5 Javascript example Makefiles more consistent with other languages 2014-04-24 22:18:12 +01:00
Oliver Buchtala
f3e3fce664 Fix configuration for ctest with Javascript/v8. 2014-04-23 02:25:07 +02:00
William S Fulton
e6d5abb766 Only disable javascript tests if node-gyp is missing when testing node 2014-04-21 11:37:19 +01:00
William S Fulton
ffe4bd8f60 ADD RUNPIPE and RUNTOOL to Javascript examples 2014-04-19 18:11:32 +01:00
William S Fulton
efc5af04e0 Detect node-gyp at configure time and show version in javascript_version target 2014-04-19 16:44:21 +01:00
William S Fulton
0e0f65aead Tidy up Example makefile for Javascript 2014-04-10 08:13:06 +01:00
Oliver Buchtala
57491eaa81 Add 'version' target for javascript. 2014-03-06 06:29:00 +01:00
Oliver Buchtala
a234542543 Merge branch 'master' into tmp
Conflicts:
	.travis.yml
	Examples/Makefile.in
	Examples/test-suite/director_nspace.i
	Examples/test-suite/nspace.i
	Examples/test-suite/nspace_extend.i
	Source/Modules/lang.cxx
	configure.ac
2014-03-05 01:09:26 +01:00
Oliver Buchtala
424e3f4712 Fix custom javascript interpreter configuration for OSX. 2014-02-26 22:46:24 +01:00
Oliver Buchtala
b216a739c4 Introduced an extra Makefile for the custom javascript interpreter. 2014-02-26 20:51:38 +01:00
Oliver Buchtala
e62c6126e9 Fix regressions in Javascript example configuration. 2014-02-26 10:47:48 +01:00
Olly Betts
2f3bf144c6 Fix assorted comment and documentation typos 2014-02-23 17:15:22 +13:00
Oliver Buchtala
77ead7017c Refactored configuration for javascript examples. 2014-02-20 11:13:57 +01:00
William S Fulton
0e4f2dad0f C# examples to use debug flags when using mono interpreter 2014-02-16 15:20:14 +00:00
Marvin Greenberg
fd85d12a2c Allow csharp examples to run under mono 2014-02-05 15:31:57 -08:00
Marvin Greenberg
49d73c56d0 Move setting required -stdlib argument into configure.ac 2014-02-05 15:18:51 -08:00
Marvin Greenberg
7c5275a0f1 Make sure tests are built with same stdlib flag as used to configure swig 2014-01-30 16:17:30 -05:00
Ian Lance Taylor
3785454a87 [Go] Add support for Go 1.3, not yet released. 2014-01-21 11:18:55 -08:00
William S Fulton
32ad89668a Use RUNME consistently in examples makefile 2013-12-20 18:52:19 +00:00
Ian Lance Taylor
01ebdc0995 In Examples/Makefile.in, compile and link the program in go and
go_cpp, rather than in go_run.  This permits eliminating go_run_cpp.
2013-12-20 08:14:45 -08:00
Ian Lance Taylor
8dba8b1fde Go: Don't require that Go environment variables be set when running
examples or testsuite.
2013-12-18 11:03:39 -08:00
Ian Lance Taylor
1dca0af024 Update for Go 1.2 release. Add support for linking SWIG code directly
into executable, rather than using a shared library.
2013-12-16 19:50:17 -08:00
William S Fulton
7b08378145 Minor cleanup prior to merging to master 2013-10-11 21:48:45 +01:00
William S Fulton
bcb7aee022 Merge branch 'master' into gsoc2009-matevz
Conflicts:
	Examples/Makefile.in
	Examples/guile/Makefile.in
	Lib/php/php.swg
	Makefile.in
	Source/CParse/parser.y
	configure.ac
2013-10-10 07:26:09 +01:00
Oliver Buchtala
6dcbbf07db Conflicts:
.gitignore
	.project
	.travis.yml
	Examples/Makefile.in
	Examples/test-suite/director_nspace.i
2013-09-27 02:29:02 +02:00
William S Fulton
d0cb2b73db Remove X11 detection during configure
X11 is not used anywhere.
2013-09-18 00:40:24 +01:00
William S Fulton
f618a69990 Better detection of Ruby shared library extension
Use Config to detect dll extension (needs to be .so for Ruby 1.9 on Cygwin)
2013-09-14 17:32:54 -07:00
Oliver Buchtala
26b5acbbe8 Test-suite Makefile now supports testing for all three Javascript variants.
- node.js
- custom JavascriptCore interpreter
- custom V8 interpreter
2013-09-06 00:42:56 +03:00
Oliver Buchtala
5aba4c7ea6 Starting from scratch with Examples configuration. 2013-09-03 05:35:03 +02:00
Oliver Buchtala
bad64925ed Configuration is now easier for building and running examples and tests using v8. 2013-08-31 03:23:10 +02:00
Karl Wette
479df82616 Octave: more robust configuration
- do not rely on --eval argument to find mkoctfile, instead assume it
  is in the same directory as octave itself (which it always should be)
- check Octave options to make sure they are supported, including
  --no-window-system to prevent warnings if building without an X server
- disable Octave if any vital tests fail
2013-07-16 20:59:50 +01:00
William S Fulton
af8f77a627 Fix to ensure 2to3 for Python 3 examples is run 2013-05-27 00:27:31 +01:00
William S Fulton
dd36f28ac7 Migrate Guile examples build into common Examples makefile
- Now Guile examples are built in a consistent way to other target
languages.
- Also set GUILE_AUTO_COMPILE=0 to remove auto-compilation is enabled
  warnings
2013-05-09 19:28:09 +01:00
William S Fulton
d974e9aced Guile examples consistency changes
Use new guile_embedded_run target or guile_run target for running the
examples like the other target languages (for suppressing stdout if run
from top level).

Consistency with other target language file renames: use runme.scm for
scripts and example.i, example.c for example code.

Add class example to examples being tested.
2013-05-09 18:35:18 +01:00