aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/build.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-04-05 16:19:30 -0700
committerDylan Baker <dylan@pnwbakers.com>2019-04-05 16:19:30 -0700
commitb842b0b04aa8678f98cbec5f7022e75636ddf4a3 (patch)
tree3ac5406cc9ee1ea4752e87116f340f489f7b8573 /mesonbuild/build.py
parentb1aa54bb2911ecf0f26391a9b1e0a6cd308913b5 (diff)
downloadmeson-b842b0b04aa8678f98cbec5f7022e75636ddf4a3.zip
meson-b842b0b04aa8678f98cbec5f7022e75636ddf4a3.tar.gz
meson-b842b0b04aa8678f98cbec5f7022e75636ddf4a3.tar.bz2
dependencies: Add ext_deps to all dependencies
I'll be using this later, but it seems useful to allow dependencies to that have special handlers to declare that they depend on other dependencies. This should allow us to stop treating threads special internally and just make it a normal dependency.
Diffstat (limited to 'mesonbuild/build.py')
-rw-r--r--mesonbuild/build.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index bcd1754..020c47b 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -1035,6 +1035,7 @@ This will become a hard error in a future Meson release.''')
if dep not in self.external_deps:
self.external_deps.append(dep)
self.process_sourcelist(dep.get_sources())
+ self.add_deps(dep.ext_deps)
elif isinstance(dep, BuildTarget):
raise InvalidArguments('''Tried to use a build target as a dependency.
You probably should put it in link_with instead.''')