aboutsummaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld21
1 files changed, 18 insertions, 3 deletions
diff --git a/default.bld b/default.bld
index ce0ea80..831959e 100644
--- a/default.bld
+++ b/default.bld
@@ -73,8 +73,22 @@ target "autoconfig"
73 input "autoconfig.cpp"; 73 input "autoconfig.cpp";
74} 74}
75 75
76target [files("src/*.h").replace("src/", "bu/"), "bu/autoconfig.h", 76for base in ["stable", "unstable", "experimental"] do
77 "bu/version.h", "bu/signals.h"] 77{
78 target files("src/${base}/*.h").replace("src/${base}/", "bu/")
79 {
80 tag "header-links";
81 display "symlink";
82 input OUTPUT.replace("bu/","src/${base}/");
83 profile "build"
84 {
85 DIR = OUTPUT.dirName();
86 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}");
87 }
88 }
89}
90
91target ["bu/config.h", "bu/autoconfig.h", "bu/version.h", "bu/signals.h"]
78{ 92{
79 tag "header-links"; 93 tag "header-links";
80 display "symlink"; 94 display "symlink";
@@ -110,7 +124,8 @@ target "header-links"
110 124
111target "libbu++.a" 125target "libbu++.a"
112{ 126{
113 input files("src/*.cpp", "src/compat/*.cpp"); 127 input files("src/stable/*.cpp", "src/unstable/*.cpp",
128 "src/experimental/*.cpp", "src/compat/*.cpp");
114 rule "lib"; 129 rule "lib";
115 CXXFLAGS += "-I. -fPIC"; 130 CXXFLAGS += "-I. -fPIC";
116} 131}