source: inundation/pymetis/SConscript @ 3418

Last change on this file since 3418 was 3418, checked in by jack, 18 years ago

Fixed the pymetis SConscript under linux. Not sure why the unit test gives
different results though.

File size: 441 bytes
Line 
1import glob
2import sys
3
4Import('env')
5env2 = env.Copy()
6files = glob.glob(('%s/Lib/*.c' % env2['METIS_DIR']))
7if sys.platform == 'win32':
8    files += ['win32/random.c']
9env2.Append(CPPPATH=[('%s/Lib' % env2['METIS_DIR'])])
10env2.SharedLibrary(('%s/metis' % env2['METIS_DIR']), files)
11
12env2.Append(CPPPATH=['pymetis'])
13env2.Append(LIBPATH=[env2['METIS_DIR']])
14env2.Append(LIBS=['metis'])
15env2.SharedLibrary('metis', glob.glob('pymetis/*.c'))
Note: See TracBrowser for help on using the repository browser.