summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-04-14 17:48:02 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-04-14 17:48:02 +0100
commit06c81989fa20590abf1f93fd36148a24d7e4ae36 (patch)
tree1cd33ef5bde427a0082b5e56ad9a3d134aeae58c
parentFix Glacier tests (diff)
downloadnetfs-06c81989fa20590abf1f93fd36148a24d7e4ae36.tar.bz2
netfs-06c81989fa20590abf1f93fd36148a24d7e4ae36.tar.xz
netfs-06c81989fa20590abf1f93fd36148a24d7e4ae36.zip
Build modeCheck.o only once
-rw-r--r--netfs/daemon/Jamfile.jam9
-rw-r--r--netfs/unittests/Jamfile.jam2
2 files changed, 9 insertions, 2 deletions
diff --git a/netfs/daemon/Jamfile.jam b/netfs/daemon/Jamfile.jam
index 99c3234..447d2e8 100644
--- a/netfs/daemon/Jamfile.jam
+++ b/netfs/daemon/Jamfile.jam
@@ -24,8 +24,15 @@ lib netfsd-configuration :
<library>..//slicer
;
+obj modeCheck : modeCheck.cpp
+ :
+ <implicit-dependency>../ice//netfs-api
+ <use>../ice//netfs-api
+ <use>../lib//netfs-common
+ ;
lib netfsd++11 :
- [ glob *.cpp : daemonConfigImpl.cpp ]
+ [ glob *.cpp : modeCheck.cpp daemonConfigImpl.cpp ]
+ modeCheck
:
<implicit-dependency>../ice//netfs-api
<implicit-dependency>netfsd-configuration
diff --git a/netfs/unittests/Jamfile.jam b/netfs/unittests/Jamfile.jam
index 1cd7d84..736c370 100644
--- a/netfs/unittests/Jamfile.jam
+++ b/netfs/unittests/Jamfile.jam
@@ -91,7 +91,7 @@ run testFuse.cpp
<dependency>testCore
;
-run testDaemon.cpp ../daemon/modeCheck.cpp
+run testDaemon.cpp ../daemon//modeCheck
: -- : :
<define>BOOST_TEST_DYN_LINK
<library>boost_utf