summaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-10-27 04:44:46 +0000
committerMike Buland <eichlan@xagasoft.com>2011-10-27 04:44:46 +0000
commit9906ffe3c54875133448134c09ec12a0949d48cd (patch)
tree0542fef3d27e796700b87b44394a3ad31dd5b852 /default.bld
parent411f240da34bab53cd18aa8b7ba09834ede49b1c (diff)
parent029b5d159023f4dad607359dbfaa2479e21fe9e5 (diff)
downloadlibbu++-9906ffe3c54875133448134c09ec12a0949d48cd.tar.gz
libbu++-9906ffe3c54875133448134c09ec12a0949d48cd.tar.bz2
libbu++-9906ffe3c54875133448134c09ec12a0949d48cd.tar.xz
libbu++-9906ffe3c54875133448134c09ec12a0949d48cd.zip
Reorg'd! I merged in the release-fixup branch and fixed all random warnings.
I also cleaned up the build script, the symlink generation is faster and looks nicer, there's one think left to fix there, but it's not too bad.
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld31
1 files changed, 27 insertions, 4 deletions
diff --git a/default.bld b/default.bld
index 8f98db0..5660e99 100644
--- a/default.bld
+++ b/default.bld
@@ -17,7 +17,7 @@ CXXFLAGS += "-ggdb -W -Wall -I.";
17 17
18action "default" 18action "default"
19{ 19{
20 build: [targets("header-links"), "libbu++.a", 20 build: ["header-links", "libbu++.a",
21 targets("tools")]; 21 targets("tools")];
22} 22}
23 23
@@ -28,7 +28,7 @@ action "pkg"
28 28
29action "all" 29action "all"
30{ 30{
31 build: [targets("header-links"), "libbu++.a", 31 build: ["header-links", "libbu++.a",
32 targets("tools"), targets("tests")]; 32 targets("tools"), targets("tests")];
33} 33}
34 34
@@ -60,6 +60,7 @@ target "src/version.h"
60target "src/signals.h" 60target "src/signals.h"
61{ 61{
62 input "gensigs.bld"; 62 input "gensigs.bld";
63 display "generate";
63 profile "build" 64 profile "build"
64 { 65 {
65 genSigs( OUTPUT ); 66 genSigs( OUTPUT );
@@ -80,7 +81,8 @@ target [files("src/*.h").replace("src/", "bu/"), "bu/autoconfig.h",
80 input OUTPUT.replace("bu/","src/"); 81 input OUTPUT.replace("bu/","src/");
81 profile "build" 82 profile "build"
82 { 83 {
83 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); 84 DIR = OUTPUT.dirName();
85 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}");
84 } 86 }
85} 87}
86 88
@@ -91,7 +93,18 @@ target files("src/compat/*.h").replace("src/", "bu/")
91 input OUTPUT.replace("bu/","src/"); 93 input OUTPUT.replace("bu/","src/");
92 profile "build" 94 profile "build"
93 { 95 {
94 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}"); 96 DIR = OUTPUT.dirName();
97 execute("mkdir -p ${DIR}; ln -s ../../${INPUT} ${OUTPUT}");
98 }
99}
100
101target "header-links"
102{
103 input targets("header-links");
104 display "symlinks";
105 profile "build"
106 {
107 condition always;
95 } 108 }
96} 109}
97 110
@@ -167,6 +180,16 @@ target ["tests/bzip2", "tests/streamstack"]
167 LDFLAGS += "-lbz2"; 180 LDFLAGS += "-lbz2";
168} 181}
169 182
183target ["tests/deflate", "tests/enc"]
184{
185 LDFLAGS += "-lz";
186}
187
188target ["tests/lzma"]
189{
190 LDFLAGS += "-llzma";
191}
192
170target ["tests/itoserver", "tests/socketblock", "tests/itoheap", 193target ["tests/itoserver", "tests/socketblock", "tests/itoheap",
171 "tests/itoqueue1", "tests/itoqueue2", "tests/conduit"] 194 "tests/itoqueue1", "tests/itoqueue2", "tests/conduit"]
172{ 195{