1 Decider('MD5-timestamp') |
1 Decider('MD5-timestamp') |
|
2 import os |
|
3 env = Environment(ENV = {'PATH' : os.environ['PATH']}) |
2 |
4 |
3 # CXX=icpc |
5 ### GNU C++ Compiler |
4 # CCFLAGS=-g -fno-strict-aliasing -I$(ROOT)/include |
6 #env.Replace(CXX="g++") |
5 # -Wall | -w1 |
7 #env.Append(CCFLAGS="-O3 -Wall -pipe -ffast-math -msse3 ") |
|
8 |
|
9 ### Intel C++ Compiler |
|
10 env.Replace(CXX="icpc") |
|
11 env.Append(CCFLAGS="-O3 -w1 -mtune=core2 -xT ") |
|
12 |
|
13 ### MinGW32 |
|
14 # LDFLAGS+=-lpthreadGC2 |
|
15 # PY_CCFLAGS=-I"C:\Program Files\Python25\include" |
|
16 # PY_LDFLAGS=-L"C:\Program Files\Python25\libs" -lpython25 |
|
17 |
|
18 # pthread |
|
19 env.Append(CCFLAGS="-pthread ") |
|
20 |
|
21 # CCFLAGS=-g -fno-strict-aliasing |
6 |
22 |
7 # float: -fsingle-precision-constant |
23 # float: -fsingle-precision-constant |
8 # double: -DPYRIT_DOUBLE |
24 # double: -DPYRIT_DOUBLE |
9 (lib, pymodule) = SConscript('src/SConscript', build_dir='build/lib', duplicate=0) |
25 (lib, pymodule) = SConscript('src/SConscript', build_dir='build/lib', duplicate=0, exports='env') |
10 |
26 |
11 SConscript('ccdemos/SConscript', build_dir='build/ccdemos', duplicate=0, exports='lib') |
27 SConscript('ccdemos/SConscript', build_dir='build/ccdemos', duplicate=0, exports='env lib') |
12 SConscript('demos/SConscript', exports='pymodule') |
28 SConscript('demos/SConscript', exports='pymodule') |
|
29 env.Alias('demos', ['cc-demos', 'python-demos']) |
|
30 |
13 SConscript('models/SConscript') |
31 SConscript('models/SConscript') |
|
32 |
|
33 env.Alias('docs', Command('docs/html', [], 'doxygen')) |
|
34 env.Clean('docs', ['docs/html', 'docs/latex']) |
|
35 |
|
36 env.Alias('all', ['no-docs', 'docs']) |
|
37 env.Alias('no-docs', ['libs', 'demos', 'models']) |
|
38 env.Alias('no-download', ['libs', 'demos', 'local-models']) |
|
39 |
|
40 env.Alias('pyrit', 'no-download') |
|
41 Default('pyrit') |