aboutsummaryrefslogtreecommitdiff
path: root/mingw.bld
diff options
context:
space:
mode:
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{