Skip to content

Commit

Permalink
Build DD4hep examples as part of DD4hep
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Mar 11, 2024
1 parent aa9563f commit a7842ff
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
11 changes: 8 additions & 3 deletions ilcsoft/dd4hep.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,13 @@ def __init__(self, userInput):
self.download.gituser = 'AIDASoft'
self.download.gitrepo = 'DD4hep'

self.reqfiles = [ ["lib/libDDCore.so", "lib/libDDCore.dylib" ]]
self.reqfiles = [ ["lib/libDDCore.so", "lib/libDDCore.dylib" ],
["lib/libSimpleDetector.so", "lib/libSimpleDetector.dylib" ]]

self.reqmodules = [ "ROOT" , "LCIO", "GEAR", "Geant4" , "CLHEP" ,"Boost" , "EDM4hep" ]

self.envcmake["DD4HEP_BUILD_EXAMPLES"] = "ON"


def setMode(self, mode):
BaseILC.setMode(self, mode)
Expand Down Expand Up @@ -75,5 +78,7 @@ def postCheckDeps(self):
self.env[ 'DD4HEP' ] = self.installPath
self.env[ 'DD4HEP_ENVINIT' ] = "${DD4HEP}/bin/thisdd4hep.sh"
self.envcmds.append('test -r ${DD4HEP_ENVINIT} && . ${DD4HEP_ENVINIT}')



# The other parts of the environment for the examples are already part of
# the DD4hep environment, since artifacts go into the same directories
self.env["DD4hepExamples"] = self.installPath + "/examples"
3 changes: 3 additions & 0 deletions ilcsoft/dd4hep_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
#
##################################################

import warnings

# custom imports
from .baseilc import BaseILC
from .util import *
Expand All @@ -16,6 +18,7 @@ class DD4hepExamples(BaseILC):
""" Responsible for the DD4hepExamples configuration process. """

def __init__(self, userInput):
warnings.warn("The examples are now built as part of DD4hep", DeprecationWarning, stacklevel=2)
BaseILC.__init__(self, userInput, "DD4hepExamples", "DD4hepExamples")

#self.hasCMakeBuildSupport = False
Expand Down
2 changes: 0 additions & 2 deletions releases/v02-03/release-ilcsoft.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -260,8 +260,6 @@ ilcsoft.module("aidaTT").download.gitrepo="aidaTT"

ilcsoft.install( DDKalTest( DDKalTest_version ))

ilcsoft.install( DD4hepExamples ( DD4hepExamples_version ))

####################################################################
#
# the following tools are installed in afs:
Expand Down

0 comments on commit a7842ff

Please sign in to comment.