~vcs-imports/escript-finley/trunk

« back to all changes in this revision

Viewing changes to paso/profiling/SConscript

  • Committer: jfenwick
  • Date: 2010-10-11 01:48:14 UTC
  • Revision ID: svn-v4:77569008-7704-0410-b7a0-a92fef0b09fd:trunk:3259
Merging dudley and scons updates from branches

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#
12
12
########################################################
13
13
 
14
 
 
15
14
import os, re
16
15
Import('*')
17
 
 
18
 
local_env = clone_env(env)
19
 
 
20
 
src_dir = local_env.Dir('.').srcnode().abspath
21
 
 
22
 
# get the relevant file names:
23
 
src_dir = local_env.Dir('.').srcnode().abspath
24
 
filenames = [ x for x in os.listdir(src_dir) if os.path.splitext(x)[1] in [".h", ".c", ".cpp"] ]
25
 
 
26
 
sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
27
 
 
28
 
local_env.Append(LIBS= ['escript','esysUtils','paso'] + local_env['sys_libs'] )
29
 
local_env['CCFLAGS'] = re.sub("-O[0-9]", "-g", str(local_env['CCFLAGS']))       # Some of these test files are too large to optimize
30
 
 
 
16
local_env = env.Clone()
 
17
 
 
18
# get the test source file names
 
19
sources = Glob('*.cpp')+Glob('*.c')
 
20
 
 
21
# some of these test files are too large to optimize
 
22
local_env['CCFLAGS'] = re.sub('-O[0-9]', '-g', str(local_env['CCFLAGS']))
 
23
local_env.Append(LIBS=['escript', 'esysUtils', 'paso'])
 
24
 
 
25
# build the executable
31
26
program = local_env.Program('PasoTests', sources)
32
27