VMM patch to help with cross-platform plugin generation

2 messages Options
Embed this post
Permalink
David T. Lewis

VMM patch to help with cross-platform plugin generation

Reply Threaded More More options
Print post
Permalink
Hi Tim,

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.

Dave


'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'!
shouldBeTranslatedFor: platformName
        "Platform-dependent plugins should answer true only if they should be
        translated for this platform."

        ^self shouldBeTranslated
! !


!VMMaker methodsFor: 'initialize' stamp: 'dtl 5/6/2006 08:46'!
providedPlugins
        "generate the list by asking the InterpreterPlugins"
        ^ ((InterpreterPlugin allSubclasses
                select: [:cl | cl shouldBeTranslatedFor: se!
 lf platformName])
                collect: [:cl | cl name]) asSortedCollection! !
David T. Lewis

Mail to tim@rowledge.org bouncing

Reply Threaded More More options
Print post
Permalink
Tim, I think your mail relay is constipated.

Dave

   ----- Transcript of session follows -----
procmail: Extraneous filter-flag ignored
... while talking to mx1c0soho.megamailservers.com.:
>>> DATA
<<< 550 5.7.1 <[hidden email]>... Relaying denied: You must check for new mail before sending
+mail.
550 5.1.1 <[hidden email]>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)