blob: 699521a631bbde1eb60fab991bce34181e465dfd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# Copyright 2013-2024 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.package import *
class Perfstubs(CMakePackage):
"""Profiling API for adding tool instrumentation support to any project.
This was motivated by the need to quickly add instrumentation to the
[ADIOS2](https://github.com/ornladios/ADIOS2) library without adding a build
dependency, or tying to a specific measurement tool.
The initial prototype implementation was tied to TAU, but evolved to this more
generic version, which was extracted as a separate repository for testing and
demonstration purposes.
"""
homepage = "https://github.com/khuck/perfstubs"
git = "https://github.com/khuck/perfstubs.git"
license("BSD-3-Clause")
version("master", branch="master")
variant("static", default=False, description="Build static executable support")
def cmake_args(self):
args = [self.define_from_variant("PERFSTUBS_USE_STATIC", "static")]
return args
|