diff options
Diffstat (limited to '')
-rw-r--r-- | c++-libbu++/default.bld | 100 |
1 files changed, 50 insertions, 50 deletions
diff --git a/c++-libbu++/default.bld b/c++-libbu++/default.bld index 676c63e..5a09a55 100644 --- a/c++-libbu++/default.bld +++ b/c++-libbu++/default.bld | |||
@@ -3,87 +3,87 @@ execute("mkdir -p tmp"); | |||
3 | 3 | ||
4 | action "default" | 4 | action "default" |
5 | { | 5 | { |
6 | build: [targets("header-links"), "libgats.a", "gatsc"]; | 6 | build: [targets("header-links"), "libgats.a", "gatsc"]; |
7 | } | 7 | } |
8 | 8 | ||
9 | action "all" | 9 | action "all" |
10 | { | 10 | { |
11 | build: [targets("header-links"), "libgats.a", targets("headers"), | 11 | build: [targets("header-links"), "libgats.a", targets("headers"), |
12 | targets()]; | 12 | targets()]; |
13 | } | 13 | } |
14 | 14 | ||
15 | action "gatscon" | 15 | action "gatscon" |
16 | { | 16 | { |
17 | build: [targets("header-links"), "libgats.a", | 17 | build: [targets("header-links"), "libgats.a", |
18 | targets("headers"), "gatscon"]; | 18 | targets("headers"), "gatscon"]; |
19 | } | 19 | } |
20 | 20 | ||
21 | CXXFLAGS += "-ggdb -Wall"; | 21 | CXXFLAGS += "-ggdb -Wall"; |
22 | 22 | ||
23 | target [files("src/*.h").replace("src/", "gats/"), "gats/version.h"] | 23 | target [files("src/*.h").replace("src/", "gats/"), "gats/version.h"] |
24 | { | 24 | { |
25 | tag "header-links"; | 25 | tag "header-links"; |
26 | display "symlink"; | 26 | display "symlink"; |
27 | input OUTPUT.replace("gats/","src/"); | 27 | input OUTPUT.replace("gats/","src/"); |
28 | profile "build" | 28 | profile "build" |
29 | { | 29 | { |
30 | execute("ln -s ../${INPUT} ${OUTPUT}"); | 30 | execute("ln -s ../${INPUT} ${OUTPUT}"); |
31 | } | 31 | } |
32 | } | 32 | } |
33 | 33 | ||
34 | target "src/version.h" | 34 | target "src/version.h" |
35 | { | 35 | { |
36 | input ".svn"; | 36 | input ".svn"; |
37 | display "svnver"; | 37 | display "svnver"; |
38 | profile "build" | 38 | profile "build" |
39 | { | 39 | { |
40 | execute("echo Revision number: `svnversion`; echo \\#ifndef LIBGATS_VC_ID > ${OUTPUT}; echo \\#define LIBGATS_VC_ID \\\"`svnversion`\\\" >> ${OUTPUT}; echo \\#endif >> ${OUTPUT}"); | 40 | execute("echo Revision number: `svnversion`; echo \\#ifndef LIBGATS_VC_ID > ${OUTPUT}; echo \\#define LIBGATS_VC_ID \\\"`svnversion`\\\" >> ${OUTPUT}; echo \\#endif >> ${OUTPUT}"); |
41 | } | 41 | } |
42 | } | 42 | } |
43 | 43 | ||
44 | target "libgats.a" | 44 | target "libgats.a" |
45 | { | 45 | { |
46 | rule "lib"; | 46 | rule "lib"; |
47 | input files("src/*.cpp"); | 47 | input files("src/*.cpp"); |
48 | CXXFLAGS += "-I. -Ilibbu++ -fPIC"; | 48 | CXXFLAGS += "-I. -Ilibbu++ -fPIC"; |
49 | } | 49 | } |
50 | 50 | ||
51 | target "gatsc" | 51 | target "gatsc" |
52 | { | 52 | { |
53 | rule "exe"; | 53 | rule "exe"; |
54 | input files("src/gatsc/*.cpp"); | 54 | input files("src/gatsc/*.cpp"); |
55 | CXXFLAGS += "-I. -Ilibbu++"; | 55 | CXXFLAGS += "-I. -Ilibbu++"; |
56 | LDFLAGS += "-L. -lgats -lbu++"; | 56 | LDFLAGS += "-L. -lgats -lbu++"; |
57 | } | 57 | } |
58 | 58 | ||
59 | target files("src/tests/*.cpp").replace("src/","").replace(".cpp","") | 59 | target files("src/tests/*.cpp").replace("src/","").replace(".cpp","") |
60 | { | 60 | { |
61 | input "src/${OUTPUT}.cpp"; | 61 | input "src/${OUTPUT}.cpp"; |
62 | rule "exe"; | 62 | rule "exe"; |
63 | tag ["tests", "general tests"]; | 63 | tag ["tests", "general tests"]; |
64 | CXXFLAGS += "-I. -Ilibbu++"; | 64 | CXXFLAGS += "-I. -Ilibbu++"; |
65 | LDFLAGS += "-L. -lgats -Llibbu++ -lbu++"; | 65 | LDFLAGS += "-L. -lgats -Llibbu++ -lbu++"; |
66 | } | 66 | } |
67 | 67 | ||
68 | target files("src/unit/*.unit").replace("src/","").replace(".unit","") | 68 | target files("src/unit/*.unit").replace("src/","").replace(".unit","") |
69 | { | 69 | { |
70 | input "src/${OUTPUT}.unit"; | 70 | input "src/${OUTPUT}.unit"; |
71 | rule "exe"; | 71 | rule "exe"; |
72 | requires "libbu++.a"; | 72 | requires "libbu++.a"; |
73 | tag ["tests", "unit tests"]; | 73 | tag ["tests", "unit tests"]; |
74 | CXXFLAGS += "-I."; | 74 | CXXFLAGS += "-I."; |
75 | LDFLAGS += "-L. -lgats -lbu++"; | 75 | LDFLAGS += "-L. -lgats -lbu++"; |
76 | } | 76 | } |
77 | 77 | ||
78 | rule "unit" | 78 | rule "unit" |
79 | { | 79 | { |
80 | input "*.unit"; | 80 | input "*.unit"; |
81 | output INPUT.replace(".unit", ".cpp"); | 81 | output INPUT.replace(".unit", ".cpp"); |
82 | 82 | ||
83 | profile "build" | 83 | profile "build" |
84 | { | 84 | { |
85 | execute("../libbu++/mkunit \"${INPUT}\" \"${OUTPUT}\""); | 85 | execute("../libbu++/mkunit \"${INPUT}\" \"${OUTPUT}\""); |
86 | } | 86 | } |
87 | } | 87 | } |
88 | 88 | ||
89 | include "qt4.bld"; | 89 | include "qt4.bld"; |
@@ -95,15 +95,15 @@ UI_DIR = "tmp"; | |||
95 | 95 | ||
96 | target "gatscon" | 96 | target "gatscon" |
97 | { | 97 | { |
98 | input files("src/gatscon/*.h", "src/gatscon/*.cpp", "src/gatscon/*.ui"); | 98 | input files("src/gatscon/*.h", "src/gatscon/*.cpp", "src/gatscon/*.ui"); |
99 | rule "exe"; | 99 | rule "exe"; |
100 | 100 | ||
101 | CXXFLAGS += qt_getCXXFLAGS(); | 101 | CXXFLAGS += qt_getCXXFLAGS(); |
102 | LDFLAGS += qt_getLDFLAGS(); | 102 | LDFLAGS += qt_getLDFLAGS(); |
103 | 103 | ||
104 | CXXFLAGS += "-Isrc/gatscon"; | 104 | CXXFLAGS += "-Isrc/gatscon"; |
105 | 105 | ||
106 | CXXFLAGS += "-I. -Ilibbu++ -Itmp -Ilibzamui/src"; | 106 | CXXFLAGS += "-I. -Ilibbu++ -Itmp -Ilibzamui/src"; |
107 | LDFLAGS += "-L. -lgats -Llibbu++ -lbu++ -Llibzamui -lzamui"; | 107 | LDFLAGS += "-L. -lgats -Llibbu++ -lbu++ -Llibzamui -lzamui"; |
108 | } | 108 | } |
109 | 109 | ||