Login | Register
My pages Projects Community openCollabNet

Discussions > dev [DISABLED] > [Patch] Make Ruby and Perl shared libraries .dll again

subversion
Discussion topic

Back to topic list

[Patch] Make Ruby and Perl shared libraries .dll again

Author joeswatosh
Full name Joe Swatosh
Date 2009-05-21 22:20:02 PDT
Message Make the Ruby and Perl shared libraries .dll instead of .pyd. There is
probably a smarter way to do this with the ._extension_map, but I'm no
kind of Python expert.

[[[

Partially revert r37331 "On Windows, shared libs for Python bindings
should be *.pyd not *.dll." Change back to .dll for Ruby and Perl.

* build/generator/gen_base.py (TargetSWIG.add_dependencies): Mark Python
   wrapper shared libs as type "pyd" not "lib".

]]]

====================​====================​====================​=======
--- build/generator/gen_base.py (revision 37787)
+++ build/generator/gen_base.py (working copy)
@@ -550,12 +550,13 @@
     # Extract SWIG module name from .i file name
     module_name = iname[:4] != 'svn_' and iname[:-2] or iname[4:-2]

- lib_extension = self.gen_obj._extens​ion_map['pyd', 'target']
+ lib_extension = self.gen_obj._extens​ion_map['lib', 'target']
     if self.lang == "ruby":
       lib_filename = module_name + lib_extension
     elif self.lang == "perl":
       lib_filename = '_' + module_name.capitalize() + lib_extension
     else:
+ lib_extension = self.gen_obj._extens​ion_map['pyd', 'target']
       lib_filename = '_' + module_name + lib_extension

     self.name = self.lang + '_' + module_name

« Previous message in topic | 1 of 10 | Next message in topic »

Messages

Show all messages in topic

[Patch] Make Ruby and Perl shared libraries .dll again joeswatosh Joe Swatosh 2009-05-21 22:20:02 PDT
     Re: [Patch] Make Ruby and Perl shared libraries .dll again stsp Stefan Sperling 2009-05-22 05:45:52 PDT
         Re: [Patch] Make Ruby and Perl shared libraries .dll again markphip Mark Phippard 2009-05-22 05:49:10 PDT
             Re: [Patch] Make Ruby and Perl shared libraries .dll again joeswatosh Joe Swatosh 2009-05-22 06:55:22 PDT
                 Re: [Patch] Make Ruby and Perl shared libraries .dll again brane Branko Cibej 2009-05-22 10:01:00 PDT
                     Re: [Patch] Make Ruby and Perl shared libraries .dll again joeswatosh Joe Swatosh 2009-05-28 22:31:33 PDT
                         Re: [Patch] Make Ruby and Perl shared libraries .dll again stsp Stefan Sperling 2009-05-29 03:56:56 PDT
                             Re: [Patch] Make Ruby and Perl shared libraries .dll again joeswatosh Joe Swatosh 2009-06-03 20:25:50 PDT
                         Re: [Patch] Make Ruby and Perl shared libraries .dll again David James <james82 at gmail dot com> David James <james82 at gmail dot com> 2009-10-21 08:02:29 PDT
                             Re: [Patch] Make Ruby and Perl shared libraries .dll again joeswatosh Joe Swatosh 2009-10-21 08:25:59 PDT
Messages per page: