Hmm, I never heard of it, but at first glance it looks interesting and widely used:
http://en.wikipedia.org/wiki/SCons
http://www.avango.org/wiki/VisualStudio
It looks better than a makefile although not sophisticated as:
http://forums.cgsociety.org/showthread.php?f=89&t=1010489&highlight=smart
But it seems that I would need to convert all my projects to their script format:
http://stackoverflow.com/questions/1773613/visual-studio-solution-to-scons
, and I’m reluctant to do that. There are various features that are easily customizable inside the VS ide for the .vcxproj, and I’m not sure about scons integration. I prefer a solution like the patch I made that gets as an input a .sln and uses msbuild to build it for all the versions without messing with the inner parameters. So maybe I should have named this thread better as a utility to build visual studio .sln for all maya versions.
Actually the script is quite naive, but the main crux is that I patch the environment
Microsoft.Cpp.Win32.user.props
Microsoft.Cpp.x64.user.props
(don’t forget to backup them) in order to change the include / lib path of the current maya version build. Second I look for a .mll that was created in a subdirectory that contains Release, name it properly and copy it to the plug-in dir.
I would have liked a cleaner solution for:
- Pass parameters to msbuild for the added include / lib that would precede the current settings.
- Get the name of the output file of the build.
I know that msbuild has a parameter for the lib, which doesn’t quite work, and beyond that, since it deals with .sln, I’m not sure what you can do.