Permalink
Browse files

Move recurse dependencies (#78)

* Call build() in all dependencies before executing build()
  in the top-level wscript: this allows us to define all build tasks
  from the dependencies before reaching the main project
  • Loading branch information...
mortenvp committed Jan 5, 2018
1 parent e6cd2f4 commit a07b2e62690571f6a759bf5b56cf04be0cb8c4d8
Showing with 9 additions and 7 deletions.
  1. +5 −2 NEWS.rst
  2. +4 −5 src/wurf/waf_build_context.py
View
@@ -6,8 +6,11 @@ of every change, see the Git log.
Latest
------
* Patch: Refactor symlink code into a standalone utility. This makes it reusable by other tools which needs to make
symlinks.
* Patch: Move recurse_dependencies() to Waf's execute_build() function. Since
this is known to only be called once. This eliminates using the is_toplevel to
avoid inifinite recursion.
* Patch: Refactor symlink code into a standalone utility. This makes it
reusable by other tools which needs to make symlinks.
* Patch: Update to newest pytest-testdirectory plugin
* Minor: Adding override attribute.
* Minor: Added post_resolve.
@@ -6,12 +6,11 @@
class WafBuildContext(BuildContext):
def pre_recurse(self, node):
super(WafBuildContext, self).pre_recurse(node)
def execute_build(self):
# Call build() in all dependencies before executing build()
# in the top-level wscript: this allows us to define all build tasks
# from the dependencies before reaching the main project
if self.is_toplevel():
self.recurse_dependencies()
self.recurse_dependencies()
super(WafBuildContext, self).execute_build()

0 comments on commit a07b2e6

Please sign in to comment.