From 2a943828287d2a861930d3facb2333c895ada205 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 13 May 2010 13:43:57 +0000 Subject: 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. --- default.bld | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'default.bld') 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/") input OUTPUT.replace("bu/","src/"); profile "build" { - execute("ln -s ../${INPUT} ${OUTPUT}"); + execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); + } +} +target files("src/compat/*.h").replace("src/", "bu/") +{ + tag "header-links"; + display "symlink"; + input OUTPUT.replace("bu/","src/"); + profile "build" + { + execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}"); } } target "libbu++.a" { - input files("src/*.cpp"); + input files("src/*.cpp", "src/compat/*.cpp"); rule "lib"; CXXFLAGS += "-I. -fPIC"; } @@ -120,7 +130,9 @@ target "libbu++-r$(svnversion "-n").tar.bz2" files("src/tools/*.cpp"), files("src/tools/*.h"), files("src/unit/*.unit"), - files("src/doxy/*.dox") + files("src/doxy/*.dox"), + files("src/compat/*.cpp"), + files("src/compat/*.h") ]; rule "tarball"; tag "pkg"; -- cgit v1.2.3