diff options
author | Mike Buland <eichlan@xagasoft.com> | 2010-05-13 13:43:57 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2010-05-13 13:43:57 +0000 |
commit | 2a943828287d2a861930d3facb2333c895ada205 (patch) | |
tree | 9e0cbd81f0b2e9f0d5739275507aea2ecb9115b8 /mingw.bld | |
parent | 9a30a663e472774a45b78b3240f6a399637992fc (diff) | |
download | libbu++-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.bld | 23 |
1 files changed, 19 insertions, 4 deletions
@@ -6,13 +6,11 @@ | |||
6 | 6 | ||
7 | CXXFLAGS += "-ggdb -W -Wall"; | 7 | CXXFLAGS += "-ggdb -W -Wall"; |
8 | 8 | ||
9 | |||
10 | action "default" | 9 | action "default" |
11 | { | 10 | { |
12 | build: [targets("header-links"), "libbu++win.a"]; | 11 | build: [targets("header-links"), "libbu++win.a"]; |
13 | } | 12 | } |
14 | 13 | ||
15 | |||
16 | target files("src/*.h").replace("src/", "bu/") | 14 | target 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 | } | ||
24 | target 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 | ||
27 | target "libbu++win.a" | 35 | target "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 | } |
56 | target "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 | ||
49 | function cppToWinObj() | 64 | function cppToWinObj() |
50 | { | 65 | { |