/[escript]/branches/RW_WIN32/escript/src/Data/SConscript
ViewVC logotype

Diff of /branches/RW_WIN32/escript/src/Data/SConscript

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 221 by phornby, Thu Nov 24 11:23:33 2005 UTC revision 222 by robwdcock, Thu Nov 24 12:54:42 2005 UTC
# Line 2  Import('*') Line 2  Import('*')
2    
3  lib_name = 'escriptcpp'  lib_name = 'escriptcpp'
4    
5  escript_env=env.Copy()  local_env=env.Copy()
6    
7  src_dir = escript_env.Dir('.').srcnode().abspath  src_dir = local_env.Dir('.').srcnode().abspath
8    
9  import os  import os
10  filenames = os.listdir(src_dir)  filenames = os.listdir(src_dir)
# Line 12  sources = [x for x in filenames if os.pa Line 12  sources = [x for x in filenames if os.pa
12  headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]  headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
13    
14  include = Dir('escript/Data', esys_inc)  include = Dir('escript/Data', esys_inc)
15  escript_env.Install( include, headers )  local_env.Install( include, headers )
16    
17  escript_env.Append(LIBS= [boost_lib_name, 'esysUtils'])  local_env.Append(LIBS= [boost_lib_name, 'esysUtils'])
18    
19  if env['PLATFORM'] == "win32" :  if env['PLATFORM'] == "win32":
20      escript_env.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'ESCRIPT_EXPORTS'])     local_env.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'ESCRIPT_EXPORTS'])
21      escript_env.Append(LIBS= ['ext_math'])     local_env.Append(LIBS= ['ext_math'])
22      escript_env['PDB'] = lib_name + '.pdb'     local_env['PDB'] = lib_name + '.pdb'
23  elif env['PLATFORM'] == "posix" :  elif env['PLATFORM'] == "posix" :
24      pass      pass
25  else:  else:
# Line 32  else: Line 32  else:
32                 '/raid2/tools/python-2.3.4/include/python2.3',                 '/raid2/tools/python-2.3.4/include/python2.3',
33                 '/raid2/tools/boost/include/boost-1_31']                 '/raid2/tools/boost/include/boost-1_31']
34        
35     escript_env = Environment(ENV = os.environ)     local_env = Environment(ENV = os.environ)
36        
37     escript_env.Replace(CXX = 'icc')     local_env.Replace(CXX = 'icc')
38     escript_env.Replace(SHOBJSUFFIX = '.lo')     local_env.Replace(SHOBJSUFFIX = '.lo')
39     escript_env.Replace(CXXFLAGS = cxx_flags)     local_env.Replace(CXXFLAGS = cxx_flags)
40     escript_env.Replace(CPPPATH = cpp_path)     local_env.Replace(CPPPATH = cpp_path)
41        
42  escript_lib = escript_env.SharedLibrary(lib_name, sources)  escript_lib = local_env.SharedLibrary(lib_name, sources)
43  escript_env.Install(esys_lib, escript_lib)  local_env.Install(esys_lib, escript_lib)
44    
45    # Python
46    local_env.Export('lib_name')
47    env.SConscript(dirs = ['#/escript/py_src'], build_dir='build/$PLATFORM/escript/py', duplicate=0)

Legend:
Removed from v.221  
changed lines
  Added in v.222

  ViewVC Help
Powered by ViewVC 1.1.26