summaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld37
1 files changed, 34 insertions, 3 deletions
diff --git a/default.bld b/default.bld
index aa7f4cb..1aca56a 100644
--- a/default.bld
+++ b/default.bld
@@ -15,7 +15,8 @@ CXXFLAGS += "-ggdb -W -Wall -I.";
15 15
16action "default" 16action "default"
17{ 17{
18 build: [targets("header-links"), "libbu++.a", targets("tools")]; 18 build: [targets("header-links"), "libbu++.a",
19 targets("tools")];
19} 20}
20 21
21action "pkg" 22action "pkg"
@@ -25,14 +26,44 @@ action "pkg"
25 26
26action "all" 27action "all"
27{ 28{
28 build: [targets("header-links"), "libbu++.a", targets("tools"), 29 build: [targets("header-links"), "libbu++.a",
29 targets("tests")]; 30 targets("tools"), targets("tests")];
30} 31}
31 32
32action "unit" 33action "unit"
33{ 34{
34 build: targets("unit tests"); 35 build: targets("unit tests");
35} 36}
37/*
38target "src/autoconfig.h"
39{
40 input "autoconfig";
41 display "autoconfig";
42 profile "build"
43 {
44 execute("./autoconfig 2>src/autoconfig.h");
45 }
46}
47
48target "bu/autoconfig.h"
49{
50 tag "header-links";
51 display "symlink";
52 input "src/autoconfig.h";
53 profile "build"
54 {
55 execute("echo ${INPUT}");
56 execute("echo ${OUTPUT}");
57 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}");
58 }
59}
60
61target "autoconfig"
62{
63 rule "exe";
64 input "autoconfig.cpp";
65}
66*/
36 67
37target files("src/*.h").replace("src/", "bu/") 68target files("src/*.h").replace("src/", "bu/")
38{ 69{