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