From 6e7b14c468dcea2eb8abcd25051296977a33d2c6 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Wed, 7 Nov 2012 23:48:55 +0000 Subject: [PATCH] Added a verbose option. --- SConstruct | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/SConstruct b/SConstruct index 4db92b295..da6c00acb 100644 --- a/SConstruct +++ b/SConstruct @@ -522,6 +522,10 @@ opts.AddVariables( """Create symbolic links for headers that were installed to the 'kernel' subdirectory in previous versions of Cantera.""", False), + BoolVariable( + 'VERBOSE', + """Create verbose output about what scons is doing.""", + False), BoolVariable( 'renamed_shared_libraries', """If this option is turned on, the shared libraries that are created @@ -680,6 +684,7 @@ if env['use_sundials'] in ('y','default'): if env['sundials_libdir']: env.Append(LIBPATH=[env['sundials_libdir']]) + # BLAS / LAPACK configuration if env['blas_lapack_libs'] != '': env['blas_lapack_libs'] = env['blas_lapack_libs'].split(',') @@ -871,6 +876,7 @@ if env.get('python_array') in ('numarray', 'numeric'): # Directories where things will be after actually being installed. These # variables are the ones that are used to populate header files, scripts, etc. +env['ct_installroot'] = env['prefix'] env['ct_libdir'] = pjoin(env['prefix'], 'lib') env['ct_bindir'] = pjoin(env['prefix'], 'bin') env['ct_incdir'] = pjoin(env['prefix'], 'include', 'cantera') @@ -1097,6 +1103,9 @@ for xml in mglob(env, 'data/inputs', 'xml'): build(env.Command(dest, xml.path, Copy('$TARGET', '$SOURCE'))) if addInstallActions: + if env['VERBOSE']: + print 'INFO 2: addInstallActions script started' + # Put headers in place headerBase = 'include/cantera' install(env.RecursiveInstall, '$inst_incdir', 'include/cantera')