From d64ae97f6865bc25d496485622530e2a090c2eb4 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 21 Aug 2019 12:11:48 +0200 Subject: Implement dynamic loading of build system modules --- libbuild2/buildfile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'libbuild2/buildfile') diff --git a/libbuild2/buildfile b/libbuild2/buildfile index 6539a01..7d91e08 100644 --- a/libbuild2/buildfile +++ b/libbuild2/buildfile @@ -2,6 +2,9 @@ # copyright : Copyright (c) 2014-2019 Code Synthesis Ltd # license : MIT; see accompanying LICENSE file +# NOTE: remember to update bundled_modules in libbuild2/modules.cxx if adding +# a new module. +# ./: lib{build2} bash/ in/ version/ import int_libs = libbutl%lib{butl} @@ -13,6 +16,9 @@ lib{build2}: libul{build2}: {hxx ixx txx cxx}{* -config -version -*.test...} \ # tests loop below). Note that the build system core can still function # without them or with their alternative implementations. # +# NOTE: remember to update import_modules() in libbuild2/modules.cxx if adding +# a new such module. +# for m: config dist install test libul{build2}: $m/{hxx ixx txx cxx}{** -**-options -**.test...} @@ -67,8 +73,13 @@ obja{context}: cxx.poptions += -DLIBBUILD2_STATIC_BUILD objs{context}: cxx.poptions += -DLIBBUILD2_SHARED_BUILD if ($cxx.target.class != "windows") +{ cxx.libs += -lpthread + if ($cxx.target.class != "bsd") + cxx.libs += -ldl +} + # Export options. # lib{build2}: -- cgit v1.1