aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2017-04-04 22:26:55 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2017-04-04 22:26:55 +0300
commit655757bc00d8588a64b4fcac5146c0dd8516b93f (patch)
tree93fdfd0fe87e5af09a3d966bd04e9e6d7db2f3b2
parent14579ed9c512cf260ce50b303deca4b7356b92ce (diff)
parent7aa28456dfa4b865782bbf11a3ffb554c1af54df (diff)
downloadmeson-655757bc00d8588a64b4fcac5146c0dd8516b93f.zip
meson-655757bc00d8588a64b4fcac5146c0dd8516b93f.tar.gz
meson-655757bc00d8588a64b4fcac5146c0dd8516b93f.tar.bz2
Merged Valgrind dependency branch.
-rw-r--r--authors.txt1
-rw-r--r--mesonbuild/dependencies.py9
2 files changed, 10 insertions, 0 deletions
diff --git a/authors.txt b/authors.txt
index ab438b7..d982dfa 100644
--- a/authors.txt
+++ b/authors.txt
@@ -74,3 +74,4 @@ Peter Harris
Roger Boerdijk
melak47
Philipp Ittershagen
+Dylan Baker
diff --git a/mesonbuild/dependencies.py b/mesonbuild/dependencies.py
index eacb15b..7f22ae6 100644
--- a/mesonbuild/dependencies.py
+++ b/mesonbuild/dependencies.py
@@ -1483,6 +1483,14 @@ class Python3Dependency(Dependency):
def get_version(self):
return self.version
+class ValgrindDependency(PkgConfigDependency):
+
+ def __init__(self, environment, kwargs):
+ PkgConfigDependency.__init__(self, 'valgrind', environment, kwargs)
+
+ def get_link_args(self):
+ return []
+
def get_dep_identifier(name, kwargs):
elements = [name]
modlist = kwargs.get('modules', [])
@@ -1544,4 +1552,5 @@ packages = {'boost': BoostDependency,
'gl': GLDependency,
'threads': ThreadDependency,
'python3': Python3Dependency,
+ 'valgrind': ValgrindDependency,
}