[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[PATCH] Generate SWIG files in the build directory

From: David James <james82_at_gmail.com>
Date: 2005-12-24 20:52:18 CET

[[[

Generate SWIG files in the build directory, so that developers can test
different SWIG configurations using multiple VPATH builds.

Patch by: philip
          djames

* Makefile.in
  (EXTRACLEAN_SWIG_HEADERS, EXTRACLEAN_SWIG_PL, EXTRACLEAN_SWIG_PY,
   EXTRACLEAN_SWIG_RB): Clean generated headers from build directory, instead
  of the source directory.
  (swig-pl): Only symlink C files to the source directory when we're in release
  mode.
  (copy-swig-py): Copy python files from the build directory if we're not in
  release mode.

* build/generator/gen_base.py
  (SWIGObject.__init__): Add release_mode parameter. Set self.source_generated
  based on whether we're in release mode.
  (TargetSWIG.__init__): Initialize release mode member.
  (TargetSWIG.add_dependencies): Don't prepend $(top_srcdir) to path for
  generated C files. Instead, pass a release_mode parameter into created
  SWIGObjects, so that the SWIGObject can prepend $(abs_srcdir) when we're in
  release mode.

* build/generator/swig/header_wrappers.py,
  build/generator/swig/external_runtime.py,
  build/generator/swig/checkout_swig_header.py
  (Generator.write_makefile_rules): Generate SWIG headers in the build
  directory.

]]]

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Sun Dec 25 00:32:52 2005

This is an archived mail posted to the Subversion Dev mailing list.