Changeset 3605


Ignore:
Timestamp:
Sep 15, 2006, 1:22:45 PM (18 years ago)
Author:
jack
Message:

Testing the behaviour of the Touch Action in SCons.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/SConstruct

    r3604 r3605  
    136136mesh_dir = os.path.join(anuga_root, 'mesh_engine')
    137137mesh_install_dir = os.path.join(install_root, 'mesh_engine')
    138 env.Install(mesh_install_dir, mesh_env.SharedLibrary(os.path.join(mesh_dir, 'triang'),
    139                                             map(lambda s: os.path.join(mesh_dir, s), ['triangle.c', 'triang.c'])))
    140 env.Install(mesh_install_dir, mesh_env.SharedLibrary(os.path.join(mesh_dir, 'triangle'),
    141                                             map(lambda s: os.path.join(mesh_dir, s), ['triangle.c'])))
     138
     139triang = mesh_env.SharedLibrary(os.path.join(mesh_dir, 'triang'), map(lambda s: os.path.join(mesh_dir, s), ['triangle.c', 'triang.c']))
     140triangle = mesh_env.SharedLibrary(os.path.join(mesh_dir, 'triangle'), map(lambda s: os.path.join(mesh_dir, s), ['triangle.c']))
     141env.Install(mesh_install_dir, triang)
     142env.Install(mesh_install_dir, triangle)
     143
     144# Make phony .exp files if building with gcc, so the Install builder doesn't choke.
     145if sys.platform == 'win32' and env['CC'] == 'gcc':
     146    env.Command(os.path.join(mesh_dir, 'triang.exp'), triang, Touch(os.path.join(mesh_dir, 'triang.exp')))
     147    env.Command(os.path.join(mesh_dir, 'triangle.exp'), triangle, Touch(os.path.join(mesh_dir, 'triangle.exp')))
    142148
    143149# Utilities
    144150util_dir = os.path.join(anuga_root, 'utilities')
    145151util_install_dir = os.path.join(install_root, 'utilities')
     152
    146153env.Install(util_install_dir, env.SharedLibrary(os.path.join(util_dir, 'polygon_ext'),
    147154                                                map(lambda s: os.path.join(util_dir, s), ['polygon_ext.c'])))
     
    157164a2fv_dir = os.path.join(anuga_root, 'abstract_2d_finite_volumes')
    158165a2fv_install_dir = os.path.join(install_root, 'abstract_2d_finite_volumes')
     166
    159167env.Install(a2fv_install_dir, a2fv_env.SharedLibrary(os.path.join(a2fv_dir, 'quantity_ext'),
    160168                                                     map(lambda s: os.path.join(a2fv_dir, s), ['quantity_ext.c'])))
     
    168176sw_dir = os.path.join(anuga_root, 'shallow_water')
    169177sw_install_dir = os.path.join(install_root, 'shallow_water')
     178
    170179env.Install(sw_install_dir, sw_env.SharedLibrary(os.path.join(sw_dir, 'shallow_water_ext'),
    171180                                                 map(lambda s: os.path.join(sw_dir, s), ['shallow_water_ext.c'])))
Note: See TracChangeset for help on using the changeset viewer.