/[escript]/trunk/cusplibrary/examples/SConstruct
ViewVC logotype

Contents of /trunk/cusplibrary/examples/SConstruct

Parent Directory Parent Directory | Revision Log Revision Log


Revision 5148 - (show annotations)
Mon Sep 15 01:25:23 2014 UTC (6 years, 1 month ago) by caltinay
File size: 598 byte(s)
Merging ripley diagonal storage + CUDA support into trunk.
Options file version has been incremented due to new options
'cuda' and 'nvccflags'.

1 import os
2 import inspect
3 import glob
4
5 # try to import an environment first
6 try:
7 Import('env')
8 except:
9 exec open("../build/build-env.py")
10 env = Environment()
11
12 # find all .cus & .cpps in the current directory
13 sources = []
14 directories = [name for name in os.listdir('.') if os.path.isdir(name)]
15 extensions = ['*.cu', '*.cpp']
16 for dir in directories:
17 if dir == 'OpenGL' : continue
18 for ext in extensions:
19 regexp = os.path.join(dir, ext)
20 #sources.extend(env.Glob(regexp, strings = True))
21 sources.extend(glob.glob(regexp))
22
23 # compile examples
24 for src in sources:
25 env.Program(src)
26

  ViewVC Help
Powered by ViewVC 1.1.26