aboutsummaryrefslogtreecommitdiff
path: root/mingw.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 /mingw.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 'mingw.bld')
-rw-r--r--mingw.bld23
1 files changed, 19 insertions, 4 deletions
diff --git a/mingw.bld b/mingw.bld
index 61dbeaf..7bdf474 100644
--- a/mingw.bld
+++ b/mingw.bld
@@ -6,13 +6,11 @@
6 6
7CXXFLAGS += "-ggdb -W -Wall"; 7CXXFLAGS += "-ggdb -W -Wall";
8 8
9
10action "default" 9action "default"
11{ 10{
12 build: [targets("header-links"), "libbu++win.a"]; 11 build: [targets("header-links"), "libbu++win.a"];
13} 12}
14 13
15
16target files("src/*.h").replace("src/", "bu/") 14target files("src/*.h").replace("src/", "bu/")
17{ 15{
18 tag "header-links"; 16 tag "header-links";
@@ -20,13 +18,23 @@ target files("src/*.h").replace("src/", "bu/")
20 input OUTPUT.replace("bu/","src/"); 18 input OUTPUT.replace("bu/","src/");
21 profile "build" 19 profile "build"
22 { 20 {
23 execute("ln -s ../${INPUT} ${OUTPUT}"); 21 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}");
22 }
23}
24target files("src/compat/*.h").replace("src/", "bu/")
25{
26 tag "header-links";
27 display "symlink";
28 input OUTPUT.replace("bu/","src/");
29 profile "build"
30 {
31 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}");
24 } 32 }
25} 33}
26 34
27target "libbu++win.a" 35target "libbu++win.a"
28{ 36{
29 input files("src/*.cpp"); 37 input files("src/*.cpp", "src/compat/*.cpp");
30 rule "lib"; 38 rule "lib";
31 CXXFLAGS += "-I. -Isupport/windows"; 39 CXXFLAGS += "-I. -Isupport/windows";
32} 40}
@@ -45,6 +53,13 @@ target "src/regex.win_o"
45 execute("rm -f src/regex.win_o && touch src/regex.win_o && echo NOT BUILDING REGEX RIGHT NOW!!!"); 53 execute("rm -f src/regex.win_o && touch src/regex.win_o && echo NOT BUILDING REGEX RIGHT NOW!!!");
46 } 54 }
47} 55}
56target "src/cachestorefiles.win_o"
57{
58 profile "build"
59 {
60 execute("rm -f src/cachestorefiles.win_o && touch src/cachestorefiles.win_o && echo NOT BUILDING REGEX RIGHT NOW!!!");
61 }
62}
48 63
49function cppToWinObj() 64function cppToWinObj()
50{ 65{