Skip to content

Commit

Permalink
Merge pull request #23 from rlcee/210430
Browse files Browse the repository at this point in the history
fix small name problem, handle repos with no subdirs
  • Loading branch information
rlcee authored Apr 30, 2021
2 parents 21babcd + 139edc2 commit 1331894
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions python/mu2e_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ def __init__(self,env):
self.libdir = self.buildBase+'/'+self.repo+'/lib'
self.bindir = self.buildBase+'/'+self.repo+'/bin'
# change string Offline/dir/subdir/src to dir_subdir
self.libstub = '_'.join(tokens[1:])
if self.repo == "Offline" :
self.libstub = "mu2e_"+'_'.join(tokens[1:])
else:
self.libstub = self.repo.lower()+'_'.join(tokens[1:])

# A few places we use ClassDef in order to enable a class
# to be fully capable at the root prompt
Expand All @@ -58,26 +61,26 @@ def classDef(self, tf=True):
self.classdef = tf

def lib_link_name(self):
return "mu2e_"+self.libstub
return self.libstub
def lib_file(self):
return self.libdir+"/libmu2e_"+self.libstub+".so"
return self.libdir+"/lib"+self.libstub+".so"
def plugin_lib_file(self,sourcename):
stub = sourcename[:sourcename.find('.cc')] # file name minus the .cc
return self.libdir+'/libmu2e_'+self.libstub + '_' + stub +".so"
return self.libdir+"/lib"+self.libstub + '_' + stub +".so"
def dict_file(self):
return self.dictdir+"/mu2e_"+self.libstub + '_dict.cpp'
return self.dictdir+"/"+self.libstub + '_dict.cpp'
def dict_lib_file(self):
if self.classdef : # dictionary is in the main lib
return self.libdir+"/libmu2e_"+self.libstub + '.so'
return self.libdir+"/lib"+self.libstub + '.so'
else : # dictionary is in its own lib
return self.libdir+"/libmu2e_"+self.libstub + '_dict.so'
return self.libdir+"/lib"+self.libstub + '_dict.so'
def rootmap_file(self):
return self.libdir+"/libmu2e_"+self.libstub + "_dict.rootmap"
return self.libdir+"/lib"+self.libstub + "_dict.rootmap"
def pcm_file(self):
if self.classdef : # dictionary is in the main lib
return self.libdir+"/libmu2e_"+self.libstub + "_rdict.pcm"
return self.libdir+"/lib"+self.libstub + "_rdict.pcm"
else : # dictionary is in its own lib
return self.libdir+"/libmu2e_"+self.libstub + "_dict_rdict.pcm"
return self.libdir+"/lib"+self.libstub + "_dict_rdict.pcm"

#
# Build a list of plugins to be built.
Expand Down

0 comments on commit 1331894

Please sign in to comment.