Skip to content

Commit

Permalink
JCF: add tpgtools to the nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfreeman2 committed Jan 30, 2024
1 parent 236e666 commit 0178e65
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions configs/fddaq/fddaq-develop/dbt-build-order.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ set(build_order "daq-cmake"
"fddetdataformats"
"fdreadoutlibs"
"fdreadoutmodules"
"tpgtools"
"flxlibs"
"dqm"
"wibmod"
Expand Down
3 changes: 3 additions & 0 deletions configs/fddaq/fddaq-develop/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@
- name: sspmodules
version: "develop"
commit: null
- name: tpgtools
version: "develop"
commit: null
- name: flxlibs
version: "develop"
commit: null
Expand Down
1 change: 1 addition & 0 deletions configs/nddaq/nddaq-develop/dbt-build-order.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ set(build_order "daq-cmake"
"fddetdataformats"
"fdreadoutlibs"
"fdreadoutmodules"
"tpgtools"
"flxlibs"
"dqm"
"wibmod"
Expand Down
1 change: 1 addition & 0 deletions scripts/github-ci/repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ dune_packages_with_ci=(
"lbrulibs"
"nddaqconf"
"snbmodules"
"tpgtools"
)

dune_packages=(
Expand Down
46 changes: 46 additions & 0 deletions spack-repos/fddaq-repo-template/packages/tpgtools/package.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)


from spack import *


class Tpgtools(CMakePackage):
"""A collection of utility tools and applications to emulate, plot, parse and test Trigger Primitive Generation algorithms"""

homepage = "https://dune-daq-sw.readthedocs.io/en/latest/packages/tpgtools/"
git = "https://github.com/DUNE-DAQ/tpgtools.git"

maintainers = ['jcfreeman2']

version("XVERSIONX", commit="XHASHX")

depends_on("ers")
depends_on("logging")
depends_on("readoutlibs")
depends_on("fdreadoutlibs")
depends_on("daqdataformats")
depends_on("detchannelmaps")
depends_on("detdataformats")
depends_on("fddetdataformats")
depends_on("trigger")
depends_on("hdf5libs")

depends_on("boost")

depends_on("daq-cmake")

# DBT_DEBUG is used by daq-cmake to set compiler options
def cmake_args(self):
if str(self.spec.variants['build_type']) == "build_type=Debug":
return ["-DDBT_DEBUG=true"]
else:
return ["-DDBT_DEBUG=false"]

def setup_run_environment(self, env):
env.set(self.__module__.split(".")[-1].upper().replace("-", "_") + "_SHARE", self.prefix + "/share" )
env.prepend_path("DUNEDAQ_SHARE_PATH", self.prefix + "/share")
env.prepend_path('CET_PLUGIN_PATH', self.prefix.lib + "64")
env.prepend_path("PYTHONPATH", self.prefix.lib + "64/python")

0 comments on commit 0178e65

Please sign in to comment.