/[escript]/branches/refine/buckley/src/SConscript
ViewVC logotype

Diff of /branches/refine/buckley/src/SConscript

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

branches/refine/refine/src/SConscript revision 3658 by jfenwick, Fri Nov 11 06:55:48 2011 UTC branches/refine/buckley/src/SConscript revision 3668 by jfenwick, Wed Nov 16 01:49:46 2011 UTC
# Line 19  Import('*') Line 19  Import('*')
19  local_env = env.Clone()  local_env = env.Clone()
20  py_wrapper_local_env = env.Clone()  py_wrapper_local_env = env.Clone()
21  local_unroll_env = env.Clone()  local_unroll_env = env.Clone()
22  local_unroll_env.Append(CFLAGS = env['refine_assemble_flags'])  local_unroll_env.Append(CFLAGS = env['buckley_assemble_flags'])
23    
24    
25  # Remove the sharedlibrary prefix on all platform - we don't want 'lib' mucking with our python modules  # Remove the sharedlibrary prefix on all platform - we don't want 'lib' mucking with our python modules
# Line 51  local_env.Prepend(LIBS = ['escript', 'es Line 51  local_env.Prepend(LIBS = ['escript', 'es
51  if IS_WINDOWS :  if IS_WINDOWS :
52    local_env.Append(CPPDEFINES = ['REFINE_EXPORTS'])    local_env.Append(CPPDEFINES = ['REFINE_EXPORTS'])
53    
54  module_name = 'refine'  module_name = 'buckley'
55    
56  un = [ local_unroll_env.SharedObject(x) for x in unroll_sources]  un = [ local_unroll_env.SharedObject(x) for x in unroll_sources]
57    
58  lib = local_env.SharedLibrary(module_name, sources+un)  lib = local_env.SharedLibrary(module_name, sources+un)
59  env.Alias('build_refine_lib', lib)  env.Alias('build_buckley_lib', lib)
60    
61  include_path = Dir('refine', local_env['incinstall'])  include_path = Dir('buckley', local_env['incinstall'])
62    
63  hdr_inst1 = local_env.Install(include_path, headers )  hdr_inst1 = local_env.Install(include_path, headers )
64  env.Alias('install_refine_headers', hdr_inst1)  env.Alias('install_buckley_headers', hdr_inst1)
65    
66  lib_inst = local_env.Install(local_env['libinstall'], lib)  lib_inst = local_env.Install(local_env['libinstall'], lib)
67  env.Alias('install_refine_lib', lib_inst)  env.Alias('install_buckley_lib', lib_inst)
68    
69  ### Python wrapper ###  ### Python wrapper ###
70  py_wrapper_local_env.Prepend(LIBS = ['refine', 'escript', 'esysUtils', 'paso'])  py_wrapper_local_env.Prepend(LIBS = ['buckley', 'escript', 'esysUtils', 'paso'])
71  py_wrapper_name = module_name + 'cpp'  py_wrapper_name = module_name + 'cpp'
72  py_wrapper_lib = py_wrapper_local_env.SharedLibrary(py_wrapper_name, 'refinecpp.cpp')  py_wrapper_lib = py_wrapper_local_env.SharedLibrary(py_wrapper_name, 'buckleycpp.cpp')
73  env.Alias('build_refinecpp_lib', py_wrapper_lib)  env.Alias('build_buckleycpp_lib', py_wrapper_lib)
74    
75  tmp_inst = os.path.join(local_env['pyinstall'], module_name)  tmp_inst = os.path.join(local_env['pyinstall'], module_name)
76  if IS_WINDOWS:  if IS_WINDOWS:
# Line 81  else: Line 81  else:
81  share_name = os.path.join(tmp_inst, py_wrapper_name+wrapper_ext)  share_name = os.path.join(tmp_inst, py_wrapper_name+wrapper_ext)
82  mod_inst = py_wrapper_local_env.InstallAs(target=share_name,  mod_inst = py_wrapper_local_env.InstallAs(target=share_name,
83                                            source=py_wrapper_lib[0])                                            source=py_wrapper_lib[0])
84  env.Alias('install_refinecpp_lib', mod_inst)  env.Alias('install_buckleycpp_lib', mod_inst)
85    
86  # configure python module  # configure python module
87  local_env.SConscript(dirs = ['#/refine/py_src'], variant_dir='py', duplicate=0)  local_env.SConscript(dirs = ['#/buckley/py_src'], variant_dir='py', duplicate=0)
88    
89  # configure unit tests  # configure unit tests
90  local_env.SConscript(dirs = ['#/refine/test'], variant_dir='$BUILD_DIR/$PLATFORM/refine/test', duplicate=0, exports=['py_wrapper_lib'])  local_env.SConscript(dirs = ['#/buckley/test'], variant_dir='$BUILD_DIR/$PLATFORM/buckley/test', duplicate=0, exports=['py_wrapper_lib'])
91    

Legend:
Removed from v.3658  
changed lines
  Added in v.3668

  ViewVC Help
Powered by ViewVC 1.1.26