diff options
author | Mike Buland <eichlan@xagasoft.com> | 2006-09-21 15:22:31 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2006-09-21 15:22:31 +0000 |
commit | cbb54cab8e7258afb72785391ad69c6918d8f38d (patch) | |
tree | b4aab0ef7111b4246e12b5e806816d6645b5709e | |
parent | c6034cba5444143d3c7661963782b5a4751f2ff5 (diff) | |
download | libbu++-cbb54cab8e7258afb72785391ad69c6918d8f38d.tar.gz libbu++-cbb54cab8e7258afb72785391ad69c6918d8f38d.tar.bz2 libbu++-cbb54cab8e7258afb72785391ad69c6918d8f38d.tar.xz libbu++-cbb54cab8e7258afb72785391ad69c6918d8f38d.zip |
Updated the build.conf to include the tests, not the unit tests yet, but these
I need more anyway.
-rw-r--r-- | build.conf | 18 |
1 files changed, 17 insertions, 1 deletions
@@ -1,7 +1,8 @@ | |||
1 | # This is a build file for libbu++ | 1 | # This is a build file for libbu++ |
2 | 2 | ||
3 | default action: check "libbu++.a" | 3 | default action: check "libbu++.a" |
4 | "clean" action: clean "libbu++.a" | 4 | "clean" action: clean targets() |
5 | "tests" action: check targets() filter regexp("^tests/.*$") | ||
5 | "all" action: check targets() | 6 | "all" action: check targets() |
6 | 7 | ||
7 | set "CXXFLAGS" += "-ggdb" | 8 | set "CXXFLAGS" += "-ggdb" |
@@ -12,6 +13,21 @@ set "CXXFLAGS" += "-ggdb" | |||
12 | set "CXXFLAGS" += "-Isrc -fPIC", | 13 | set "CXXFLAGS" += "-Isrc -fPIC", |
13 | input filesIn("src") filter regexp("^.*\\.cpp$") | 14 | input filesIn("src") filter regexp("^.*\\.cpp$") |
14 | 15 | ||
16 | directoriesIn("src/test","tests/"): | ||
17 | rule "exe", | ||
18 | target file, | ||
19 | requires "libbu++.a", | ||
20 | set "CXXFLAGS" += "-Isrc", | ||
21 | set "LDFLAGS" += "-L. -lbu++", | ||
22 | input filesIn("{fulldir}") filter regexp("^.*\\.cpp$") | ||
23 | |||
24 | "tests/plugin": set "LDFLAGS" += "-ldl" | ||
25 | |||
26 | rule "exe": | ||
27 | matches regexp("(.*)\\.o$"), | ||
28 | aggregate toString(" "), | ||
29 | perform command("g++ -o {target} {match} {LDFLAGS}") | ||
30 | |||
15 | rule "lib": | 31 | rule "lib": |
16 | matches regexp("(.*)\\.o$"), | 32 | matches regexp("(.*)\\.o$"), |
17 | aggregate toString(" "), | 33 | aggregate toString(" "), |