Hi guys. After a couple of hours I made the configurations of Mac and Unix (there are still problems in Windows) totally configurable regarding the directories. I fixed a couple of hardcoded directories and now you are able to do:<br>
<br>"The image where this code is being run has to be in a subdirectory of the git repostiory. Example:<br>/Users/mariano/Pharo/vm/git/cogVM1/blessed/image"<br>MTCocoaIOSCogJitDebugConfig generateWithSources <br>
<br>"The image where this code is being run can be in ANY place"<br>MTCocoaIOSCogJitDebugConfig new<br> srcDir: '/Users/mariano/Pharo/vm/git/cogVM1/blessed/src';<br> platformsDir: '/Users/mariano/Pharo/vm/git/cogVM1/blessed/platforms';<br>
buildDir: '/Users/mariano/Pharo/vm/git/cogVM1/blessed/build';<br> "The resourcesDir: is only needed for Mac" <br> resourcesDir: '/Users/mariano/Pharo/vm/git/cogVM1/blessed/macbuild/resources';<br>
outputDir: '/Users/mariano/Pharo/vm/git/cogVM1/blessed/results';<br> generateSources; <br> generate.<br> <br>"The image where this code is being run can be in ANY place" <br>MTCocoaIOSCogJitDebugConfig new<br>
defaultDirectoriesFromGitDir: '/Users/mariano/Pharo/vm/git/cogVM1/blessed';<br> generateSources; <br> generate.<br><br><br>with this last one, i can have my image where I want, I don't need to move it in a subdirectory of the git repo, and with those lines I can make it work. <br>
Be careful because I changed several places. If someone could review...<br><br>Name: CMakeVMMaker-MarianoMartinezPeck.83<br>Author: MarianoMartinezPeck<br>Time: 12 April 2011, 11:38:18 pm<br>UUID: 609cc5fb-016a-41cf-a94c-283c0c40c59f<br>
Ancestors: CMakeVMMaker-MarianoMartinezPeck.82<br><br>- replaced hardcoded directory names like 'src' by sourceDirName, 'buid' by buildDirName, etc.<br>- Fix hardcoded directories for resources in Mac OS and for pluggins settings<br>
- added the method #defaultDirectoriesFromGitDir: gitRepository<br>to both, Unix and Mac OS. Check the implementaton for an example. <br>- 'outputDir' can now also be parametrized like the rest of the directories.<br>
- 'resourcesDir' can now also be parametrized like the rest of the directories in Mac OS.<br><br><br>Thanks<br><br clear="all"><br>-- <br>Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br>
<br>