This package defines build policy: it must be used by all Glast packages.
package GlastPolicy
version v3
use GaudiPolicy
ignore_pattern package_stamps
pattern package_include include_dirs "${<PACKAGE>ROOT}"
apply_pattern package_include
#pattern for library constituents that puts header files into Win32 version only
pattern package_headers \
macro <package>_headers "" WIN32 "../<package>/*.h *.h "
pattern package_xmlfiles \
macro <package>_xmlfiles "" WIN32 "../xml/*.xml "
# Set up site-specific and other tags
# define SLAC-specific tags...
tag SLAC_Solaris SLAC_UNIX
# This package is a good place to put the nt_config.h file: arrange to be included
# in all source files compiled under Windows
macro GlastPolicy_cppflags ""\
WIN32 '/FI"GlastPolicy\nt_config.h"'
# override to put in debug library
macro cpplinkflags "" \
Linux "-Wl,-Bdynamic $(makeLinkMap)" \
LinuxStatic "$(makeLinkMap)" \
WIN32 "/nologo /machine:ix86 $(linkdebugflags) $(makeLinkMap) /nodefaultlib kernel32.lib user32.lib ws2_32.lib advapi32.lib shell32.lib msvcrt.lib msvcprt.lib oldnames.lib "
# replace the version from CMT with one that makes a dummy dll
macro make_shlib "echo" \
Linux "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
SunOS "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
WIN32 '${GLASTPOLICYROOT}\cmt\cmt_make_shlib.bat'
# replace this Gaudi/CMT fragment with one that has a post-build section
make_fragment dsp_application_header
# define standard main program, grabbed from this package
macro GlastMain "${GLASTPOLICYROOT}/src/GlastMain.cxx"\
WIN32 "${GLASTPOLICYROOT}/src/GlastMain.cxx ${GLASTPOLICYROOT}/src/setPriority.cxx"
# set up the standard test program for a Gaudi package - depends on the fragment specified above
pattern package_test \
set JOBOPTIONS ${<PACKAGE>ROOT}/src/test/jobOptions.txt ; \
macro test_<package>_PostBuild_Desc "" WIN32 "Run the <package> test program" ; \
macro test_<package>_PostBuild_Cmds "" WIN32 "..\cmt\setup.bat & ..\${tag}\test_<package>.exe" ; \
macro jobOptions "" WIN32 "test/jobOptions.txt" ; \
application test_<package> $(GlastMain) test/*.cxx $(jobOptions)
The GlastPolicy package depends on the following packages
package GlastPolicy
version v3
use GaudiPolicy
ignore_pattern package_stamps
pattern package_include include_dirs "${<PACKAGE>ROOT}"
apply_pattern package_include
#pattern for library constituents that puts header files into Win32 version only
pattern package_headers \
macro <package>_headers "" WIN32 "../<package>/*.h *.h "
pattern package_xmlfiles \
macro <package>_xmlfiles "" WIN32 "../xml/*.xml "
# Set up site-specific and other tags
# define SLAC-specific tags...
tag SLAC_Solaris SLAC_UNIX
# This package is a good place to put the nt_config.h file: arrange to be included
# in all source files compiled under Windows
macro GlastPolicy_cppflags ""\
WIN32 '/FI"GlastPolicy\nt_config.h"'
# override to put in debug library
macro cpplinkflags "" \
Linux "-Wl,-Bdynamic $(makeLinkMap)" \
LinuxStatic "$(makeLinkMap)" \
WIN32 "/nologo /machine:ix86 $(linkdebugflags) $(makeLinkMap) /nodefaultlib kernel32.lib user32.lib ws2_32.lib advapi32.lib shell32.lib msvcrt.lib msvcprt.lib oldnames.lib "
# replace the version from CMT with one that makes a dummy dll
macro make_shlib "echo" \
Linux "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
SunOS "${CMTROOT}/mgr/cmt_make_shlib_common.sh extract" \
WIN32 '${GLASTPOLICYROOT}\cmt\cmt_make_shlib.bat'
# replace this Gaudi/CMT fragment with one that has a post-build section
make_fragment dsp_application_header
# define standard main program, grabbed from this package
macro GlastMain "${GLASTPOLICYROOT}/src/GlastMain.cxx"\
WIN32 "${GLASTPOLICYROOT}/src/GlastMain.cxx ${GLASTPOLICYROOT}/src/setPriority.cxx"
# set up the standard test program for a Gaudi package - depends on the fragment specified above
pattern package_test \
set JOBOPTIONS ${<PACKAGE>ROOT}/src/test/jobOptions.txt ; \
macro test_<package>_PostBuild_Desc "" WIN32 "Run the <package> test program" ; \
macro test_<package>_PostBuild_Cmds "" WIN32 "..\cmt\setup.bat & ..\${tag}\test_<package>.exe" ; \
macro jobOptions "" WIN32 "test/jobOptions.txt" ; \
application test_<package> $(GlastMain) test/*.cxx $(jobOptions)
1.2.3 written by Dimitri van Heesch,
© 1997-2000