<br><br><div class="gmail_quote">On Tue, Apr 5, 2011 at 9:31 AM, Igor Stasenko <span dir="ltr"><<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
On 4 April 2011 23:28, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Mon, Apr 4, 2011 at 10:48 AM, Igor Stasenko <<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>> wrote:<br>
>><br>
>> On 4 April 2011 09:42, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>> wrote:<br>
>> > Ok. I will commit later the fix.<br>
>><br>
>> Yes, please do.<br>
>> I cannot manage to do everything, so a help from people is much appreciated :)<br>
><br>
> I know. I didn't commit before because I wanted to know your opinion before comminting.<br>
><br>
> I have modified a couple of things so that now you can do something like this and it works:<br>
><br>
> CogMacOSConfig new<br>
> srcDir: '/Users/mariano/src';<br>
> platformsDir: '/Users/mariano/bin/platforms';<br>
> buildDir: '/Users/mariano/Movies/build';<br>
> generateSources; generate.<br>
><br>
<br>
</div>Yes, it was designed to work like that. Sure not well tested, because<br>
most of the times it is used by taking defaults :)<br>
<div class="im"><br></div></blockquote><div><br>Yes, I can imagine. But to do that, I always need to move a PharoCore image to /build. <br>I have the git/src repository always in a specific directory. And my current Pharo image is somewhere (each time is different). So I just evaluate something like the above and that's all :)<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
<br>
> I tested in MacOS and it works. I couldn't test in the rest of the OS. I am afraid I have broken something, so, just in case, I attach here the mcz. I would really appreaciate if you can take a look and if works, upload it to the VMMaker repo.<br>
><br>
<br>
</div>Thanks, Mariano.<br>
I will take a look. But you just upload it there, and if it works i<br>
will just put it in use.<br></blockquote><div><br>Done.<br>I couldn't test anywhere than MacOS.<br> </div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><br>
<br>
> Name: CMakeVMMaker-MarianoMartinezPeck.66<br>
> Author: MarianoMartinezPeck<br>
> Time: 4 April 2011, 11:27:55 pm<br>
> UUID: ab7eacee-e6e8-4149-8507-60235f871297<br>
> Ancestors: CMakeVMMaker-MarianoMartinezPeck.65<br>
><br>
> Fixed the CMMake so that #srcDir: #platformsDir: and #buildDir: works.<br>
> Example:<br>
><br>
> CogMacOSConfig new<br>
> srcDir: '/Users/mariano/src';<br>
> platformsDir: '/Users/mariano/bin/platforms';<br>
> buildDir: '/Users/mariano/Movies/build';<br>
> generateSources; generate.<br>
><br>
><br>
><br>
> Thanks<br>
><br>
> Mariano<br>
><br>
><br>
>><br>
>> > Cheers<br>
>> ><br>
>> > Mariano<br>
>> ><br>
>> > On Mon, Apr 4, 2011 at 3:00 AM, Igor Stasenko <<a href="mailto:siguctua@gmail.com">siguctua@gmail.com</a>> wrote:<br>
>> >><br>
>> >> On 3 April 2011 11:45, Mariano Martinez Peck <<a href="mailto:marianopeck@gmail.com">marianopeck@gmail.com</a>><br>
>> >> wrote:<br>
>> >> ><br>
>> >> > Hi Igor. I was thinking a couple of things:<br>
>> >> ><br>
>> >> > 1) So...once I hace download anything from GIT, what I always need to do<br>
>> >> > is:<br>
>> >> > a) take a pharo core 1.3<br>
>> >> > b) open the LoadVMMaker.st so that I can see which versions of<br>
>> >> > metacello and cmake I need.<br>
>> >> > c) evaluate that over the pharo image<br>
>> >> > d) move my image to /build so that it finds the /src and /platform by<br>
>> >> > default<br>
>> >> ><br>
>> >> > So...I wonder what are the reason of not having such PharoCore image<br>
>> >> > already commited in GIT under /image. You can even save it with a workspace<br>
>> >> > opened with the code of LoadVMMaker.st<br>
>> >> > is it just the size of it?<br>
>> >> ><br>
>> >> > If I want to do it for myself, what is the best strategy? clone to my<br>
>> >> > own fork, add the image there and then just pull the changes?<br>
>> >> ><br>
>> >> > 2) #prepareVMMaker does this:<br>
>> >> ><br>
>> >> > prepareVMMaker<br>
>> >> ><br>
>> >> > | maker allPlugins |<br>
>> >> ><br>
>> >> > maker := VMMaker forPlatform: 'Cross'.<br>
>> >> > maker sourceDirectoryName: (self srcDir assureExistence fullName).<br>
>> >> > maker platformRootDirectoryName: (self topDir / 'platforms' )<br>
>> >> > fullName.<br>
>> >> ><br>
>> >> > And<br>
>> >> ><br>
>> >> > srcDir<br>
>> >> > "Answer the value of srcDir"<br>
>> >> ><br>
>> >> > ^ srcDir ifNil: [ srcDir := self topDir / 'src' ]<br>
>> >> ><br>
>> >> > This is cool because I can script the cong to use another src. But you<br>
>> >> > don't do the same for 'platform'. So I cannot do:<br>
>> >> ><br>
>> >> > CogDebugMacOSConfig new<br>
>> >> > srcDir: 'myFolder';<br>
>> >> > platformsDir: 'myPlatofrm';<br>
>> >> > generateSources;<br>
>> >> > generate.<br>
>> >> ><br>
>> >> > Since the platform directory will be overwritten.<br>
>> >> ><br>
>> >> ><br>
>> >> probably a mistake. platforms dir should also be configurable. and it<br>
>> >> should use it if it set.<br>
>> >><br>
>> >> ><br>
>> >> > Cheers<br>
>> >> ><br>
>> >> > Mariano<br>
>> >> ><br>
>> >> ><br>
>> >><br>
>> >><br>
>> >><br>
>> >> --<br>
>> >> Best regards,<br>
>> >> Igor Stasenko AKA sig.<br>
>> ><br>
>> ><br>
>> ><br>
>> > --<br>
>> > <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
>> ><br>
>> ><br>
>><br>
>><br>
>><br>
>> --<br>
>> Best regards,<br>
>> Igor Stasenko AKA sig.<br>
><br>
><br>
><br>
> --<br>
> Mariano<br>
> <a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
><br>
><br>
><br>
<br>
<br>
<br>
</div></div>--<br>
<div><div></div><div class="h5">Best regards,<br>
Igor Stasenko AKA sig.<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br><br>