From 8eb093161aeebac0273b8d12b005aa6c73fe3850 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 27 Jul 2023 02:22:58 +0100 Subject: Restructure FCGI libs * build requests code into a static library * linked into icespider-fcgi, testFcgi and testPerf, remove duplications * only run testPerf for profile variant, but always build it --- icespider/core/Jamfile.jam | 4 ++-- icespider/fcgi/Jamfile.jam | 34 +++++++++++++++++++++++----------- icespider/unittests/Jamfile.jam | 29 ++++++++++++++++++----------- 3 files changed, 43 insertions(+), 24 deletions(-) diff --git a/icespider/core/Jamfile.jam b/icespider/core/Jamfile.jam index 7b7bd19..0654c78 100644 --- a/icespider/core/Jamfile.jam +++ b/icespider/core/Jamfile.jam @@ -13,11 +13,11 @@ lib icespider-core : adhocutil slicer stdc++fs - ../common + ../common//icespider-common routeOptions : : . ../common//icespider-common - ../common + ../common//icespider-common routeOptions ; diff --git a/icespider/fcgi/Jamfile.jam b/icespider/fcgi/Jamfile.jam index 47c10fa..7788767 100644 --- a/icespider/fcgi/Jamfile.jam +++ b/icespider/fcgi/Jamfile.jam @@ -1,16 +1,28 @@ -lib slicer ; -lib fcgi : : fcgi ; -lib fcgi++ : : fcgi++ ; +lib slicer : : shared ; +lib fcgi : : shared ; +lib fcgi++ : : shared ; -lib icespider-fcgi : - [ glob-tree *.cpp : bin ] +lib icespider-fcgi-reqs : + [ glob *Request*.cpp ] : - slicer + static + -fPIC + ../core//icespider-core/shared + ..//core/shared + fcgi + fcgi++ + slicer + : : + . + ../core//icespider-core/shared + ..//core//icespider-core/shared fcgi fcgi++ - ..//core//icespider-core - ../core//icespider-core - : : - ..//core//icespider-core - ../core//icespider-core + slicer + ; + +lib icespider-fcgi : + main.cpp + : + icespider-fcgi-reqs ; diff --git a/icespider/unittests/Jamfile.jam b/icespider/unittests/Jamfile.jam index 16cb1e6..68c3852 100644 --- a/icespider/unittests/Jamfile.jam +++ b/icespider/unittests/Jamfile.jam @@ -101,23 +101,31 @@ run . : testApp ; -explicit testPerf ; run - testPerf.cpp - ../fcgi/cgiRequestBase.cpp + [ obj testPerf : testPerf.cpp : + pure + ROOT=\"$(me)\" + ../core//icespider-core + test-fcgi + benchmark + ../common//icespider-common + ../core//icespider-core + ../fcgi//icespider-fcgi-reqs + stdc++fs + slicer + slicer-json + adhocutil + ] : : : - pure benchmark - ROOT=\"$(me)\" - ../common//icespider-common ../core//icespider-core - ../core//icespider-core - test-fcgi + ../fcgi//icespider-fcgi-reqs stdc++fs slicer slicer-json adhocutil - ../fcgi + profile:on + off : testPerf ; obj test-fcgi : test-fcgi.ice : tidy:none ; @@ -131,19 +139,18 @@ run test-fcgi tidy:none ] test-fcgi - ../fcgi/cgiRequestBase.cpp : : : BOOST_TEST_DYN_LINK testCommon ../common//icespider-common ../core//icespider-core + ../fcgi//icespider-fcgi-reqs ../core//icespider-core test-fcgi stdc++fs slicer slicer-json adhocutil - ../fcgi : testFcgi ; run -- cgit v1.2.3