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. --- mingw.bld | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) (limited to 'mingw.bld') diff --git a/mingw.bld b/mingw.bld index 61dbeaf..7bdf474 100644 --- a/mingw.bld +++ b/mingw.bld @@ -6,13 +6,11 @@ CXXFLAGS += "-ggdb -W -Wall"; - action "default" { build: [targets("header-links"), "libbu++win.a"]; } - target files("src/*.h").replace("src/", "bu/") { tag "header-links"; @@ -20,13 +18,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++win.a" { - input files("src/*.cpp"); + input files("src/*.cpp", "src/compat/*.cpp"); rule "lib"; CXXFLAGS += "-I. -Isupport/windows"; } @@ -45,6 +53,13 @@ target "src/regex.win_o" execute("rm -f src/regex.win_o && touch src/regex.win_o && echo NOT BUILDING REGEX RIGHT NOW!!!"); } } +target "src/cachestorefiles.win_o" +{ + profile "build" + { + execute("rm -f src/cachestorefiles.win_o && touch src/cachestorefiles.win_o && echo NOT BUILDING REGEX RIGHT NOW!!!"); + } +} function cppToWinObj() { -- cgit v1.2.3