diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-08-22 15:20:06 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2020-08-22 15:20:06 +0100 |
commit | f44ac27b6b09a2b049b4036817a2fb79526f882d (patch) | |
tree | 90b4f9d428e3ff5d26291492c1a2073ab08382b4 | |
parent | XSL standard HTML5 (diff) | |
download | gentoobrowse-f44ac27b6b09a2b049b4036817a2fb79526f882d.tar.bz2 gentoobrowse-f44ac27b6b09a2b049b4036817a2fb79526f882d.tar.xz gentoobrowse-f44ac27b6b09a2b049b4036817a2fb79526f882d.zip |
Use object concatenation to remove build duplication
-rw-r--r-- | gentoobrowse/src/Jamfile.jam | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/gentoobrowse/src/Jamfile.jam b/gentoobrowse/src/Jamfile.jam index 6237741..f4eb32f 100644 --- a/gentoobrowse/src/Jamfile.jam +++ b/gentoobrowse/src/Jamfile.jam @@ -2,6 +2,19 @@ import icespider ; import testing ; import sequence ; +import type ; +import generators ; + +type.register CONCATOBJ : co : STATIC_LIB ; +generators.register-composing object.concatenate : OBJ : CONCATOBJ ; + +actions object.concatenate +{ + ld -relocatable $(2) -o $(1) +} + +IMPORT $(__name__) : object.concatenate : : object.concatenate ; + lib icespider-core ; lib icespider-common ; lib icespider-xslt : : : : <library>../..//libxmlpp ; @@ -43,16 +56,21 @@ lib icespider : : <library>slicer ; -lib gentoobrowse : +concatobj gentoobrowse : [ glob *.cpp *.ice *.json : test.cpp ] : <slicer>yes <ice-visibility>hidden + <include>. + <use>gentoobrowse-api + <use>slicer-json + <use>slicer-xml + <use>icespider + : : <library>gentoobrowse-api <library>slicer-json <library>slicer-xml <library>icespider - <include>. ; exe gentoobrowse-cgi : |