diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2013-04-01 14:58:22 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2013-04-01 14:58:22 +0300 |
commit | 3d4aad9e0d0038061960469d4d380b7e57d53144 (patch) | |
tree | 5aea5bc253987766f1e28b64f47359c06e47b039 /dependencies.py | |
parent | 137365b5b3f5169f16106792a8f8e01bca1c181a (diff) | |
download | meson-3d4aad9e0d0038061960469d4d380b7e57d53144.zip meson-3d4aad9e0d0038061960469d4d380b7e57d53144.tar.gz meson-3d4aad9e0d0038061960469d4d380b7e57d53144.tar.bz2 |
Can have multiple different configurations of the same dependency.
Diffstat (limited to 'dependencies.py')
-rw-r--r-- | dependencies.py | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/dependencies.py b/dependencies.py index 1fd734d..554eac4 100644 --- a/dependencies.py +++ b/dependencies.py @@ -25,8 +25,8 @@ import os, stat, glob, subprocess, shutil from coredata import MesonException class DependencyException(MesonException): - def __init__(self, args, **kwargs): - MesonException.__init__(args, kwargs) + def __init__(self, *args, **kwargs): + MesonException.__init__(self, *args, **kwargs) class Dependency(): def __init__(self): @@ -322,6 +322,15 @@ class Qt5Dependency(): return False return True +def get_dep_identifier(name, kwargs): + elements = [name] + modlist = kwargs.get('modules', []) + if isinstance(modlist, str): + modlist = [modlist] + for module in modlist: + elements.append(module) + return '/'.join(elements) + # This has to be at the end so the classes it references # are defined. packages = {'boost': BoostDependency, |