From lechner@cs.uml.edu Mon Apr 28 01:02:02 2008 Subject: Re: Scons built after adding chgen_release_date.c To: ralmonte@cs.uml.edu (Robert Almonte) RJLRef: $RBGB/bdemakewithscons_ra.080427.txt You did well. Thanks for providing this simple build proc. You don't say what its dependency on $HOSTTYPE is, or whethere it can be used on saturn/venus. Perhaps it can be duplicated 4 times for $HOSTTYPE and [no]log. 'which scons' returns no path tonight on saturn or mercury. We could install in near CVSROOT in my home page. I'll ask if Ken will install it from http://www.scons.org/ for uml/cs users. Bob lechner > From ralmonte@cs.uml.edu Sun Apr 27 20:11:09 2008 > From: Robert Almonte > To: Bob Lechner > Subject: Scons built after adding chgen_release_date.c > Hi Lechner, > > This is the whole configuration file for building BDE and the pr_util > (see embedded file below). > I will try the options that you mentioned later on (pr_util/w and wo log > and the hostname). > We probably need to install the SCONS software locally in my account or > yours. > > Below is my first take to SCONS using the tutorial. This simple file > builds the whole BDE and pr_util_nolog. > I need to tweak it to use a build directory instead of building in the > same source code and provide the > different builds that you have. > > anyway, this looks good. > Robert > > > --------------------- Start of the SConstruct configuration file > ------------------------------------------------------------ > ''' SConstruct created on 25 April 2008. > Build BDE using the SCONS build tool. > > ''' > > # scons v0.97 does not have the Glob object so define one from Python. > from glob import glob as Glob > > # Source files > includeDirs = ['./include', './include/pr_util'] > libSources = Glob('./src/pr_util*/*.c') > srcFiles = Glob('./src/*.cc') > finalName = 'bde' > > # Libraries > libPath = ['./lib', '/usr/lib/', '/usr/local/lib'] > libs = ['X11', 'Xm', 'Xt'] > > # C Flags > bdeCCFlags = ['-DDEBUG', '-DUSECPLUSPLUS', '-O0', '-g3', '-Wall', > '-c', '-fmessage-length=0'] > libCCFlags = ['-DUSECC', '-O0', '-g3', '-Wall', '-c', > '-DBDE_SCHEMA="94sbde_schema.h"', > '-DBDE_SCHEMA="94sbde_schema.h"', > '-DBDE_SCHEMA="94sbde_schema.h"'] > > # build objects > libObjects = Object(libSources, CCFLAGS=libCCFlags, CPPPATH = includeDirs) > bdeObjects = Object(srcFiles, CCFLAGS=bdeCCFlags, CPPPATH = includeDirs) > > # Build pr_util nolog library > Library('pr_util', libObjects) > > # Build BDE > print("Building " + finalName + "...") > Program(finalName, bdeObjects + libObjects, LIBS = libs, LIBPATH = libPath ) > ------------------------------------------- End > ------------------------------------------------------------------------------------------------ >