/[escript]/branches/RW_WIN32/tools/mmio/src/SConscript
ViewVC logotype

Diff of /branches/RW_WIN32/tools/mmio/src/SConscript

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

revision 220 by robwdcock, Tue Nov 22 07:55:09 2005 UTC revision 221 by phornby, Thu Nov 24 11:23:33 2005 UTC
# Line 1  Line 1 
1  Import('*')  Import('*')
2    
3  # TODO: These two sections can be unified once we know what the linux/irix build looks like  lib_name = 'mmio'
4                                        
5    mmio_env=env.Copy()
6    src_dir = mmio_env.Dir('.').srcnode().abspath
7    
8    import os
9    filenames = os.listdir(src_dir)
10    sources = [x for x in filenames if os.path.splitext(x)[1] in ['.cpp', '.c']]
11    headers = [x for x in filenames if os.path.splitext(x)[1] in ['.h']]
12    
13    
14    include = Dir(lib_name, esys_inc)
15    mmio_env.Install( include, headers )
16    
17  if env['PLATFORM'] == "win32":  if env['PLATFORM'] == "win32":
18     mmio_env=env.Copy()     mmio_env['PDB'] = lib_name+'.pdb'
19      elif  env['PLATFORM'] == "posix":
20     mmio_lib = mmio_env.StaticLibrary( 'mmio', 'mmio.c')      pass
    include = Dir('mmio', esys_inc)  
     
    mmio_env.Install( include, 'mmio.h')  
    mmio_env.Install( esys_lib, mmio_lib)  
21  else:  else:
22     import os     import os
23        
# Line 28  else: Line 36  else:
36        
37     mmio_lib = mmio_env.StaticLibrary(lib, sources)     mmio_lib = mmio_env.StaticLibrary(lib, sources)
38     mmio_env.Install(libdir, mmio_lib)     mmio_env.Install(libdir, mmio_lib)
39    
40    mmio_lib = mmio_env.StaticLibrary(lib_name, sources)
41    mmio_env.Install(esys_lib, mmio_lib)

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

  ViewVC Help
Powered by ViewVC 1.1.26