[Vm-dev] A couple of things about CMake

Igor Stasenko siguctua at gmail.com
Mon Apr 4 01:00:36 UTC 2011


On 3 April 2011 11:45, Mariano Martinez Peck <marianopeck at gmail.com> wrote:
>
> Hi Igor. I was thinking a couple of things:
>
> 1) So...once I hace download anything from GIT, what I always need to do is:
> a) take a pharo core 1.3
> b) open the LoadVMMaker.st  so that I can see which versions of metacello and cmake I need.
> c) evaluate that over the pharo image
> d) move my image to /build  so that it finds the /src and /platform by default
>
> So...I wonder what are the reason of not having such PharoCore image already commited in GIT under /image.  You can even save it with a workspace opened with the code of LoadVMMaker.st
> is it just the size of it?
>
> If I want to do it for myself, what is the best strategy?  clone to my own fork, add the image there and then just pull the changes?
>
> 2) #prepareVMMaker does this:
>
> prepareVMMaker
>
>     | maker allPlugins |
>
>     maker := VMMaker forPlatform: 'Cross'.
>     maker sourceDirectoryName: (self srcDir assureExistence fullName).
>     maker platformRootDirectoryName: (self topDir / 'platforms' ) fullName.
>
> And
>
> srcDir
>     "Answer the value of srcDir"
>
>     ^ srcDir ifNil: [ srcDir := self topDir / 'src' ]
>
> This is cool because I can script the cong to use another src. But you don't do the same for 'platform'. So I cannot do:
>
> CogDebugMacOSConfig  new
>     srcDir: 'myFolder';
>  platformsDir: 'myPlatofrm';
>      generateSources;
>     generate.
>
> Since the platform directory will be overwritten.
>
>
probably a mistake. platforms dir should also be configurable. and it
should use it if it set.

>
> Cheers
>
> Mariano
>
>



-- 
Best regards,
Igor Stasenko AKA sig.


More information about the Vm-dev mailing list