1 |
|
2 |
############################################################################## |
3 |
# |
4 |
# Copyright (c) 2003-2020 by The University of Queensland |
5 |
# http://www.uq.edu.au |
6 |
# |
7 |
# Primary Business: Queensland, Australia |
8 |
# Licensed under the Apache License, version 2.0 |
9 |
# http://www.apache.org/licenses/LICENSE-2.0 |
10 |
# |
11 |
# Development until 2012 by Earth Systems Science Computational Center (ESSCC) |
12 |
# Development 2012-2013 by School of Earth Sciences |
13 |
# Development from 2014 by Centre for Geoscience Computing (GeoComp) |
14 |
# Development from 2019 by School of Earth and Environmental Sciences |
15 |
# |
16 |
############################################################################## |
17 |
|
18 |
Import('*') |
19 |
|
20 |
sources = ['ScriptMPI.cpp'] |
21 |
sources_redirect = ['ScriptMPIredirect.cpp'] |
22 |
|
23 |
local_env = env.Clone() |
24 |
local_env.PrependUnique(LIBS = ['escript']) |
25 |
|
26 |
progs = local_env.Program('pythonMPI', sources) |
27 |
progs += local_env.Program('pythonMPIredirect', sources_redirect) |
28 |
|
29 |
inst = local_env.Install(local_env['libinstall'], progs) |
30 |
|
31 |
env.Alias('build_pythonMPI', progs) |
32 |
env.Alias('install_pythonMPI', inst) |
33 |
|