summaryrefslogtreecommitdiff
path: root/build.conf
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2006-09-21 15:22:31 +0000
committerMike Buland <eichlan@xagasoft.com>2006-09-21 15:22:31 +0000
commitcbb54cab8e7258afb72785391ad69c6918d8f38d (patch)
treeb4aab0ef7111b4246e12b5e806816d6645b5709e /build.conf
parentc6034cba5444143d3c7661963782b5a4751f2ff5 (diff)
downloadlibbu++-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.
Diffstat (limited to 'build.conf')
-rw-r--r--build.conf18
1 files changed, 17 insertions, 1 deletions
diff --git a/build.conf b/build.conf
index 48def8a..09efc01 100644
--- a/build.conf
+++ b/build.conf
@@ -1,7 +1,8 @@
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 "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
7set "CXXFLAGS" += "-ggdb" 8set "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
16directoriesIn("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
26rule "exe":
27 matches regexp("(.*)\\.o$"),
28 aggregate toString(" "),
29 perform command("g++ -o {target} {match} {LDFLAGS}")
30
15rule "lib": 31rule "lib":
16 matches regexp("(.*)\\.o$"), 32 matches regexp("(.*)\\.o$"),
17 aggregate toString(" "), 33 aggregate toString(" "),