aboutsummaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-04-26 15:06:49 +0000
committerMike Buland <eichlan@xagasoft.com>2007-04-26 15:06:49 +0000
commit530014a3cce53e86dce8917e98a4e86d02f176aa (patch)
treec667c996fb91692b101f75296206b8420f19bf73 /build.conf
parent066282ae6de25cf92780dbdaa2fd70a033e95659 (diff)
downloadlibbu++-530014a3cce53e86dce8917e98a4e86d02f176aa.tar.gz
libbu++-530014a3cce53e86dce8917e98a4e86d02f176aa.tar.bz2
libbu++-530014a3cce53e86dce8917e98a4e86d02f176aa.tar.xz
libbu++-530014a3cce53e86dce8917e98a4e86d02f176aa.zip
Merged Ito and put it in the BU namespace. I should probably clean up the
formatting on the comments, some of the lines wrap, but I'm not too worried about it right now. I also fixed up the doxygen config and build.conf files so that everything is building nice and smooth now.
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf26
1 files changed, 21 insertions, 5 deletions
diff --git a/build.conf b/build.conf
index bc186f9..c289205 100644
--- a/build.conf
+++ b/build.conf
@@ -1,13 +1,17 @@
1# This is a build file for libbu++ 1# This is a build file for libbu++
2 2
3default action: check "libbu++.a" 3default action: check group "lnhdrs", check "libbu++.a"
4"clean" action: clean targets() 4"tests" action: check group "lnhdrs", check group "tests"
5"tests" action: check targets() filter regexp("^tests/.*$") 5"all" action: check group "lnhdrs", check targets()
6"all" action: check targets()
7"fstring" action: check "tests/fstring"
8 6
9set "CXXFLAGS" += "-ggdb -Wall" 7set "CXXFLAGS" += "-ggdb -Wall"
10 8
9filesIn("src") filter regexp("^src/(.*)\\.h$", "src/bu/{re:1}.h"):
10 rule "hln",
11 group "lnhdrs",
12 target file,
13 input "src/{re:1}.h"
14
11"libbu++.a": 15"libbu++.a":
12 rule "lib", 16 rule "lib",
13 target file, 17 target file,
@@ -17,6 +21,7 @@ set "CXXFLAGS" += "-ggdb -Wall"
17directoriesIn("src/tests","tests/"): 21directoriesIn("src/tests","tests/"):
18 rule "exe", 22 rule "exe",
19 target file, 23 target file,
24 group "tests",
20 requires "libbu++.a", 25 requires "libbu++.a",
21 set "CXXFLAGS" += "-Isrc", 26 set "CXXFLAGS" += "-Isrc",
22 set "LDFLAGS" += "-L. -lbu++", 27 set "LDFLAGS" += "-L. -lbu++",
@@ -25,14 +30,18 @@ directoriesIn("src/tests","tests/"):
25filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"): 30filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"):
26 rule "exe", 31 rule "exe",
27 target file, 32 target file,
33 group "tests",
28 requires "libbu++.a", 34 requires "libbu++.a",
29 set "CXXFLAGS" += "-Isrc", 35 set "CXXFLAGS" += "-Isrc",
30 set "LDFLAGS" += "-L. -lbu++", 36 set "LDFLAGS" += "-L. -lbu++",
31 input "src/{target}.cpp" 37 input "src/{target}.cpp"
32 38
39["tests/itoqueue1", "tests/itoqueue2"]: set "LDFLAGS" += "-lpthread"
40
33directoriesIn("src/unit","unit/"): 41directoriesIn("src/unit","unit/"):
34 rule "exe", 42 rule "exe",
35 target file, 43 target file,
44 group "tests",
36 requires "libbu++.a", 45 requires "libbu++.a",
37 set "CXXFLAGS" += "-Isrc", 46 set "CXXFLAGS" += "-Isrc",
38 set "LDFLAGS" += "-L. -lbu++", 47 set "LDFLAGS" += "-L. -lbu++",
@@ -41,6 +50,7 @@ directoriesIn("src/unit","unit/"):
41filesIn("src/unit") filter regexp("^src/unit/(.*)\\.cpp$", "unit/{re:1}"): 50filesIn("src/unit") filter regexp("^src/unit/(.*)\\.cpp$", "unit/{re:1}"):
42 rule "exe", 51 rule "exe",
43 target file, 52 target file,
53 group "tests",
44 requires "libbu++.a", 54 requires "libbu++.a",
45 set "CXXFLAGS" += "-Isrc", 55 set "CXXFLAGS" += "-Isrc",
46 set "LDFLAGS" += "-L. -lbu++", 56 set "LDFLAGS" += "-L. -lbu++",
@@ -63,3 +73,9 @@ rule "cpp":
63 produces "{re:1}.o", 73 produces "{re:1}.o",
64 requires commandToList("g++ -M {CXXFLAGS} {match}", "make"), 74 requires commandToList("g++ -M {CXXFLAGS} {match}", "make"),
65 perform command("g++ {CXXFLAGS} -c -o {target} {match}") 75 perform command("g++ {CXXFLAGS} -c -o {target} {match}")
76
77rule "hln":
78 matches regexp("src/(.*)\\.h"),
79 produces "src/bu/{re:1}.h",
80 perform command("ln -s ../{re:1}.h {target}")
81