New Win32 build structure

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

New Win32 build structure

Andreas.Raab
Hi Folks -

This is just to let you know that I've checked in the changes for the
new Win32 build structure. Updated instructions are available here:

http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/win32/HowToBuild.txt?rev=1530

I'm interested in working out the remaining quirks so if someone is
willing to try it out and make notes on what works and what doesn't I'd
appreciate it.

@Tim: We need a new Win32VMMaker to support this build structure. Could
you please nuke the one currently in VMMaker and replace it with the
attached version?

Thanks,
   - Andreas




Win32VMMaker.st (2K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: New Win32 build structure

Mathieu SUEN
Andreas Raab a écrit :

> Hi Folks -
>
> This is just to let you know that I've checked in the changes for the
> new Win32 build structure. Updated instructions are available here:
>
> http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/win32/HowToBuild.txt?rev=1530
>
>
> I'm interested in working out the remaining quirks so if someone is
> willing to try it out and make notes on what works and what doesn't I'd
> appreciate it.

Ok for me it work fine but I build inside the platforms/win32/build directory

>
> @Tim: We need a new Win32VMMaker to support this build structure. Could
> you please nuke the one currently in VMMaker and replace it with the
> attached version?
>
> Thanks,
>   - Andreas
>
>
> ------------------------------------------------------------------------
>
> 'From Croquet1.0beta of 11 April 2006 [latest update: #1] on 15 September 2006 at 4:30:51 pm'!
> VMMaker subclass: #Win32VMMaker
> instanceVariableNames: ''
> classVariableNames: ''
> poolDictionaries: ''
> category: 'VMMaker-Building'!
> !Win32VMMaker commentStamp: 'tpr 5/5/2003 12:30' prior: 0!
> A special form of VMMaker to suit Windows machines.  Copies files around a little.!
>
>
> !Win32VMMaker methodsFor: 'target directories' stamp: 'ar 9/4/2006 18:01'!
> deleteUnwantedExternalPluginDirectories
> "Don't."! !
>
> !Win32VMMaker methodsFor: 'target directories' stamp: 'ar 9/4/2006 18:01'!
> deleteUnwantedInternalPluginDirectories
> "Don't."! !
>
> !Win32VMMaker methodsFor: 'target directories' stamp: 'ar 9/4/2006 17:55'!
> externalPluginsDirectory
> "return the target directory for the external plugins sources"
> ^self sourceDirectory
> " | fd |
> fd := self sourceDirectory directoryNamed: 'external'.
> fd assureExistence.
> ^fd"! !
>
> !Win32VMMaker methodsFor: 'target directories' stamp: 'ar 9/4/2006 17:55'!
> internalPluginsDirectory
> "return the target directory for the internal plugins sources"
> ^self sourceDirectory
> " | fd |
> fd := self sourceDirectory directoryNamed: 'internal'.
> fd assureExistence.
> ^fd"! !
>
>
> !Win32VMMaker methodsFor: 'copying files' stamp: 'ar 5/5/2002 01:57'!
> processAssortedFiles
> "Do nothing."! !
>
>
> !Win32VMMaker methodsFor: 'generate sources' stamp: 'ar 5/5/2002 13:51'!
> validatePlugin: plName in: listOfPlugins
> "The normal file release process bundles all files in the plugin directory, so don't bother users telling them 'there are no cross platform files for xyz' if there is are platform specific files present."
> | plugin |
> plName isString
> ifTrue: [(listOfPlugins includes: plName)
> ifTrue: [plugin := Smalltalk classNamed: plName]]
> ifFalse: [((plName isBehavior
> and: [plName inheritsFrom: InterpreterPlugin])
> and: [listOfPlugins includes: plName name])
> ifTrue: [plugin := plName]].
> plugin ifNil: [^ self couldNotFindPluginClass: plName].
>
> "Is there a cross-platform or platform files directory of the same name as this plugin?"
> plugin requiresPlatformFiles
> ifTrue: [(self platformPluginsDirectory directoryExists: plugin moduleName)
> ifFalse: [logger show: 'No platform specific files found for ' , plugin moduleName printString; cr.
> ^ self couldNotFindPlatformFilesFor: plugin]].
> plugin requiresCrossPlatformFiles ifTrue: [
> ((self platformPluginsDirectory directoryExists: plugin moduleName)
> or:[self crossPlatformPluginsDirectory directoryExists: plugin moduleName])
> ifFalse: [logger show: 'No cross platform files found for ' , plugin moduleName printString; cr.
> ^ self couldNotFindPlatformFilesFor: plugin]].
>
> ^plugin! !
>
>
> ------------------------------------------------------------------------
>
>


Reply | Threaded
Open this post in threaded view
|

Re: New Win32 build structure

Klaus D. Witzel
On Sat, 16 Sep 2006 15:25:41 +0200, Mathieu wrote:

> Andreas Raab a écrit :
>> Hi Folks -
>>
>> This is just to let you know that I've checked in the changes for the
>> new Win32 build structure. Updated instructions are available here:
>>
>> http://squeakvm.org/cgi-bin/viewcvs.cgi/trunk/platforms/win32/HowToBuild.txt?rev=1530
>>
>> I'm interested in working out the remaining quirks so if someone is
>> willing to try it out and make notes on what works and what doesn't I'd
>> appreciate it.
>
> Ok for me it work fine but I build inside the platforms/win32/build  
> directory

According to Andreas' classification, I "Generate a VM from VMMaker". I  
followed the instructions on HowToBuild.txt?rev=1530 and found that

- svn co http://squeakvm.org/svn/squeak/trunc

has a typo, replacing trunc by trunk downloaded fine.

And in VMMaker a Generate Core+Internal with all plugins internal does not  
write plugins.ext, but that possibly has nothing to do with the win32  
platform.

I have never tried the sections "Recompile an existing VM" because I  
always have a change on the  Slang side.

/Klaus


Reply | Threaded
Open this post in threaded view
|

Re: New Win32 build structure

Andreas.Raab
In reply to this post by Mathieu SUEN
Mathieu wrote:
> Ok for me it work fine but I build inside the platforms/win32/build directory

Which is one of the perfectly reasonable alternatives. Thanks for
testing the new setup.

Cheers,
   - Andreas

Reply | Threaded
Open this post in threaded view
|

Re: New Win32 build structure

Andreas.Raab
In reply to this post by Klaus D. Witzel
Klaus D. Witzel wrote:
> According to Andreas' classification, I "Generate a VM from VMMaker". I
> followed the instructions on HowToBuild.txt?rev=1530 and found that
>
> - svn co http://squeakvm.org/svn/squeak/trunc
>
> has a typo, replacing trunc by trunk downloaded fine.

Yes, of course. Thanks for finding.

> I have never tried the sections "Recompile an existing VM" because I
> always have a change on the  Slang side.

And of course there isn't any release with the new structure yet, so it
would be hard to do ;-)

Cheers,
   - Andreas