aboutsummaryrefslogtreecommitdiff
path: root/mingw.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
committerMike Buland <eichlan@xagasoft.com>2012-11-05 22:41:51 +0000
commitec05778d5718a7912e506764d443a78d6a6179e3 (patch)
tree78a9a01532180030c095acefc45763f07c14edb8 /mingw.bld
parentb20414ac1fe80a71a90601f4cd1767fa7014a9ba (diff)
downloadlibbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.gz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.bz2
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.tar.xz
libbu++-ec05778d5718a7912e506764d443a78d6a6179e3.zip
Converted tabs to spaces with tabconv.
Diffstat (limited to 'mingw.bld')
-rw-r--r--mingw.bld110
1 files changed, 55 insertions, 55 deletions
diff --git a/mingw.bld b/mingw.bld
index fe2f763..6339df9 100644
--- a/mingw.bld
+++ b/mingw.bld
@@ -13,90 +13,90 @@ CXXFLAGS += "-ggdb -W -Wall";
13 13
14action "default" 14action "default"
15{ 15{
16 build: [targets("header-links"), "libbu++win.a"]; 16 build: [targets("header-links"), "libbu++win.a"];
17} 17}
18 18
19for base in ["stable", "unstable", "experimental"] do 19for base in ["stable", "unstable", "experimental"] do
20{ 20{
21 target files("src/${base}/*.h").replace("src/${base}/", "bu/") 21 target files("src/${base}/*.h").replace("src/${base}/", "bu/")
22 { 22 {
23 tag "header-links"; 23 tag "header-links";
24 display "symlink"; 24 display "symlink";
25 input OUTPUT.replace("bu/","src/${base}/"); 25 input OUTPUT.replace("bu/","src/${base}/");
26 profile "build" 26 profile "build"
27 { 27 {
28 DIR = OUTPUT.dirName(); 28 DIR = OUTPUT.dirName();
29 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}"); 29 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}");
30 } 30 }
31 } 31 }
32} 32}
33target files("src/compat/*.h").replace("src/", "bu/") 33target files("src/compat/*.h").replace("src/", "bu/")
34{ 34{
35 tag "header-links"; 35 tag "header-links";
36 display "symlink"; 36 display "symlink";
37 input OUTPUT.replace("bu/","src/"); 37 input OUTPUT.replace("bu/","src/");
38 profile "build" 38 profile "build"
39 { 39 {
40 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}"); 40 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../../${INPUT} ${OUTPUT}");
41 } 41 }
42} 42}
43target ["bu/config.h", "bu/autoconfig.h", "bu/version.h", "bu/signals.h"] 43target ["bu/config.h", "bu/autoconfig.h", "bu/version.h", "bu/signals.h"]
44{ 44{
45 tag "header-links"; 45 tag "header-links";
46 display "symlink"; 46 display "symlink";
47 input OUTPUT.replace("bu/","src/"); 47 input OUTPUT.replace("bu/","src/");
48 profile "build" 48 profile "build"
49 { 49 {
50 DIR = OUTPUT.dirName(); 50 DIR = OUTPUT.dirName();
51 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}"); 51 execute("mkdir -p ${DIR}; ln -s ../${INPUT} ${OUTPUT}");
52 } 52 }
53} 53}
54 54
55target "libbu++win.a" 55target "libbu++win.a"
56{ 56{
57 input files("src/stable/*.cpp", "src/unstable/*.cpp", 57 input files("src/stable/*.cpp", "src/unstable/*.cpp",
58 "src/experimental/*.cpp", "src/compat/*.cpp"); 58 "src/experimental/*.cpp", "src/compat/*.cpp");
59 rule "lib"; 59 rule "lib";
60 CXXFLAGS += "-I. -Isupport/windows"; 60 CXXFLAGS += "-I. -Isupport/windows";
61} 61}
62 62
63target ["src/stable/lzma.win_o", "src/experimental/cachestorefiles.win_o", "src/experimental/regex.win_o"] 63target ["src/stable/lzma.win_o", "src/experimental/cachestorefiles.win_o", "src/experimental/regex.win_o"]
64{ 64{
65 profile "build" 65 profile "build"
66 { 66 {
67 execute("rm -f ${OUTPUT} && touch ${OUTPUT} && echo NOT BUILDING ${OUTPUT}"); 67 execute("rm -f ${OUTPUT} && touch ${OUTPUT} && echo NOT BUILDING ${OUTPUT}");
68 } 68 }
69} 69}
70 70
71function cppToWinObj() 71function cppToWinObj()
72{ 72{
73 if OBJ_DIR == null then 73 if OBJ_DIR == null then
74 { 74 {
75 return INPUT.regex("\\.cpp$", ".win_o"); 75 return INPUT.regex("\\.cpp$", ".win_o");
76 } 76 }
77 else 77 else
78 { 78 {
79 return OBJ_DIR + "/" + INPUT.fileName().regex("\\.cpp$", ".win_o"); 79 return OBJ_DIR + "/" + INPUT.fileName().regex("\\.cpp$", ".win_o");
80 } 80 }
81 81
82} 82}
83 83
84rule "lib" 84rule "lib"
85{ 85{
86 input "*.win_o"; 86 input "*.win_o";
87 profile "build" 87 profile "build"
88 { 88 {
89 execute("wine C:/MinGW/bin/ar.exe cr ${OUTPUT} ${INPUT}"); 89 execute("wine C:/MinGW/bin/ar.exe cr ${OUTPUT} ${INPUT}");
90 } 90 }
91} 91}
92 92
93rule "wincpp" 93rule "wincpp"
94{ 94{
95 input "*.cpp"; 95 input "*.cpp";
96 output INPUT.cppToWinObj(); 96 output INPUT.cppToWinObj();
97 //requires getMakeDeps("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -M ${INPUT}"); 97 //requires getMakeDeps("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -M ${INPUT}");
98 profile "build" 98 profile "build"
99 { 99 {
100 execute("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++"); 100 execute("wine C:/MinGW/bin/g++.exe ${CXXFLAGS} -c -o ${OUTPUT} ${INPUT}", "g++");
101 } 101 }
102} 102}