aboutsummaryrefslogtreecommitdiff
path: root/bu
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-07-03 00:28:59 +0000
committerMike Buland <eichlan@xagasoft.com>2007-07-03 00:28:59 +0000
commitac517a2b7625e0aa0862679e961c6349f859ea3b (patch)
treee3e27a6b9bd5e2be6150088495c91fc91786ad9d /bu
parentf8d4301e9fa4f3709258505941e37fab2eadadc6 (diff)
parentbd865cee5f89116c1f054cd0e5c275e97c2d0a9b (diff)
downloadlibbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.gz
libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.bz2
libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.tar.xz
libbu++-ac517a2b7625e0aa0862679e961c6349f859ea3b.zip
The reorg is being put in trunk, I think it's ready. Now we just get to find
out how many applications won't work anymore :)
Diffstat (limited to '')
l---------bu1
-rw-r--r--build.conf38
2 files changed, 34 insertions, 5 deletions
diff --git a/bu b/bu
new file mode 120000
index 0000000..02b8847
--- /dev/null
+++ b/bu
@@ -0,0 +1 @@
src/bu/ \ No newline at end of file
diff --git a/build.conf b/build.conf
index 5c4dbb6..d994977 100644
--- a/build.conf
+++ b/build.conf
@@ -1,13 +1,20 @@
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
9#set "CXXFLAGS" += "-pg"
10#set "LDFLAGS" += "-pg"
11
12filesIn("src") filter regexp("^src/(.*)\\.h$", "src/bu/{re:1}.h"):
13 rule "hln",
14 group "lnhdrs",
15 target file,
16 input "src/{re:1}.h"
17
11"libbu++.a": 18"libbu++.a":
12 rule "lib", 19 rule "lib",
13 target file, 20 target file,
@@ -17,6 +24,7 @@ set "CXXFLAGS" += "-ggdb -Wall"
17directoriesIn("src/tests","tests/"): 24directoriesIn("src/tests","tests/"):
18 rule "exe", 25 rule "exe",
19 target file, 26 target file,
27 group "tests",
20 requires "libbu++.a", 28 requires "libbu++.a",
21 set "CXXFLAGS" += "-Isrc", 29 set "CXXFLAGS" += "-Isrc",
22 set "LDFLAGS" += "-L. -lbu++", 30 set "LDFLAGS" += "-L. -lbu++",
@@ -25,6 +33,18 @@ directoriesIn("src/tests","tests/"):
25filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"): 33filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"):
26 rule "exe", 34 rule "exe",
27 target file, 35 target file,
36 group "tests",
37 requires "libbu++.a",
38 set "CXXFLAGS" += "-Isrc",
39 set "LDFLAGS" += "-L. -lbu++",
40 input "src/{target}.cpp"
41
42["tests/itoqueue1", "tests/itoqueue2"]: set "LDFLAGS" += "-lpthread"
43
44filesIn("src/unit") filter regexp("^src/unit/(.*)\\.cpp$", "unit/{re:1}"):
45 rule "exe",
46 target file,
47 group "tests",
28 requires "libbu++.a", 48 requires "libbu++.a",
29 set "CXXFLAGS" += "-Isrc", 49 set "CXXFLAGS" += "-Isrc",
30 set "LDFLAGS" += "-L. -lbu++", 50 set "LDFLAGS" += "-L. -lbu++",
@@ -32,6 +52,8 @@ filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"):
32 52
33"tests/plugin": set "LDFLAGS" += "-ldl" 53"tests/plugin": set "LDFLAGS" += "-ldl"
34 54
55"tests/bzip2": set "LDFLAGS" += "-lbz2"
56
35rule "exe": 57rule "exe":
36 matches regexp("(.*)\\.o$"), 58 matches regexp("(.*)\\.o$"),
37 aggregate toString(" "), 59 aggregate toString(" "),
@@ -47,3 +69,9 @@ rule "cpp":
47 produces "{re:1}.o", 69 produces "{re:1}.o",
48 requires commandToList("g++ -M {CXXFLAGS} {match}", "make"), 70 requires commandToList("g++ -M {CXXFLAGS} {match}", "make"),
49 perform command("g++ {CXXFLAGS} -c -o {target} {match}") 71 perform command("g++ {CXXFLAGS} -c -o {target} {match}")
72
73rule "hln":
74 matches regexp("src/(.*)\\.h"),
75 produces "src/bu/{re:1}.h",
76 perform command("ln -s ../{re:1}.h {target}")
77