Hall C ROOT/C++ Analyzer (hcana)
SConscript.py
Go to the documentation of this file.
1 ###### Hall C Software Source SConscript Build File #####
2 ###### Author: Edward Brash (brash@jlab.org) June 2013
3 
4 import os
5 import re
6 import SCons.Util
7 Import('pbaseenv')
8 
9 list = Glob('*.cxx', exclude=['main.C'])
10 
11 pbaseenv.Object('main.C')
12 
13 sotarget = 'HallC'
14 
15 #srclib = pbaseenv.SharedLibrary(target = sotarget, source = list+['HallCDict.so'],SHLIBVERSION=['$VERSION'],LIBS=[''])
16 srclib = pbaseenv.SharedLibrary(target = sotarget, source = list+['HallCDict.so'],SHLIBPREFIX='../lib',LIBS=[''])
17 print ('Source shared library = %s\n' % srclib)
18 
19 linkbase =pbaseenv.subst('$SHLIBPREFIX')+sotarget
20 
21 cleantarget = linkbase+'.so.'+pbaseenv.subst('$VERSION')
22 localmajorcleantarget = '../'+linkbase+'.so'
23 
24 print('cleantarget = %s\n' % cleantarget)
25 print('localmajorcleantarget = %s\n' % localmajorcleantarget)
26 try:
27  os.symlink(cleantarget,localmajorcleantarget)
28 except:
29  print (" Continuing ... ")
30 
31 Clean(srclib,cleantarget)
32 Clean(srclib,localmajorcleantarget)
33 
34 #baseenv.Install('../',srclib)
35 #baseenv.Alias('install',['../'])