VMM patch to help with cross-platform plugin generation
David T. Lewis
lewis at mail.msen.com
Sat May 6 13:06:31 UTC 2006
VMM supports generating sources for target platforms other than
the one it's running on, but the plugins have no way to tell
VMM if they should be translated in that case.
Trivial enhancement attached.
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="VMM-CrossGeneration-dtl.1.cs"
'From Squeak3.8 of ''5 May 2005'' [latest update: #6665] on 6 May 2006 at 9:26:47 am'!
"Change Set: VMM-CrossGeneration-dtl
Date: 6 May 2006
Author: David T. Lewis
Allow cross-generation of plugin source for platform-dependent plugins.
For example, OSPP should generate the Win32 version of the plugin if
VMMaker is set to generate plugins for 'win32' and Squeak is running
on a Unix VM.
Note that platform name 'Win32' uses platforms directory name 'win32',
so plugins should use a case-insensitive compare.
!InterpreterPlugin class methodsFor: 'translation' stamp: 'dtl 5/6/2006 08:45'!
"Platform-dependent plugins should answer true only if they should be
translated for this platform."
!VMMaker methodsFor: 'initialize' stamp: 'dtl 5/6/2006 08:46'!
"generate the list by asking the InterpreterPlugins"
^ ((InterpreterPlugin allSubclasses
select: [:cl | cl shouldBeTranslatedFor: se!
collect: [:cl | cl name]) asSortedCollection! !
More information about the Vm-dev