~yade-dev/yade/0.80

« back to all changes in this revision

Viewing changes to core/SConscript

  • Committer: Anton Gladky
  • Date: 2012-05-02 21:50:42 UTC
  • Revision ID: gladky.anton@gmail.com-20120502215042-v1fa9r65usqe7kfk
0.80.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# syntax: python
 
2
Import('*')
 
3
 
 
4
pyMain='$PREFIX/bin/yade$SUFFIX'
 
5
main=env.ScanReplace('main/main.py.in')
 
6
batch=env.ScanReplace('main/yade-batch.in')
 
7
env.AlwaysBuild(main)
 
8
env.AlwaysBuild(batch)
 
9
env.InstallAs(pyMain,main)
 
10
env.InstallAs(pyMain+'-batch',batch)
 
11
env.AddPostAction(pyMain,Chmod(pyMain,0755))
 
12
env.AddPostAction(pyMain+'-batch',Chmod(pyMain+'-batch',0755))
 
13
## for --rebuild
 
14
if 'execCheck' in env and env['execCheck']!=env.subst(pyMain):
 
15
        raise RuntimeError('execCheck option (%s) does not match what is about to be installed (%s)'%(env['execCheck'],env.subst(pyMain)))
 
16
 
 
17
env.Install('$LIBDIR/py/yade',[
 
18
        env.SharedLibrary('boot',['main/pyboot.cpp'],SHLIBPREFIX='',LIBS=env['LIBS']+['yade-support','core'])
 
19
])
 
20
 
 
21
env.Install('$LIBDIR/lib',[
 
22
        env.SharedLibrary('core',
 
23
                env.Combine('core.cpp',[
 
24
                        'Body.cpp',
 
25
                        'BodyContainer.cpp',
 
26
                        'Bound.cpp',
 
27
                        'Cell.cpp',
 
28
                        'PartialEngine.cpp',
 
29
                        'EnergyTracker.cpp',
 
30
                        'Engine.cpp',
 
31
                        'FileGenerator.cpp',
 
32
                        'FrontEnd.cpp',
 
33
                        'Interaction.cpp',
 
34
                        'InteractionContainer.cpp',
 
35
                        'Material.cpp',
 
36
                        'Scene.cpp',
 
37
                        'Dispatcher.cpp',
 
38
                        'Omega.cpp',
 
39
                        'Shape.cpp',
 
40
                        'SimulationFlow.cpp',
 
41
                        'State.cpp',
 
42
                        'ThreadRunner.cpp',
 
43
                        'ThreadWorker.cpp',
 
44
                        'TimeStepper.cpp',
 
45
                        'corePlugins.cpp'                       
 
46
                        ]
 
47
                        ),
 
48
                LIBS=env['LIBS']+[
 
49
                        'yade-support',
 
50
                        'rt', # realtime lib, for clock_gettime 
 
51
                        ]
 
52
                        ,
 
53
        )
 
54
])