| 1 | #==================================================================== |
|---|
| 2 | # NeXus - Neutron & X-ray Common Data Format |
|---|
| 3 | # |
|---|
| 4 | # $Id: Makefile.am 961 2007-09-04 12:31:49Z Freddie Akeroyd $ |
|---|
| 5 | # |
|---|
| 6 | # Python functions to assist with scons build |
|---|
| 7 | # |
|---|
| 8 | # Copyright (C) 2008 Freddie Akeroyd |
|---|
| 9 | # |
|---|
| 10 | # This library is free software; you can redistribute it and/or |
|---|
| 11 | # modify it under the terms of the GNU Lesser General Public |
|---|
| 12 | # License as published by the Free Software Foundation; either |
|---|
| 13 | # version 2 of the License, or (at your option) any later version. |
|---|
| 14 | # |
|---|
| 15 | # This library is distributed in the hope that it will be useful, |
|---|
| 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 18 | # Lesser General Public License for more details. |
|---|
| 19 | # |
|---|
| 20 | # You should have received a copy of the GNU Lesser General Public |
|---|
| 21 | # License along with this library; if not, write to the Free |
|---|
| 22 | # Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
|---|
| 23 | # MA 02111-1307 USA |
|---|
| 24 | # |
|---|
| 25 | # For further information, see <http://www.nexusformat.org/> |
|---|
| 26 | # |
|---|
| 27 | #==================================================================== |
|---|
| 28 | |
|---|
| 29 | import os |
|---|
| 30 | import platform |
|---|
| 31 | import sys |
|---|
| 32 | import shutil |
|---|
| 33 | from socket import gethostname |
|---|
| 34 | |
|---|
| 35 | # return a list with the correct shared object suffix |
|---|
| 36 | def getSharedObjects(sources, env) : |
|---|
| 37 | shared_objects = [] |
|---|
| 38 | for f in sources : |
|---|
| 39 | shared_objects.append(os.path.splitext(f)[0]+env['SHOBJSUFFIX']) |
|---|
| 40 | return shared_objects |
|---|