From cbb54cab8e7258afb72785391ad69c6918d8f38d Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 21 Sep 2006 15:22:31 +0000 Subject: Updated the build.conf to include the tests, not the unit tests yet, but these I need more anyway. --- build.conf | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/build.conf b/build.conf index 48def8a..09efc01 100644 --- a/build.conf +++ b/build.conf @@ -1,7 +1,8 @@ # This is a build file for libbu++ default action: check "libbu++.a" -"clean" action: clean "libbu++.a" +"clean" action: clean targets() +"tests" action: check targets() filter regexp("^tests/.*$") "all" action: check targets() set "CXXFLAGS" += "-ggdb" @@ -12,6 +13,21 @@ set "CXXFLAGS" += "-ggdb" set "CXXFLAGS" += "-Isrc -fPIC", input filesIn("src") filter regexp("^.*\\.cpp$") +directoriesIn("src/test","tests/"): + rule "exe", + target file, + requires "libbu++.a", + set "CXXFLAGS" += "-Isrc", + set "LDFLAGS" += "-L. -lbu++", + input filesIn("{fulldir}") filter regexp("^.*\\.cpp$") + +"tests/plugin": set "LDFLAGS" += "-ldl" + +rule "exe": + matches regexp("(.*)\\.o$"), + aggregate toString(" "), + perform command("g++ -o {target} {match} {LDFLAGS}") + rule "lib": matches regexp("(.*)\\.o$"), aggregate toString(" "), -- cgit v1.2.3