aboutsummaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-03-25 20:00:08 +0000
committerMike Buland <eichlan@xagasoft.com>2012-03-25 20:00:08 +0000
commit469bbcf0701e1eb8a6670c23145b0da87357e178 (patch)
treeb5b062a16e46a6c5d3410b4e574cd0cc09057211 /default.bld
parentee1b79396076edc4e30aefb285fada03bb45e80d (diff)
downloadlibbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.gz
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.bz2
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.tar.xz
libbu++-469bbcf0701e1eb8a6670c23145b0da87357e178.zip
Code is all reorganized. We're about ready to release. I should write up a
little explenation of the arrangement.
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}