6 import waflib.Logs
as msg
19 ctx.use_pkg(
"LCG_Settings", version=
"*", public=
True)
20 ctx.use_pkg(
"LCG_Interfaces/Python", version=
"*", public=
True)
21 ctx.use_pkg(
"LCG_Interfaces/tcmalloc", version=
"*", public=
True)
25 ctx.use_pkg(
"LCG_Interfaces/Python", version=
"*", runtime=
True)
26 ctx.use_pkg(
"LCG_Interfaces/tcmalloc", version=
"*", runtime=
True)
40 ctx.hwaf_export_module(
"waftools/gaudi-policy.py")
42 macro = ctx.hwaf_declare_macro
45 ctx.hwaf_macro_append(
'CXXFLAGS',
'-Wno-deprecated')
46 macro(
'GENCONF_CONFIGURABLE_MODULE',
'GaudiKernel.Proxy')
48 ctx.hwaf_declare_runtime_env(
'JOBOPTSEARCHPATH')
49 ctx.hwaf_declare_runtime_env(
'DATAPATH')
50 ctx.hwaf_declare_runtime_env(
'XMLPATH')
53 ctx.hwaf_macro_append(
"DEFINES", (
54 {
"target-linux": [
"linux",
"f2cFortran",
"_GNU_SOURCE",
"unix"]},
55 {
"target-mac106": [
"f2cFortran",
"_GNU_SOURCE",
"unix"]},
59 ctx.hwaf_macro_append(
"DEFINES", (
60 {
"default":
"GAUDI_V20_COMPAT"},
62 {
"GAUDI_V22":
"GAUDI_V22_API"},
64 ctx.hwaf_macro_append(
"DEFINES", (
66 {
"ATLAS":
"ATLAS_GAUDI_V21"},
75 "x86_64-slc5-gcc43-test",
76 content=[
"x86_64-slc5-gcc43-opt",
"target-test"]
80 "x86_64-slc5-gcc46-test",
81 content=[
"x86_64-slc5-gcc46-opt",
"target-test"]
85 "x86_64-slc6-gcc46-test",
86 content=[
"x86_64-slc6-gcc46-opt",
"target-test"]
89 macro(
"LCG_platform", (
90 {
"default":
"${LCG_platform}"},
91 {
"target-winxp":
"${LCG_platform}"},
92 {(
"LOCAL",
"target-dbg"):
"${LCG_system}"},
93 {(
"LOCAL",
"target-cov"):
"${LCG_system}"},
100 macro(
"copyInclude", (
101 {
"default": [
"cp",
"-Rup"]},
102 {
"host-winxp": [
"xcopy",
"/S/Q/Y/I/D"]},
103 {
"host-darwin": [
"cp",
"-Rp"]},
107 {
"default":
"${ar}"},
108 {
"target-darwin": [
"libtool",
"-o"]},
112 {
"default":
"ranlib"},
113 {
"target-darwin":
"touch"},
138 macro(
"python_bin_module_dir", (
139 {
"default":
"${tag}/python/lib-dynload"},
140 {
"target-winxp":
"${tag}\\python\\lib-dynload"},
141 {(
"use-shared-dir",
"target-winxp"):
"${tag}\\python"},
142 {
"use-shared-dir":
"${tag}/python"},
147 ctx.hwaf_macro_remove(
"cmt_actions_constituents", (
148 {
"default":
"CompilePython"},
151 ctx.hwaf_macro_remove(
"cmt_actions_constituentsclean", (
152 {
"default":
"CompilePythonclean"},
157 macro(
"install_command", (
158 {
"default": [
"python",
"${GaudiPolicy_root}/scripts/install.py",
"-xCVS",
"-x*~",
"-x*.stamp",
"-x*.bak",
"-x.*",
"-x*.pyc",
"-x*.pyo",
"--log=./install.${tag}.history"]},
161 macro(
"uninstall_command", (
162 {
"default": [
"python",
"${GaudiPolicy_root}/scripts/install.py",
"-u",
"--log=./install.${tag}.history"]},
165 macro(
"remove_command", (
166 {
"default":
"${cmt_uninstallarea_command}"},
169 macro(
"library_install_command", (
170 {
"default": [
"python",
"${GaudiPolicy_root}/scripts/install.py",
"-xCVS",
"-x*~",
"-x*.stamp",
"-x*.bak",
"-x.*",
"-x*.pyc",
"-x*.pyo",
"-s",
"--log=./install.${tag}.history"]},
171 {
"host-winxp":
"copy"},
174 macro(
"cmt_installarea_command", (
175 {
"default": [
"python",
"${GaudiPolicy_root}/scripts/install.py",
"-xCVS",
"-x*~",
"-x*.stamp",
"-x*.bak",
"-x.*",
"-x*.pyc",
"-x*.pyo",
"-s",
"--log=./install.${tag}.history"]},
176 {
"host-winxp": [
"xcopy",
"/S",
"/E",
"/Y"]},
209 ctx.hwaf_declare_tag(
211 content=[
"host-unix"]
214 ctx.hwaf_declare_tag(
216 content=[
"host-slc5"]
219 ctx.hwaf_declare_tag(
221 content=[
"host-slc5"]
224 ctx.hwaf_declare_tag(
226 content=[
"host-slc5"]
229 ctx.hwaf_declare_tag(
231 content=[
"host-slc5"]
234 ctx.hwaf_declare_tag(
236 content=[
"host-slc5"]
239 ctx.hwaf_declare_tag(
241 content=[
"host-slc5"]
244 ctx.hwaf_declare_tag(
246 content=[
"host-slc5"]
249 ctx.hwaf_declare_tag(
251 content=[
"use-shared-dir"]
273 macro(
"cpp_fragment", (
275 {
"target-winxp":
""},
276 {(
"CMTv1",
"CMTr25"):
""},
280 macro(
"cpp_library_fragment", (
281 {
"default":
"cpp_library"},
282 {
"target-winxp":
""},
283 {(
"CMTv1",
"CMTr25"):
""},
287 ctx.hwaf_declare_tag(
289 content=[
"c_native_dependencies",
"cpp_native_dependencies"]
292 macro(
"cmt_compiler_version", (
293 {
"default":
"${cmt_compiler_version}"},
294 {
"target-gcc43":
"gcc43"},
298 {
"default": [
"${CXX}",
"-c",
"${CXXdebugflags}",
"${CXXflags}",
"${pp_CXXflags}",
"${includes}"]},
299 {
"VisualC": [
"cl.exe",
"${CXXdebugflags}",
"${CXXflags}",
"${pp_CXXflags}"]},
302 macro(
"dep_fragment", (
304 {
"CMTp20070208":
"dependencies"},
308 macro(
"app_fragment", (
310 {(
"target-winxp",
"target-vc9"):
"application"},
315 {
"default":
"Release"},
316 {
"target-dbg":
"Debug"},
324 macro(
"vsOptimize", (
336 macro(
"package_GUID", (
337 {
"default":
"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}"},
341 {
"default":
"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC955}"},
344 macro(
"make_shlib", (
346 {
"HP-UX": [
"${CMTROOT}/mgr/cmt_make_shlib_common.sh",
"extract"]},
347 {
"OSF1": [
"${CMTROOT}/mgr/cmt_make_shlib_common.sh",
"noextract"]},
348 {
"host-linux": [
"${CMTROOT}/mgr/cmt_make_shlib_common.sh",
"extract"]},
349 {
"CYGWIN": [
"${CMTROOT}/mgr/cmt_make_shlib_common.sh",
"extract"]},
350 {
"SunOS": [
"${CMTROOT}/mgr/cmt_make_shlib_common.sh",
"extract"]},
351 {
"host-darwin": [
"${CMTROOT}/mgr/cmt_make_shlib_common.sh",
"extract"]},
352 {
"host-visualc":
"${GAUDIPOLICYROOT}\\cmt\\cmt_make_shlib.bat"},
355 macro(
"merge_rootmap_cmd", (
356 {
"default": [
"python",
"${GaudiPolicy_root}/scripts/merge_files.py"]},
357 {
"target-winxp":
"${GaudiPolicy_root}/scripts/merge_files.py"},
361 macro(
"libdirname", (
364 {
"for":
"fragments"},
369 macro(
"bindirname", (
372 {
"for":
"fragments"},
377 macro(
"lib_fragment", (
379 {
"CMTp20070208": [
"library",
"-header=library_header",
"-dependencies"]},
380 {(
"CMTp20090520",
"target-winxp"): [
"library",
"-header=library_header",
"-dependencies"]},
384 macro(
"lib_no_static_fragment", (
386 {(
"CMTp20070208",
"target-winxp"):
"library_no_static"},
387 {(
"CMTp20090520",
"target-winxp"):
"library_no_static"},
388 {(
"CMTr20",
"target-unix"):
""},
389 {
"target-unix":
"library_no_static"},
393 ctx.hwaf_macro_prepend(
"CXX_NAME", (
395 {(
"lcg-compiler",
"target-gcc",
"CERNDISTCC"):
""},
396 {(
"lcg-compiler",
"target-gccmax"):
""},
397 {(
"lcg-compiler",
"target-g11max"):
""},
398 {(
"lcg-compiler",
"target-gcc"):
"lcg-"},
399 {(
"lcg-compiler",
"target-clang"):
"lcg-"},
402 ctx.hwaf_macro_append(
"CXX_NAME", (
404 {(
"lcg-compiler",
"target-gcc",
"CERNDISTCC"):
""},
405 {(
"lcg-compiler",
"target-gccmax"):
""},
406 {(
"lcg-compiler",
"target-g11max"):
""},
407 {(
"lcg-compiler",
"target-gcc"):
"-${gcc_config_version}"},
408 {(
"lcg-compiler",
"target-clang"):
"-${clang_config_version}"},
412 {
"default":
"${CXX_NAME}"},
413 {
"target-icc":
"icpc"},
416 ctx.hwaf_macro_prepend(
"CC_NAME", (
418 {(
"lcg-compiler",
"target-gcc",
"CERNDISTCC"):
""},
419 {(
"lcg-compiler",
"target-gccmax"):
""},
420 {(
"lcg-compiler",
"target-g11max"):
""},
421 {(
"lcg-compiler",
"target-gcc"):
"lcg-"},
422 {(
"lcg-compiler",
"target-clang"):
"lcg-"},
425 ctx.hwaf_macro_append(
"CC_NAME", (
427 {(
"lcg-compiler",
"target-gcc",
"CERNDISTCC"):
""},
428 {(
"lcg-compiler",
"target-gccmax"):
""},
429 {(
"lcg-compiler",
"target-g11max"):
""},
430 {(
"lcg-compiler",
"target-gcc"):
"-${gcc_config_version}"},
431 {(
"lcg-compiler",
"target-clang"):
"-${clang_config_version}"},
434 ctx.hwaf_macro_prepend(
"FC_NAME", (
436 {(
"lcg-compiler",
"target-gcc",
"CERNDISTCC"):
""},
437 {(
"lcg-compiler",
"target-gccmax"):
""},
438 {(
"lcg-compiler",
"target-g11max"):
""},
439 {(
"lcg-compiler",
"target-gcc"):
"lcg-"},
440 {(
"lcg-compiler",
"target-clang"):
"lcg-"},
443 ctx.hwaf_macro_append(
"FC_NAME", (
445 {(
"lcg-compiler",
"target-gcc",
"CERNDISTCC"):
""},
446 {(
"lcg-compiler",
"target-gccmax"):
""},
447 {(
"lcg-compiler",
"target-g11max"):
""},
448 {(
"lcg-compiler",
"target-gcc"):
"-${gcc_config_version}"},
449 {(
"lcg-compiler",
"target-clang"):
"-${gcc_config_version}"},
452 macro(
"CXXdebugflags", (
454 {
"target-dbg": [
"${CXXdebugflags_s}",
"target-opt",
"${CXXoptimized_s}"]},
457 macro(
"CXXdebugflags_s", (
459 {
"target-gcc48": [
"-Og",
"-g"]},
460 {
"target-winxp": [
"/Od",
"/Z7"]},
463 macro(
"CXXoptimized_s", (
464 {
"default": [
"-O2",
"-DNDEBUG"]},
465 {(
"use-O3",
"target-gcc"): [
"-O3",
"-DNDEBUG"]},
466 {
"target-winxp":
""},
469 macro(
"CXXprofiled_s", (
471 {
"target-winxp":
""},
474 ctx.hwaf_macro_append(
"CXXdebugflags", (
476 {
"target-pro":
"${CXXprofiled_s}"},
479 macro(
"cdebugflags", (
481 {
"target-dbg":
"${cdebugflags_s}"},
482 {
"target-opt":
"${coptimized_s}"},
485 macro(
"cdebugflags_s", (
487 {
"target-gcc48": [
"-Og",
"-g"]},
488 {
"target-winxp": [
"/Od",
"/Z7"]},
491 macro(
"coptimized_s", (
492 {
"default": [
"-O2",
"-DNDEBUG"]},
493 {(
"use-O3",
"target-gcc"): [
"-O3",
"-DNDEBUG"]},
494 {
"target-winxp":
""},
497 macro(
"fdebugflags", (
499 {
"target-dbg":
"${fdebugflags_s}"},
502 macro(
"fdebugflags_s", (
503 {
"default": [
"-g",
"target-gcc48",
"-Og"]},
504 {
"-g":
"target-winxp"},
507 macro(
"foptimized_s", (
508 {
"default": [
"-O2",
"-DNDEBUG"]},
509 {(
"use-O3",
"target-gcc"): [
"-O3",
"-DNDEBUG"]},
510 {
"target-winxp":
""},
513 ctx.hwaf_macro_append(
"fdebugflags", (
515 {
"target-opt":
"${foptimized_s}"},
518 macro(
"fprofiled_s", (
520 {
"target-winxp":
""},
523 ctx.hwaf_macro_append(
"fdebugflags", (
525 {
"target-pro":
"${fprofiled_s}"},
528 macro(
"linkdebugflags", (
530 {
"target-dbg":
"${linkdebugflags_s}"},
533 macro(
"linkdebugflags_s", (
535 {
"target-winxp": [
"/debug",
"/verbose:lib"]},
538 ctx.hwaf_macro_append(
"LCG_Platforms_linkopts", (
540 {
"target-cov":
"--coverage"},
543 ctx.hwaf_macro_append(
"LCG_Platforms_cppflags", (
545 {
"target-cov":
"--coverage"},
548 ctx.hwaf_macro_append(
"LCG_Platforms_cflags", (
550 {
"target-cov":
"--coverage"},
553 ctx.hwaf_macro_append(
"LCG_Platforms_fflags", (
555 {
"target-cov":
"--coverage"},
559 {
"default": [
"-fmessage-length=0",
"-Df2cFortran",
"-fPIC",
"-D_GNU_SOURCE",
"-Dlinux",
"-Dunix",
"-pipe",
"-ansi",
"-Wall",
"-Wextra",
"-Werror=return-type",
"-pthread"]},
560 {
"target-mac105": [
"-Df2cFortran",
"-fPIC",
"-D_GNU_SOURCE",
"-Dunix",
"-pipe",
"-ansi",
"-Wall",
"-Wextra",
"-Werror=return-type",
"-Wno-long-double"]},
561 {
"target-mac106": [
"-Df2cFortran",
"-fPIC",
"-D_GNU_SOURCE",
"-Dunix",
"-pipe",
"-ansi",
"-Wall",
"-Wextra",
"-Werror=return-type"]},
562 {
"target-vc9": [
"${includes}",
"/D",
"WIN32",
"/D",
"_MBCS",
"/D",
"_WINDOWS",
"/FD",
"/c",
"/nologo",
"/W3",
"/EHsc",
"/MD",
"/GR",
"/Zm500"]},
563 {
"target-vc7": [
"${includes}",
"/D",
"WIN32",
"/D",
"_MBCS",
"/D",
"_WINDOWS",
"/FD",
"/c",
"/nologo",
"/W3",
"/GX",
"/MD",
"/GR",
"/Zm500"]},
566 ctx.hwaf_macro_append(
"CXXflags", (
568 {
"target-gcc43":
""},
569 {(
"GAUDI_PEDANTIC",
"target-gcc"): [
"-pedantic",
"-Wno-long-long"]},
572 ctx.hwaf_macro_remove(
"CXXflags", (
574 {
"target-icc":
"-pedantic"},
577 ctx.hwaf_macro_remove(
"CXXflags", (
579 {
"target-icc":
"-Wextra"},
582 ctx.hwaf_macro_remove(
"CXXflags", (
584 {
"target-icc":
"-Wno-long-long"},
587 ctx.hwaf_macro_remove(
"CXXflags", (
589 {
"target-icc":
"-Werror=return-type"},
592 ctx.hwaf_macro_append(
"CXXflags", (
594 {
"target-icc":
"-wd383"},
597 ctx.hwaf_macro_append(
"CXXflags", (
599 {
"target-icc":
"-wd981"},
602 ctx.hwaf_macro_append(
"CXXflags", (
604 {
"target-icc":
"-wd1418"},
607 ctx.hwaf_macro_append(
"CXXflags", (
609 {
"target-icc":
"-wd1419"},
612 ctx.hwaf_macro_append(
"CXXflags", (
614 {
"target-icc": [
"-we1011",
"-we117"]},
617 ctx.hwaf_macro_append(
"CXXflags", (
619 {
"no-hide-warnings":
""},
620 {
"target-icc":
"-wd82"},
623 ctx.hwaf_macro_append(
"CXXflags", (
625 {
"no-hide-warnings":
""},
626 {
"target-icc":
"-wd522"},
629 ctx.hwaf_macro_append(
"CXXflags", (
631 {
"no-hide-warnings":
""},
632 {
"target-icc":
"-wd444"},
635 ctx.hwaf_macro_append(
"CXXflags", (
637 {
"no-hide-warnings":
""},
638 {
"target-icc":
"-wd304"},
641 ctx.hwaf_macro_append(
"CXXflags", (
643 {
"no-hide-warnings":
""},
644 {
"target-icc":
"-Wno-deprecated"},
647 ctx.hwaf_macro_append(
"GaudiKernel_linkopts", (
649 {
"target-icc": [
"-limf",
"-lm"]},
652 ctx.hwaf_macro_append(
"CXXflags", (
654 {(
"GAUDI_V21",
"target-gcc4"): [
"-fvisibility=hidden",
"-fvisibility-inlines-hidden"]},
655 {(
"G21_HIDE_SYMBOLS",
"target-gcc4"): [
"-fvisibility=hidden",
"-fvisibility-inlines-hidden"]},
658 ctx.hwaf_macro_append(
"DEFINES", (
659 {
"default":
"GAUDI_V20_COMPAT"},
661 {
"GAUDI_V22":
"GAUDI_V22_API"},
664 ctx.hwaf_macro_append(
"DEFINES", (
666 {
"G21_NEW_INTERFACES":
"G21_NEW_INTERFACES"},
669 ctx.hwaf_macro_append(
"DEFINES", (
671 {
"G21_HIDE_SYMBOLS":
"G21_HIDE_SYMBOLS"},
674 ctx.hwaf_macro_append(
"DEFINES", (
676 {
"G21_NO_ENDREQ":
"G21_NO_ENDREQ"},
679 ctx.hwaf_macro_append(
"DEFINES", (
681 {
"G21_NO_DEPRECATED":
"G21_NO_DEPRECATED"},
684 ctx.hwaf_macro_append(
"DEFINES", (
686 {
"G22_NEW_SVCLOCATOR":
"G22_NEW_SVCLOCATOR"},
689 ctx.hwaf_macro_append(
"DEFINES", (
691 {
"G22_NO_DEPRECATED":
"G22_NO_DEPRECATED"},
694 ctx.hwaf_macro_append(
"CXXFLAGS", (
696 {(
"host-x86_64",
"target-i386"):
"-m32"},
697 {(
"host-x86_64",
"target-i686"):
"-m32"},
698 {(
"host-darwin",
"target-i386"):
"-m32"},
699 {(
"host-i686",
"target-x86_64"):
"-m64"},
700 {(
"host-i386",
"target-x86_64"):
"-m64"},
703 ctx.hwaf_macro_append(
"CXXFLAGS", (
705 {
"target-c11":
"-std=c++11"},
708 ctx.hwaf_macro_append(
"CFLAGS", (
710 {
"target-c11":
"-std=c11"},
713 ctx.hwaf_macro_append(
"DEFINES", (
714 {
"default":
"BOOST_FILESYSTEM_VERSION=3"},
717 ctx.hwaf_macro_append(
"CXXFLAGS", (
719 {
"no-hide-warnings":
""},
720 {
"target-gcc43":
"-Wno-deprecated"},
721 {
"target-gcc46":
"-Wno-deprecated"},
722 {
"target-gcc47":
"-Wno-deprecated"},
723 {
"target-gcc48":
"-Wno-deprecated"},
724 {
"target-gccmax":
"-Wno-deprecated"},
725 {
"target-clang":
"-Wno-deprecated"},
728 ctx.hwaf_macro_append(
"CXXFLAGS", (
730 {
"no-hide-warnings":
""},
731 {
"target-gcc43":
"-Wno-empty-body"},
734 ctx.hwaf_macro_append(
"CXXFLAGS", (
736 {
"no-hide-warnings":
""},
737 {
"target-clang": [
"-Wno-overloaded-virtual",
"-Wno-char-subscripts"]},
740 ctx.hwaf_macro_append(
"gccxml_cppflags", (
742 {
"target-gccmax":
"-D__STRICT_ANSI__"},
743 {
"target-gcc47":
"-D__STRICT_ANSI__"},
750 {
"default":
"gfortran"},
751 {
"target-slc4":
"g77"},
752 {
"target-darwin": [
"gfortran",
"-ff2c"]},
753 {
"target-winxp":
"f77.exe"},
757 {
"default":
"${FC_NAME}"},
760 ctx.hwaf_macro_append(
"shlibflags", (
761 {
"default":
"host-x86_64&target-i686"},
762 {
"-m32":
"host-x86_64&target-i386"},
763 {
"-m32":
"host-darwin&target-i386"},
764 {
"-m32":
"host-i686&target-x86_64"},
765 {
"-m64":
"host-i386&target-x86_64"},
769 {
"default": [
"-fmessage-length=0",
"-O2",
"-fdollar-ok",
"-ff90",
"-w",
"-fPIC"]},
770 {
"target-gcc4": [
"-fmessage-length=0",
"-O2",
"-fdollar-ok",
"-w",
"-fPIC"]},
771 {
"target-darwin": [
"-fno-automatic",
"-fdollar-ok",
"-w"]},
772 {
"target-winxp": [
"/compile_only",
"/nologo",
"/warn:nofileopt",
"/warn:nouncalled",
"/fpp:\"/m",
"/fpp:\"/I.."]},
775 ctx.hwaf_macro_append(
"FCFLAGS", (
777 {(
"host-x86_64",
"target-i686"):
"-m32"},
778 {(
"host-x86_64",
"target-i386"):
"-m32"},
779 {(
"host-darwin",
"target-i386"):
"-m32"},
780 {(
"host-i686",
"target-x86_64"):
"-m64"},
781 {(
"host-i386",
"target-x86_64"):
"-m64"},
785 {
"default": [
"${FC}",
"-c",
"${fincludes}",
"${fdebugflags}",
"${fflags}",
"${pp_fflags}"]},
786 {
"target-winxp": [
"${FC}",
"${fdebugflags}",
"${fflags}",
"${pp_fflags}"]},
789 ctx.hwaf_macro_append(
"CFLAGS", (
790 {
"default": [
"-fmessage-length=0",
"-fPIC"]},
791 {
"target-winxp":
""},
794 ctx.hwaf_macro_append(
"CFLAGS", (
796 {(
"host-x86_64",
"target-i686"):
"-m32"},
797 {(
"host-x86_64",
"target-i386"):
"-m32"},
798 {(
"host-darwin",
"target-i386"):
"-m32"},
799 {(
"host-i686",
"target-x86_64"):
"-m64"},
800 {(
"host-i386",
"target-x86_64"):
"-m64"},
803 macro(
"makeLinkMap", (
804 {
"default": [
"target-linux",
"-Wl,-Map,Linux.map"]},
805 {
"target-winxp":
"/map"},
808 macro(
"cpplinkflags", (
810 {
"target-linux": [
"-Wl,-Bdynamic",
"${linkdebugflags}",
"-ldl",
"-Wl,--as-needed"]},
811 {
"target-vc": [
"/nologo",
"/machine:ix86",
"${linkdebugflags}",
"${makeLinkMap}",
"/nodefaultlib",
"kernel32.lib",
"user32.lib",
"ws2_32.lib",
"advapi32.lib",
"shell32.lib",
"msvcrt.lib",
"msvcprt.lib",
"oldnames.lib"]},
814 ctx.hwaf_macro_append(
"cpplinkflags", (
816 {
"target-linux": [
"-Wl,--no-undefined"]},
819 ctx.hwaf_macro_remove(
"shlibflags", (
821 {
"target-mac": [
"-undefined",
"suppress"]},
824 ctx.hwaf_macro_append(
"cpplinkflags", (
826 {(
"host-x86_64",
"target-i686"):
"-m32"},
827 {(
"host-x86_64",
"target-i386"):
"-m32"},
828 {(
"host-darwin",
"target-i386"):
"-m32"},
829 {(
"host-i686",
"target-x86_64"):
"-m64"},
830 {(
"host-i386",
"target-x86_64"):
"-m64"},
833 ctx.hwaf_macro_append(
"cpplinkflags", (
835 {
"target-cov":
"${linkdebugflags}"},
838 ctx.hwaf_macro_append(
"cpplinkflags", (
840 {
"target-pro":
"${cppprofiled_s}"},
844 {
"default": [
"${cpp}",
"${cpplinkflags}"]},
845 {
"target-winxp": [
"link.exe",
"${cpplinkflags}"]},
848 macro(
"componentshr_linkopts", (
850 {
"target-linux": [
"-fPIC",
"-ldl",
"-Wl,--as-needed"]},
851 {
"target-winxp":
"/DLL"},
854 ctx.hwaf_macro_append(
"componentshr_linkopts", (
856 {
"target-linux": [
"-Wl,--no-undefined"]},
859 ctx.hwaf_macro_append(
"componentshr_linkopts", (
861 {
"target-linux":
"-pthread"},
864 ctx.hwaf_macro_append(
"componentshr_linkopts", (
866 {(
"target-linux",
"target-opt",
"strip-symbols"): [
"-Wl,-s"]},
869 ctx.hwaf_macro_append(
"componentshr_linkopts", (
871 {
"target-cov":
"${linkdebugflags}"},
874 ctx.hwaf_macro_append(
"componentshr_linkopts", (
876 {(
"host-x86_64",
"target-i686"):
"-m32"},
877 {(
"host-x86_64",
"target-i386"):
"-m32"},
878 {(
"host-darwin",
"target-i386"):
"-m32"},
879 {(
"host-i686",
"target-x86_64"):
"-m64"},
880 {(
"host-i386",
"target-x86_64"):
"-m64"},
883 macro(
"libraryshr_linkopts", (
885 {
"target-linux": [
"-fPIC",
"-ldl",
"-Wl,--as-needed"]},
886 {
"target-winxp":
"/DLL"},
889 ctx.hwaf_macro_append(
"libraryshr_linkopts", (
891 {
"target-linux": [
"-Wl,--no-undefined"]},
894 ctx.hwaf_macro_append(
"libraryshr_linkopts", (
896 {
"target-linux":
"-pthread"},
899 ctx.hwaf_macro_append(
"libraryshr_linkopts", (
901 {
"target-cov":
"${linkdebugflags}"},
904 ctx.hwaf_macro_append(
"libraryshr_linkopts", (
906 {(
"host-x86_64",
"target-i386"):
"-m32"},
907 {(
"host-x86_64",
"target-i686"):
"-m32"},
908 {(
"host-darwin",
"target-i386"):
"-m32"},
909 {(
"host-i686",
"target-x86_64"):
"-m64"},
910 {(
"host-i386",
"target-x86_64"):
"-m64"},
913 ctx.hwaf_macro_append(
"componentshr_linkopts", (
916 {(
"target-gcc",
"target-x86_64"): [
"-Wl,-z,max-page-size=0x1000"]},
919 ctx.hwaf_macro_append(
"libraryshr_linkopts", (
922 {(
"target-gcc",
"target-x86_64"): [
"-Wl,-z,max-page-size=0x1000"]},
925 macro(
"application_linkopts", (
927 {
"target-linux": [
"-Wl,--export-dynamic"]},
930 macro(
"shlibsuffix", (
932 {
"target-winxp":
"dll"},
935 macro(
"shared_install_subdir", (
936 {
"default":
"/${tag}"},
937 {
"target-winxp":
"\\${tag}"},
938 {
"use-shared-dir":
""},
941 macro(
"genconfDir", (
942 {
"default":
"${shared_install_subdir}/genConf/"},
943 {
"target-winxp":
"${shared_install_subdir}\\genConf"},
947 macro(
"merge_genconfDb_cmd", (
948 {
"default": [
"python",
"${GaudiPolicy_root}/scripts/merge_files.py"]},
952 macro(
"genconfig_configurableModuleName", (
953 {
"default":
"GaudiKernel.Proxy"},
956 macro(
"genconfig_configurableDefaultName", (
957 {
"default":
"Configurable.DefaultName"},
960 macro(
"genconfig_configurableAlgorithm", (
961 {
"default":
"ConfigurableAlgorithm"},
964 macro(
"genconfig_configurableAlgTool", (
965 {
"default":
"ConfigurableAlgTool"},
968 macro(
"genconfig_configurableAuditor", (
969 {
"default":
"ConfigurableAuditor"},
972 macro(
"genconfig_configurableService", (
973 {
"default":
"ConfigurableService"},
976 macro(
"genconfig_preload", (
983 macro(
"use_GaudiCoreSvc", (
984 {
"default": [
"GaudiCoreSvc",
"*",
"-no_auto_imports"]},
986 {
"do_genconf": [
"GaudiCoreSvc",
"*",
"-no_auto_imports"]},
987 {
"ATLAS": [
"GaudiCoreSvc",
"*",
"-no_auto_imports"]},
997 ctx.hwaf_path_append(
"QMTEST_CLASS_PATH", (
999 {
"QMTest":
"${GAUDIPOLICYROOT}/qmtest_classes"},
1002 ctx.hwaf_macro_remove(
"cmt_actions_constituents", (
1003 {
"default":
"make"},
1006 ctx.hwaf_macro_remove(
"cmt_actions_constituents", (
1007 {
"default":
"qmtest_run"},
1010 ctx.hwaf_macro_remove(
"cmt_actions_constituents", (
1011 {
"default":
"qmtest_summarize"},
1014 ctx.hwaf_macro_remove(
"cmt_actions_constituents", (
1015 {
"default":
"TestPackage"},
1018 ctx.hwaf_macro_remove(
"cmt_actions_constituents", (
1019 {
"default":
"TestProject"},
1022 ctx.hwaf_macro_remove(
"cmt_actions_constituents", (
1023 {
"default":
"QMTestTestsDatabase"},
1026 ctx.hwaf_macro_remove(
"cmt_actions_constituents", (
1027 {
"default":
"QMTestGUI"},
1038 macro(
"strip_script", (
1039 {
"default":
"${GAUDIPOLICYROOT}/scripts/StripPath"},
1040 {
"no-strip-path":
""},
1041 {
"target-winxp":
"${GAUDIPOLICYROOT}\\scripts\\StripPath"},
1044 macro(
"GenConfUser_script", (
1045 {
"default":
"genconfuser.py"},
1046 {
"target-winxp":
"genconfuser.bat"},
1059 ctx.hwaf_declare_tag(
1061 content=[
"no-pyzip"]
1064 ctx.hwaf_macro_append(
"DEFINES", (
1066 {
"ATLAS":
"ATLAS_GAUDI_V21"},
1069 ctx.hwaf_declare_tag(