Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Studio 2008
  2. GoGui 0.9.5 or later (and a couple required libraries if you don't already have them)
  3. SCons 1.2.0.d20090223
  4. The files makeStudio.py, registerTargets.py, generateScript.py and msvs.py in CVS. (Or just replace all of SConsFiles/site_scons/site_tools with users/jrb/minimalDev/site_scons/site_tools.) These files should be added to site_scons/site_tools under the top ScienceTools (or other container) directory.

Wiki MarkupFor each package the SConscript file must be modified slightly to invoke the tool registerTargets rather than registerObjects. This has now been done for all packages in ScienceTools New, converted SConscript files have been committed and the packages are all tagged.   If you start with source from a recent ST LATEST build you don't have to worry about this.  Details of the differences are described below for the curious.

Wiki Markup
 than registerObjects.  registerTargets has a different interface. First of all, registerTargets makes finer distinctions between target types.  swig libraries are a category of their own, as are ROOT-using static libraries and ROOT-using shared libraries. For each category of library or executable target (e.g. static library, swig library, test app, etc.) instead of passing just a list of targets you pass in a list of pairs \[_target_, _environment_\] where _environment_ is the environment used to create the target somewhere earlier in the SConscript file. Here is an example of the changes needed for the facilities package:

Code Block
SQL
SQL
#Old form of register, using registerObjects
#progEnv.Tool('registerObjects', package = 'facilities',
#             libraries = [facilitiesLib, lib_pyFacilities],
#             testApps = [test_time, test_env, test_Util],
#             includes = listFiles(['facilities/*.h']))

#New, using registerTargets
progEnv.Tool('registerTargets', package = 'facilities',
             libraryCxts = [[facilitiesLib, libEnv]],
             swigLibraryCxts = [[lib_pyFacilities, swigEnv]],
             testAppCxts = [[test_time, progEnv], [test_env,progEnv],
                            [test_Util,progEnv]],
             includes = listFiles(['facilities/*.h']))

...

GoGui hints

Alpha users should go to the utility options item in the options menu to make sure the correct SCons will be used. Go also to build options and select vc9 for the compiler.

...