|
Gaudi Framework, version v23r3 |
| Home | Generated: Thu Jun 28 2012 |
Functions | |
| def | getlibs |
| def | prettylibs |
Variables | |
| tuple | package = os.getcwd() |
| tuple | project = os.popen('cmt show macro_value project') |
| tuple | project_home = os.popen('cmt show macro_value %s_home' % project ) |
| string | picklefile = '/tmp/%s/%s_libraries.pkl' |
| tuple | root = os.path.dirname(os.getcwd()) |
| list | ignorelibs = [] |
| list | replacetable |
| list | projects = [] |
| dictionary | gbl_libraries = {} |
| dictionary | loc_libraries = {} |
| tuple | p = l.split() |
| tuple | input = open(picklefile % p, 'rb') |
| tuple | libs = pickle.load(input) |
| list | gaudipackages |
| list | outsidepackages = [] |
| list | ignorepackages |
| list | dependentpackages = [] |
| tuple | lines = os.popen('cmt show uses') |
| list | items = l[4:] |
| tuple | dirs = os.popen('cmt show include_dirs') |
| list | reflex_dictionaries = [] |
| install_python = False | |
| install_scripts = False | |
| list | install_headers = [] |
| list | install_joboptions = [] |
| dictionary | libraries = {} |
| dictionary | executables = {} |
| list | genconfig = [] |
| list | god_headers = [] |
| list | god_dictionaries = [] |
| list | god_customdicts = [] |
| tuple | t = l.split() |
| list | name = t[2] |
| tuple | sel = os.popen('cmt show macro_value %s_reflex_selection_file' % name) |
| list | dir1 = t[3] |
| list | dir2 = t[4] |
| list | sources = [] |
| test = False | |
| string | dest = '' |
| list | option = lines[0] |
| string | srcs = '${%s_srcs}' |
| tuple | output = open(picklefile % project, 'wb') |
genCMake is simple script that is able to generate the CMakeLists.tst file required for a CMT package.
usage:
---for a single package----
cd <mypackage>/cmt
python genCMake
---for a complete project---
cd <project>/XXXXSys/cmt
cmt br "python genCMake > ../CMakeLists.txt"
| def genCMake::getlibs | ( | library ) |
Definition at line 24 of file genCMake.py.
| def genCMake::prettylibs | ( | libraries ) |
Definition at line 63 of file genCMake.py.
00064 : 00065 libs = [] 00066 for lib in libraries: 00067 for p,v in replacetable: 00068 if p[0] == '=' : 00069 if p[1:] == lib : 00070 lib = v 00071 break 00072 else : 00073 if p in lib : 00074 lib = v 00075 break 00076 if lib: libs.append(lib) 00077 return ' '.join(libs) 00078 #---Get the list of dependent proejcts---------------------------------------------------------------
| list genCMake::dependentpackages = [] |
Definition at line 114 of file genCMake.py.
| list genCMake::dest = '' |
Definition at line 229 of file genCMake.py.
| list genCMake::dir1 = t[3] |
Definition at line 185 of file genCMake.py.
| list genCMake::dir2 = t[4] |
Definition at line 186 of file genCMake.py.
| list genCMake::dirs = os.popen('cmt show include_dirs') |
Definition at line 146 of file genCMake.py.
| dictionary genCMake::executables = {} |
Definition at line 159 of file genCMake.py.
00001 ['GaudiPolicy', 'GaudiPython', 'GaudiPoolDb', 'RootHistCnv', 00002 'GaudiKernel', 'GaudiAlg', 'GaudiUtils', 'GaudiObjDesc', 00003 'GaudiSvc']
Definition at line 101 of file genCMake.py.
| dictionary genCMake::gbl_libraries = {} |
Definition at line 80 of file genCMake.py.
| list genCMake::genconfig = [] |
Definition at line 160 of file genCMake.py.
| list genCMake::god_customdicts = [] |
Definition at line 163 of file genCMake.py.
| list genCMake::god_dictionaries = [] |
Definition at line 162 of file genCMake.py.
| list genCMake::god_headers = [] |
Definition at line 161 of file genCMake.py.
| list genCMake::ignorelibs = [] |
Definition at line 23 of file genCMake.py.
00001 ['GaudiPolicy', 'LCG_Interfaces/Reflex', 'LCG_Interfaces/oracle', 00002 'LCG_Interfaces/lfc','LCG_Interfaces/sqlite', 'LCG_Interfaces/mysql', 00003 'LCG_Interfaces/pyqt', 'Det/SQLDDDB', 'FieldMap']
Definition at line 110 of file genCMake.py.
| tuple genCMake::input = open(picklefile % p, 'rb') |
Definition at line 88 of file genCMake.py.
| list genCMake::install_headers = [] |
Definition at line 156 of file genCMake.py.
| list genCMake::install_joboptions = [] |
Definition at line 157 of file genCMake.py.
| genCMake::install_python = False |
Definition at line 154 of file genCMake.py.
| genCMake::install_scripts = False |
Definition at line 155 of file genCMake.py.
| list genCMake::items = l[4:] |
Definition at line 119 of file genCMake.py.
| dictionary genCMake::libraries = {} |
Definition at line 158 of file genCMake.py.
| string genCMake::libs = pickle.load(input) |
Definition at line 89 of file genCMake.py.
| tuple genCMake::lines = os.popen('cmt show uses') |
Definition at line 115 of file genCMake.py.
| dictionary genCMake::loc_libraries = {} |
Definition at line 81 of file genCMake.py.
| list genCMake::name = t[2] |
Definition at line 177 of file genCMake.py.
| list genCMake::option = lines[0] |
Definition at line 232 of file genCMake.py.
| tuple genCMake::output = open(picklefile % project, 'wb') |
Definition at line 321 of file genCMake.py.
| list genCMake::outsidepackages = [] |
Definition at line 108 of file genCMake.py.
| list genCMake::p = l.split() |
Definition at line 83 of file genCMake.py.
| tuple genCMake::package = os.getcwd() |
Definition at line 16 of file genCMake.py.
| string genCMake::picklefile = '/tmp/%s/%s_libraries.pkl' |
Definition at line 19 of file genCMake.py.
| tuple genCMake::project = os.popen('cmt show macro_value project') |
Definition at line 17 of file genCMake.py.
| tuple genCMake::project_home = os.popen('cmt show macro_value %s_home' % project ) |
Definition at line 18 of file genCMake.py.
| list genCMake::projects = [] |
Definition at line 79 of file genCMake.py.
| list genCMake::reflex_dictionaries = [] |
Definition at line 153 of file genCMake.py.
00001 [('boost_system', '${Boost_LIBRARIES}'), 00002 ('boost_filesystem', ''), 00003 ('boost_regex', '${Boost_regex_LIBRARY}'), 00004 ('boost_thread', ''), 00005 ('boost_program_options', ''), 00006 ('boost_date_time', '${Boost_date_time_LIBRARY}'), 00007 ('=Core', '${ROOT_LIBRARIES}'), 00008 ('=Cint', ''), 00009 ('=Reflex', ''), 00010 ('=dl', ''), 00011 ('=Tree', '${ROOT_Tree_LIBRARY}'), 00012 ('=RIO', ' ${ROOT_RIO_LIBRARY}'), 00013 ('=Matrix','${ROOT_Matrix_LIBRARY}'), 00014 ('=MathCore', '${ROOT_MathCore_LIBRARY}'), 00015 ('=MathMore', '${ROOT_MathMore_LIBRARY}'), 00016 ('=GenVector', '${ROOT_GenVector_LIBRARY}'), 00017 ('=Hist', '${ROOT_Hist_LIBRARY}'), 00018 ('=util', ''), 00019 ('=xerces-c', '${XercesC_LIBRARIES}'), 00020 ('=uuid', '${uuid_LIBRARIES}'), 00021 ('=pthread', ''), 00022 ('=gslcblas', '${GSL_LIBRARIES}'), 00023 ('=gsl', ''), 00024 ('=CLHEP-Cast-1.9.4.4', '${CLHEP_LIBRARIES}'), 00025 ('CLHEP', ''), 00026 ('=python2.5', '${Python_LIBRARIES}'), 00027 ('=fftw3', '${fftw_LIBRARIES}'), 00028 ('=HepPDT', '${HepPDT_LIBRARIES}'), 00029 ('=HepPID', '') 00030 ]
Definition at line 32 of file genCMake.py.
| tuple genCMake::root = os.path.dirname(os.getcwd()) |
Definition at line 20 of file genCMake.py.
| tuple genCMake::sel = os.popen('cmt show macro_value %s_reflex_selection_file' % name) |
Definition at line 178 of file genCMake.py.
| string genCMake::sources = [] |
Definition at line 198 of file genCMake.py.
| list genCMake::srcs = '${%s_srcs}' |
Definition at line 250 of file genCMake.py.
| tuple genCMake::t = l.split() |
Definition at line 167 of file genCMake.py.
| genCMake::test = False |
Definition at line 199 of file genCMake.py.