Gaudi Framework, version v25r0

Home   Generated: Mon Feb 17 2014
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
hscript.py
Go to the documentation of this file.
1 ## -*- python -*-
2 
3 ## waf imports
4 import waflib.Logs as msg
5 
6 PACKAGE = {
7  "name": "GaudiProfiling",
8  "authors": [],
9 
10  "version": "v2r0",
11 }
12 
13 ### ---------------------------------------------------------------------------
14 def pkg_deps(ctx):
15 
16  ## public dependencies
17  ctx.use_pkg("GaudiKernel", version="v*", public=True)
18  ctx.use_pkg("GaudiAlg", version="v*", public=True)
19  ctx.use_pkg("LCG_Interfaces/ROOT", version="v*", public=True)
20  ctx.use_pkg("LCG_Interfaces/Boost", version="v*", public=True)
21 
22  ## private dependencies
23  ctx.use_pkg("LCG_Interfaces/libunwind", version="v*", private=True)
24  ctx.use_pkg("LCG_Interfaces/tcmalloc", version="v*", private=True)
25  ctx.use_pkg("LCG_Interfaces/Python", version="v*", private=True)
26 
27  ## runtime dependencies
28  ctx.use_pkg("LCG_Interfaces/tcmalloc", version="v*", runtime=True)
29  ctx.use_pkg("LCG_Interfaces/Python", version="v*", runtime=True)
30  return # pkg_deps
31 
32 
33 ### ---------------------------------------------------------------------------
34 def options(ctx):
35 
36  return # options
37 
38 
39 ### ---------------------------------------------------------------------------
40 def configure(ctx):
41 
42 
43  ## FIXME:
44  if 1:
45  return
46 
47  #### macro &{{VTune_config_version [{default [2011]}]}}
48  ctx.hwaf_declare_macro("VTune_config_version", (
49  {"default": "2011"},
50  ))
51  #### macro &{{VTune_native_version [{default [${VTune_config_version}]}]}}
52  ctx.hwaf_declare_macro("VTune_native_version", (
53  {"default": "${VTune_config_version}"},
54  ))
55  #### macro &{{Intel_base [{default [/afs/cern.ch/sw/IntelSoftware/linux/x86_64]} {target-i686 [/afs/cern.ch/sw/IntelSoftware/linux/ia32]}]}}
56  ctx.hwaf_declare_macro("Intel_base", (
57  {"default": "/afs/cern.ch/sw/IntelSoftware/linux/x86_64"},
58  {"target-i686": "/afs/cern.ch/sw/IntelSoftware/linux/ia32"},
59  ))
60  #### macro &{{VTune_home [{default [${Intel_base}/xe${VTune_native_version}/vtune_amplifier_xe_${VTune_config_version}]}]}}
61  ctx.hwaf_declare_macro("VTune_home", (
62  {"default": "${Intel_base}/xe${VTune_native_version}/vtune_amplifier_xe_${VTune_config_version}"},
63  ))
64  ##### **** statement *hlib.SetStmt (&{{VTUNE_HOME [{default [${VTune_home}]}]}})
65  #### macro &{{VTune_linkopts [{default [${VTune_home}/${unixdirname}/libittnotify.a]}]}}
66  ctx.hwaf_declare_macro("VTune_linkopts", (
67  {"default": "${VTune_home}/${unixdirname}/libittnotify.a"},
68  ))
69  #### macro &{{VTune_cppflags [{default [-I${VTune_home}/include]}]}}
70  ctx.hwaf_declare_macro("VTune_cppflags", (
71  {"default": "-I${VTune_home}/include"},
72  ))
73  #### macro &{{have_vtune [{default [not-have-vtune]} {target-x86_64&target-linux [`${GaudiProfiling_root}/cmt/check_vtune`]}]}}
74  ctx.hwaf_declare_macro("have_vtune", (
75  {"default": "not-have-vtune"},
76  {("target-x86_64", "target-linux"): "${GaudiProfiling_root}/cmt/check_vtune"},
77  ))
78  #### apply_tag &{{$(have_vtune) []}}
79  ctx.hwaf_apply_tag("${have_vtune}")
80  #### macro_remove &{{constituents [{default [IntelProfilerConfDbMerge]} {have-vtune []}]}}
81  ctx.hwaf_macro_remove("constituents", (
82  {"default": "IntelProfilerConfDbMerge"},
83  {"have-vtune": ""},
84  ))
85  #### macro_remove &{{constituents [{default [IntelProfilerConf]} {have-vtune []}]}}
86  ctx.hwaf_macro_remove("constituents", (
87  {"default": "IntelProfilerConf"},
88  {"have-vtune": ""},
89  ))
90  #### macro_remove &{{constituents [{default [IntelProfilerMergeMap]} {have-vtune []}]}}
91  ctx.hwaf_macro_remove("constituents", (
92  {"default": "IntelProfilerMergeMap"},
93  {"have-vtune": ""},
94  ))
95  #### macro_remove &{{constituents [{default [IntelProfilerRootMap]} {have-vtune []}]}}
96  ctx.hwaf_macro_remove("constituents", (
97  {"default": "IntelProfilerRootMap"},
98  {"have-vtune": ""},
99  ))
100  #### macro_remove &{{constituents [{default [IntelProfiler]} {have-vtune []}]}}
101  ctx.hwaf_macro_remove("constituents", (
102  {"default": "IntelProfiler"},
103  {"have-vtune": ""},
104  ))
105  #### macro_append &{{use_includes [{default []} {have-vtune [${VTune_cppflags}]}]}}
106  ctx.hwaf_macro_append("use_includes", (
107  {"default": ""},
108  {"have-vtune": "${VTune_cppflags}"},
109  ))
110  #### macro &{{libunwind_linkopts [{default []}]}}
111  ctx.hwaf_declare_macro("libunwind_linkopts", (
112  {"default": ""},
113  ))
114  #### macro_remove &{{componentshr_linkopts [{default [-Wl,--no-undefined]}]}}
115  ctx.hwaf_macro_remove("componentshr_linkopts", (
116  {"default": ["-Wl,--no-undefined"]},
117  ))
118  #### macro_remove &{{PyCPUFamily_use_linkopts [{default [${GaudiProfiling_linkopts}]}]}}
119  ctx.hwaf_macro_remove("PyCPUFamily_use_linkopts", (
120  {"default": "${GaudiProfiling_linkopts}"},
121  ))
122 
123  return # configure
124 
125 
126 ### ---------------------------------------------------------------------------
127 def build(ctx):
128 
129 
130  ##### **** statement *hlib.ApplyPatternStmt (&{pyd_boost_module [module=PyCPUFamily files=python/CPUFamily.cpp]})
131 
132  ctx(
133  features = "gaudi_application hwaf_utest",
134  name = "GaudiGenProfilingHtml",
135  target = "GaudiGenProfilingHtml",
136  source = ["app/pfm_gen_analysis.cpp"],
137  use = ["GaudiKernel", "z"],
138  )
139 
140  ctx(
141  features = "gaudi_library",
142  name = "GaudiGoogleProfiling",
143  target = "GaudiGoogleProfiling",
144  source = ["component/google/*.cpp"],
145  use = ["GaudiKernel", "GaudiAlgLib", "z", "tcmalloc"],
146  )
147 
148  ctx(
149  features = "gaudi_module",
150  name = "GaudiProfiling",
151  target = "GaudiProfiling",
152  source = ["component/*.cpp"],
153  use = ["GaudiKernel", "z", "libunwind"],
154  )
155 
156  ctx.gaudi_install_python_modules()
157  ctx.gaudi_install_scripts()
158 
159  ## FIXME
160  if 0:
161  ctx(
162  features = "gaudi_module",
163  name = "IntelProfiler",
164  target = "IntelProfiler",
165  source = ["component/intel/*.cpp"],
166  use = ["GaudiKernel"],
167  )
168  return # build
169 
170 ## EOF ##

Generated at Mon Feb 17 2014 14:37:37 for Gaudi Framework, version v25r0 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004