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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 210 - (hide annotations)
Wed Nov 23 09:54:02 2005 UTC (15 years ago) by robwdcock
File size: 1391 byte(s)
PARTIAL WIN32 BUILD SYSTEM AND PORT
+ All libraries now build under new build system. No unit test routines yet
+ Reversed some incorrect refactorings in Bruce.cpp

1 jgs 182 Import('*')
2    
3 robwdcock 210 lib_name = 'finleycpp'
4 jgs 182
5 robwdcock 210 finleycpp_env=env.Copy()
6 jgs 182
7 robwdcock 210 src_dir = finleycpp_env.Dir('.').srcnode().abspath
8 jgs 182
9 robwdcock 210 import os
10     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 jgs 182
17 robwdcock 210 finleycpp_env.Append(LIBS= [boost_lib_name, 'paso', 'escriptcpp', 'finleyC', 'esysUtils'])
18 jgs 182
19 robwdcock 210 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 jgs 182
42 robwdcock 210 finleycpp_lib = finleycpp_env.SharedLibrary(lib_name, sources)
43     finleycpp_env.Install(esys_lib, finleycpp_lib)

  ViewVC Help
Powered by ViewVC 1.1.26