diff options
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 | { |