aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2022-07-20 10:59:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2022-07-20 10:59:38 +0200
commit81e019055618bd32638fe7a6da9ee2dd0c317379 (patch)
treeec13284f208027c2bae429d17c4e746f3b3a2280
parent9cb5e46ba0a4ec447d79a730a0e1cb6adbe9d03f (diff)
Fix buildfile to avoid conditional dependency declarations
-rw-r--r--bbot/buildfile25
1 files changed, 11 insertions, 14 deletions
diff --git a/bbot/buildfile b/bbot/buildfile
index 66ec74a..1d9a409 100644
--- a/bbot/buildfile
+++ b/bbot/buildfile
@@ -21,22 +21,16 @@ import libs += libbbot%lib{bbot}
# Agent is a systemd service.
#
-# @@ Have to package on Linux.
-#
-if ($cxx.target.class == "linux")
-{
- ./: exe{bbot-agent} service{'bbot-agent@'}
-
- exe{bbot-agent}: agent/{hxx ixx txx cxx}{+agent} agent/libue{bbot}
+./: exe{bbot-agent} \
+ service{'bbot-agent@'}: include = ($cxx.target.class == 'linux')
- agent/
- {
- libue{bbot}: {hxx ixx txx cxx}{* -agent -agent-options -*.test...} \
- {hxx ixx cxx}{agent-options} \
- ../libue{bbot}
- }
+exe{bbot-agent}: agent/{hxx ixx txx cxx}{+agent} agent/libue{bbot}
- cxx.libs += -ldl
+agent/
+{
+ libue{bbot}: {hxx ixx txx cxx}{* -agent -agent-options -*.test...} \
+ {hxx ixx cxx}{agent-options} \
+ ../libue{bbot}
}
./: exe{bbot-worker}: worker/{hxx ixx txx cxx}{+worker} worker/libue{bbot}
@@ -53,6 +47,9 @@ libue{bbot}: {hxx ixx txx cxx}{* -common-options -version -*.test...} \
{hxx}{version} \
$libs
+if ($cxx.target.class == 'linux')
+ cxx.libs += -ldl
+
hxx{version}: in{version} $src_root/manifest
# Unit tests.