From 1b797548dff7e2475826ba29a71c3f496008988f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 14 Aug 2010 07:12:29 +0000 Subject: libgats gets it's own repo. The rest of the history is in my misc repo. --- default.bld | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 default.bld (limited to 'default.bld') diff --git a/default.bld b/default.bld new file mode 100644 index 0000000..ae6c61b --- /dev/null +++ b/default.bld @@ -0,0 +1,62 @@ + +action "default" +{ + build: [targets("header-links"), "libgats.a"]; +} + +action "all" +{ + build: [targets("header-links"), "libgats.a", targets()]; +} + + +CXXFLAGS += "-ggdb -Wall"; + +target files("src/*.h").replace("src/", "gats/") +{ + tag "header-links"; + display "symlink"; + input OUTPUT.replace("gats/","src/"); + profile "build" + { + execute("ln -s ../${INPUT} ${OUTPUT}"); + } +} + +target "libgats.a" +{ + rule "lib"; + input files("src/*.cpp"); + CXXFLAGS += "-I. -Ilibbu++ -fPIC"; +} + +target files("src/tests/*.cpp").replace("src/","").replace(".cpp","") +{ + input "src/${OUTPUT}.cpp"; + rule "exe"; + tag ["tests", "general tests"]; + CXXFLAGS += "-I. -Ilibbu++"; + LDFLAGS += "-L. -lgats -Llibbu++ -lbu++"; +} + +target files("src/unit/*.unit").replace("src/","").replace(".unit","") +{ + input "src/${OUTPUT}.unit"; + rule "exe"; + requires "libbu++.a"; + tag ["tests", "unit tests"]; + CXXFLAGS += "-I."; + LDFLAGS += "-L. -lbu++ -lgats"; +} + +rule "unit" +{ + input "*.unit"; + output INPUT.replace(".unit", ".cpp"); + + profile "build" + { + execute("../libbu++/mkunit \"${INPUT}\" \"${OUTPUT}\""); + } +} + -- cgit v1.2.3