Changeset 3599 for anuga_core/SConstruct
- Timestamp:
- Sep 15, 2006, 12:05:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/SConstruct
r3550 r3599 101 101 env.Append(CCFLAGS=['${MSVCFLAGS}']) 102 102 103 Export('env') 103 anuga_root = os.path.join('source', 'anuga') 104 install_root = os.path.join(env['PREFIX'], 'anuga') 104 105 105 106 # Build .pyc and .pyo files of every .py in here and below. … … 107 108 #dirs = filter(os.path.isdir, os.listdir('.')) 108 109 #Only build the source/anuga directory for now 109 dirs = [ os.path.join('source', 'anuga')]110 dirs = [anuga_root] 110 111 while(dirs != []): 111 112 dirs += filter(os.path.isdir, map(lambda x : os.path.join(dirs[0], x), os.listdir(dirs[0]))) … … 123 124 env.Install(instdir, x) 124 125 126 # Define the install target 125 127 env.Alias('install', '${PREFIX}') 126 127 SConscript(['source/anuga/SConscript']) 128 129 # Mesh_engine 130 mesh_env = env.Copy() 131 mesh_env.Append(CPPDEFINES=[('TRILIBRARY', 1), ('NO_TIMER', 1)]) 132 133 mesh_dir = os.path.join(anuga_root, 'mesh_engine') 134 mesh_install_dir = os.path.join(install_root, 'mesh_engine') 135 env.Install(mesh_install_dir, mesh_env.SharedLibrary(os.path.join(mesh_dir, 'triang'), 136 map(lambda s: os.path.join(mesh_dir, s), ['triangle.c', 'triang.c']))) 137 env.Install(mesh_install_dir, mesh_env.SharedLibrary(os.path.join(mesh_dir, 'triangle'), 138 map(lambda s: os.path.join(mesh_dir, s), ['triangle.c']))) 139 140 # Utilities 141 util_dir = os.path.join(anuga_root, 'utilities') 142 util_install_dir = os.path.join(install_root, 'utilities') 143 env.Install(util_install_dir, env.SharedLibrary(os.path.join(util_dir, 'polygon_ext'), 144 map(lambda s: os.path.join(util_dir, s), ['polygon_ext.c']))) 145 env.Install(util_install_dir, env.SharedLibrary(os.path.join(util_dir, 'util_ext'), 146 map(lambda s: os.path.join(util_dir, s), ['util_ext.c']))) 147 env.Install(util_install_dir, env.SharedLibrary(os.path.join(util_dir, 'sparse_ext'), 148 map(lambda s: os.path.join(util_dir, s), ['sparse_ext.c']))) 149 150 # Abstract_2d_finite_volumes 151 a2fv_env = env.Copy() 152 a2fv_env.Append(CPPPATH=[os.path.join('#', anuga_root, 'utilities')]) 153 154 a2fv_dir = os.path.join(anuga_root, 'abstract_2d_finite_volumes') 155 a2fv_install_dir = os.path.join(install_root, 'abstract_2d_finite_volumes') 156 env.Install(a2fv_install_dir, a2fv_env.SharedLibrary(os.path.join(a2fv_dir, 'quantity_ext'), 157 map(lambda s: os.path.join(a2fv_dir, s), ['quantity_ext.c']))) 158 env.Install(a2fv_install_dir, a2fv_env.SharedLibrary(os.path.join(a2fv_dir, 'shallow_water_kinetic'), 159 map(lambda s: os.path.join(a2fv_dir, s), ['shallow_water_kinetic_ext.c']))) 160 161 # Shallow_water 162 sw_env = env.Copy() 163 sw_env.Append(CPPPATH=[os.path.join('#', anuga_root, 'utilities')]) 164 165 sw_dir = os.path.join(anuga_root, 'shallow_water') 166 sw_install_dir = os.path.join(install_root, 'shallow_water') 167 env.Install(sw_install_dir, sw_env.SharedLibrary(os.path.join(sw_dir, 'shallow_water_ext'), 168 map(lambda s: os.path.join(sw_dir, s), ['shallow_water_ext.c'])))
Note: See TracChangeset
for help on using the changeset viewer.