From 10347ac94fbe34a385e3e7c3d5b722a147e63a39 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 25 May 2013 15:31:30 +0200 Subject: [PATCH] more docs --- playground/dynamic_build3/wscript | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/playground/dynamic_build3/wscript b/playground/dynamic_build3/wscript index 409f3d4f..d1968494 100644 --- a/playground/dynamic_build3/wscript +++ b/playground/dynamic_build3/wscript @@ -26,11 +26,13 @@ def configure(conf): def build(bld): bld.post_mode = Build.POST_LAZY - # build directory for the external library + # declare the temporary build directory for the external library + # it is best to keep it under the project build directory tmp_dir = bld.bldnode.make_node('external_lib') - # build the external library - bld(rule=some_fun, target=tmp_dir.make_node('flag.lock')) + # build the external library through an external process + # the "update_outputs" is unnecessary unless an external folder is given, for example tmp_dir = bld.root.make_node('/tmp/aaa') + bld(rule=some_fun, target=tmp_dir.make_node('flag.lock'), update_outputs=True) # once it is done create a second build group bld.add_group() @@ -38,7 +40,7 @@ def build(bld): # read the library bld.read_shlib('foo', paths=[tmp_dir], export_includes=[tmp_dir], export_defines=['A=1']) - # and use this library, for a target + # use this library for a target # no additional build group needed since "app" will wait on "foo" through the use= system bld.program(source='main.c', target='app', use='foo')