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

Re: [PATCH] Linking the Ruby bindings on windows

From: Vlad Georgescu <vgeorgescu_at_gmail.com>
Date: 2006-12-29 21:33:43 CET

On 12/29/06, Joe Swatosh <joe.swatosh@gmail.com> wrote:
[...]
> + def _find_ruby(self):
> + "Find the right Ruby library name to link swig bindings with"
> + fp = os.popen('ruby -rrbconfig -e ' + escape_shell_arg(
> + "print Config::CONFIG['LIBRUBY']"), 'r')
> + try:
> + libruby = fp.readline()
> + if libruby:
> + msg = 'Found installed ruby.'
> + self.ruby_lib = libruby
> + else:
> + msg = 'Could not detect Ruby version.'
> + self.ruby_lib = 'msvcrt-ruby18.lib'
> + sys.stderr.write('%s\n Ruby bindings will be linked with %s\n'
> + % (msg, self.ruby_lib))
> + finally:
> + fp.close()
> +
> +

Shouldn't _find_ruby also set the library and include paths (like
_find_python does)? Do you set these manually in Visual Studio in
order to get the bindings to build?

-- 
Vlad
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Dec 29 21:33:50 2006

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