aboutsummaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2010-05-13 13:43:57 +0000
committerMike Buland <eichlan@xagasoft.com>2010-05-13 13:43:57 +0000
commit2a943828287d2a861930d3facb2333c895ada205 (patch)
tree9e0cbd81f0b2e9f0d5739275507aea2ecb9115b8 /default.bld
parent9a30a663e472774a45b78b3240f6a399637992fc (diff)
downloadlibbu++-2a943828287d2a861930d3facb2333c895ada205.tar.gz
libbu++-2a943828287d2a861930d3facb2333c895ada205.tar.bz2
libbu++-2a943828287d2a861930d3facb2333c895ada205.tar.xz
libbu++-2a943828287d2a861930d3facb2333c895ada205.zip
Finally rearranged the system to put all compatability files in a directory
called compat. I've updated the linux and windows builds and it looks pretty good. I also added a config.h file which we have to edit by hand until I can work on build some more. Linux File operations now use 64 bit mode, windows can't, or at least, I don't feel like researching it right now.
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld18
1 files changed, 15 insertions, 3 deletions
diff --git a/default.bld b/default.bld
index 9d94f73..ea83827 100644
--- a/default.bld
+++ b/default.bld
@@ -36,13 +36,23 @@ target files("src/*.h").replace("src/", "bu/")
36 input OUTPUT.replace("bu/","src/"); 36 input OUTPUT.replace("bu/","src/");
37 profile "build" 37 profile "build"
38 { 38 {
39 execute("ln -s ../${INPUT} ${OUTPUT}"); 39 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}");
40 }
41}
42target files("src/compat/*.h").replace("src/", "bu/")
43{
44 tag "header-links";
45 display "symlink";
46 input OUTPUT.replace("bu/","src/");
47 profile "build"
48 {
49 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}");
40 } 50 }
41} 51}
42 52
43target "libbu++.a" 53target "libbu++.a"
44{ 54{
45 input files("src/*.cpp"); 55 input files("src/*.cpp", "src/compat/*.cpp");
46 rule "lib"; 56 rule "lib";
47 CXXFLAGS += "-I. -fPIC"; 57 CXXFLAGS += "-I. -fPIC";
48} 58}
@@ -120,7 +130,9 @@ target "libbu++-r$(svnversion "-n").tar.bz2"
120 files("src/tools/*.cpp"), 130 files("src/tools/*.cpp"),
121 files("src/tools/*.h"), 131 files("src/tools/*.h"),
122 files("src/unit/*.unit"), 132 files("src/unit/*.unit"),
123 files("src/doxy/*.dox") 133 files("src/doxy/*.dox"),
134 files("src/compat/*.cpp"),
135 files("src/compat/*.h")
124 ]; 136 ];
125 rule "tarball"; 137 rule "tarball";
126 tag "pkg"; 138 tag "pkg";