aboutsummaryrefslogtreecommitdiff
path: root/mingw.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-04-03 15:55:17 +0000
committerMike Buland <eichlan@xagasoft.com>2012-04-03 15:55:17 +0000
commit618ffae80369dbf00d505020234d3fe0c4966e85 (patch)
tree768eb5894d314e84840ef22353c58fe5efde8889 /mingw.bld
parentd6fcf92f4dd68d16720b284d8018443e85c4e1be (diff)
downloadlibbu++-618ffae80369dbf00d505020234d3fe0c4966e85.tar.gz
libbu++-618ffae80369dbf00d505020234d3fe0c4966e85.tar.bz2
libbu++-618ffae80369dbf00d505020234d3fe0c4966e85.tar.xz
libbu++-618ffae80369dbf00d505020234d3fe0c4966e85.zip
Process works...sorta...in windows.
Diffstat (limited to 'mingw.bld')
-rw-r--r--mingw.bld44
1 files changed, 23 insertions, 21 deletions
diff --git a/mingw.bld b/mingw.bld
index 5deff19..69be44e 100644
--- a/mingw.bld
+++ b/mingw.bld
@@ -16,53 +16,55 @@ action "default"
16 build: [targets("header-links"), "libbu++win.a"]; 16 build: [targets("header-links"), "libbu++win.a"];
17} 17}
18 18
19target files("src/*.h").replace("src/", "bu/") 19for base in ["stable", "unstable", "experimental"] do
20{
21 target files("src/${base}/*.h").replace("src/${base}/", "bu/")
22 {
23 tag "header-links";
24 display "symlink";
25 input OUTPUT.replace("bu/","src/${base}/");
26 profile "build"
27 {
28 DIR = OUTPUT.dirName();
29 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}");
30 }
31 }
32}
33target files("src/compat/*.h").replace("src/", "bu/")
20{ 34{
21 tag "header-links"; 35 tag "header-links";
22 display "symlink"; 36 display "symlink";
23 input OUTPUT.replace("bu/","src/"); 37 input OUTPUT.replace("bu/","src/");
24 profile "build" 38 profile "build"
25 { 39 {
26 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); 40 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}");
27 } 41 }
28} 42}
29target files("src/compat/*.h").replace("src/", "bu/") 43target ["bu/config.h", "bu/autoconfig.h", "bu/version.h", "bu/signals.h"]
30{ 44{
31 tag "header-links"; 45 tag "header-links";
32 display "symlink"; 46 display "symlink";
33 input OUTPUT.replace("bu/","src/"); 47 input OUTPUT.replace("bu/","src/");
34 profile "build" 48 profile "build"
35 { 49 {
36 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}"); 50 DIR = OUTPUT.dirName();
51 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}");
37 } 52 }
38} 53}
39 54
40target "libbu++win.a" 55target "libbu++win.a"
41{ 56{
42 input files("src/*.cpp", "src/compat/*.cpp"); 57 input files("src/stable/*.cpp", "src/unstable/*.cpp",
58 "src/experimental/*.cpp", "src/compat/*.cpp");
43 rule "lib"; 59 rule "lib";
44 CXXFLAGS += "-I. -Isupport/windows"; 60 CXXFLAGS += "-I. -Isupport/windows";
45} 61}
46 62
47target ["src/process.win_o", "src/lzma.win_o"] 63target ["src/stable/lzma.win_o", "src/experimental/cachestorefiles.win_o", "src/experimental/regex.win_o"]
48{
49 profile "build"
50 {
51 execute("rm -f src/process.win_o && touch src/process.win_o && echo NOT BUILDING PROCESS RIGHT NOW!!!");
52 }
53}
54target "src/regex.win_o"
55{
56 profile "build"
57 {
58 execute("rm -f src/regex.win_o && touch src/regex.win_o && echo NOT BUILDING REGEX RIGHT NOW!!!");
59 }
60}
61target "src/cachestorefiles.win_o"
62{ 64{
63 profile "build" 65 profile "build"
64 { 66 {
65 execute("rm -f src/cachestorefiles.win_o && touch src/cachestorefiles.win_o && echo NOT BUILDING REGEX RIGHT NOW!!!"); 67 execute("rm -f ${OUTPUT} && touch ${OUTPUT} && echo NOT BUILDING PROCESS RIGHT NOW!!!");
66 } 68 }
67} 69}
68 70