/[escript]/branches/RW_WIN32/finley/src/CPPAdapter/SConscript
ViewVC logotype

Diff of /branches/RW_WIN32/finley/src/CPPAdapter/SConscript

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

trunk/finley/src/CPPAdapter/SConscript revision 182 by jgs, Fri Nov 18 05:07:36 2005 UTC branches/RW_WIN32/finley/src/CPPAdapter/SConscript revision 221 by phornby, Thu Nov 24 11:23:33 2005 UTC
# Line 1  Line 1 
1  Import('*')  Import('*')
2    
3  import os  lib_name = 'finleycpp'
4    
5    finleycpp_env=env.Copy()
6    
7  cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'  src_dir = finleycpp_env.Dir('.').srcnode().abspath
8    
9  cpp_path = ['#../finley/inc',  import os
10              '#../esysUtils/inc',  filenames = os.listdir(src_dir)
11              '#../escript/inc',  sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
12              '#../paso/inc',  headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
13              '/raid2/tools/python-2.3.4/include/python2.3',  
14              '/raid2/tools/boost/include/boost-1_31']  include = Dir('finley/CPPAdapter', esys_inc)
15    finleycpp_env.Install( include, headers )
16  lib = 'finleycpp'  
17  sources = ['FinleyError.cpp',  finleycpp_env.Append(LIBS= [boost_lib_name, 'paso', 'escriptcpp', 'finleyC', 'esysUtils'])
18             'MeshAdapter.cpp',  
19             'MeshAdapterFactory.cpp',  if env['PLATFORM'] == "win32" or env['PLATFORM'] == "posix" :
20             'SystemMatrixAdapter.cpp',     finleycpp_env.Append(CPPDEFINES=['_WINDOWS', '_USRDLL', 'FINLEY_EXPORTS'])
21             'finleycpp.cpp']     finleycpp_env['PDB'] = lib_name + '.pdb'
22    else:
23  finleycpp_env = Environment(ENV = os.environ)     import os
24      
25  finleycpp_env.Replace(CXX = 'icc')     cxx_flags = '-O0 -openmp -openmp_report0 -tpp2 -ansi -ansi_alias -no-gcc -w1'
26  finleycpp_env.Replace(SHOBJSUFFIX = '.lo')    
27  finleycpp_env.Replace(CXXFLAGS = cxx_flags)     cpp_path = ['#../finley/inc',
28  finleycpp_env.Replace(CPPPATH = cpp_path)                 '#../esysUtils/inc',
29                   '#../escript/inc',
30                   '#../paso/inc',
31                   '/raid2/tools/python-2.3.4/include/python2.3',
32                   '/raid2/tools/boost/include/boost-1_31']
33      
34       finleycpp_env = Environment(ENV = os.environ)
35      
36       finleycpp_env.Replace(CXX = 'icc')
37       finleycpp_env.Replace(SHOBJSUFFIX = '.lo')
38       finleycpp_env.Replace(CXXFLAGS = cxx_flags)
39       finleycpp_env.Replace(CPPPATH = cpp_path)
40    
41  finleycpp_lib = finleycpp_env.SharedLibrary(lib, sources)  finleycpp_lib = finleycpp_env.SharedLibrary(lib_name, sources)
42  finleycpp_env.Install(libdir, finleycpp_lib)  finleycpp_env.Install(esys_lib, finleycpp_lib)

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

  ViewVC Help
Powered by ViewVC 1.1.26