/[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

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

Legend:
Removed from v.185  
changed lines
  Added in v.210

  ViewVC Help
Powered by ViewVC 1.1.26