source: trunk/anuga_core/source/anuga_parallel/pymetis/SConscript @ 8950

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

Moved pymetis to development

File size: 490 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'])])
10env3 = env2.Copy()
11env2.Append(CPPFLAGS='-fPIC')
12env2.StaticLibrary(('%s/metis' % env2['METIS_DIR']), files)
13
14env3.Append(CPPPATH=['pymetis'])
15env3.Append(LIBPATH=[env2['METIS_DIR']])
16env3.Append(LIBS=['metis'])
17env3.SharedLibrary('metis', glob.glob('pymetis/*.c'))
Note: See TracBrowser for help on using the repository browser.