wscript (931B)
1 #! /usr/bin/env python 2 # encoding: utf-8# 3 # Federico Pellegrin, 2018 (fedepell) 4 5 # Simple example testing usage of the recursive use processing for Java 6 # In the example b uses a, c uses b and d uses c. Therefore transitively 7 # for example c uses also a, but this by default is not enabled as it 8 # really depends on the code if the dependency is build or run time and 9 # so enabling by default may lead to unneeded work. On the other side for 10 # a project with many java artifacts and complex dependencies a manual 11 # management may be expensive. 12 # 13 # By setting recurse_use to True (or build wise by setting RECURSE_JAVA env 14 # variable to True) the recursive behaviour is enabled. 15 # 16 # Directory d tests the case when recursion stops earlier since 17 # a dependency is already explicitly defined 18 19 def configure(conf): 20 conf.load('java') 21 # For build wide enabling: 22 # conf.env.RECURSE_JAVA = True 23 24 def build(bld): 25 bld.recurse('a b c d')