diff options
Diffstat (limited to 'mingw.bld')
-rw-r--r-- | mingw.bld | 44 |
1 files changed, 23 insertions, 21 deletions
@@ -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 | ||
19 | target files("src/*.h").replace("src/", "bu/") | 19 | for 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 | } | ||
33 | target 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 | } |
29 | target files("src/compat/*.h").replace("src/", "bu/") | 43 | target ["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 | ||
40 | target "libbu++win.a" | 55 | target "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 | ||
47 | target ["src/process.win_o", "src/lzma.win_o"] | 63 | target ["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 | } | ||
54 | target "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 | } | ||
61 | target "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 | ||