diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-01-20 18:09:04 +0000 |
| commit | 393f1b414746a7f1977971dd7659dd2b47092b11 (patch) | |
| tree | 81d0ca1ee70ab86a7d79c1991abe5c387b655fb2 /bu | |
| parent | c259f95bd0e58b247940a339bb9b4b401b4e9438 (diff) | |
| parent | 7e25a863325dc3e9762397e700030969e093b087 (diff) | |
| download | libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.gz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.bz2 libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.tar.xz libbu++-393f1b414746a7f1977971dd7659dd2b47092b11.zip | |
Wow! Merged the branch, streams are updated, and there's no more FString, run
the fixstrings.sh script in the support directory to (hopefully) automatically
update your projects.
Diffstat (limited to '')
| -rw-r--r-- | build.conf | 116 | ||||
| -rw-r--r-- | buildMinGW.conf | 47 |
2 files changed, 0 insertions, 163 deletions
diff --git a/build.conf b/build.conf deleted file mode 100644 index b29809d..0000000 --- a/build.conf +++ /dev/null | |||
| @@ -1,116 +0,0 @@ | |||
| 1 | # Build config file for libbu++ | ||
| 2 | # | ||
| 3 | # Copyright (C) 2007-2008 Xagasoft, All rights reserved. | ||
| 4 | # | ||
| 5 | # This file is part of the libbu++ library and is released under the | ||
| 6 | # terms of the license contained in the file LICENSE. | ||
| 7 | |||
| 8 | default action: check group "lnhdrs", check "libbu++.a", check group "tools" | ||
| 9 | "tests" action: check group "lnhdrs", check group "tests" | ||
| 10 | "all" action: check group "lnhdrs", check targets() | ||
| 11 | "optparser" action: check "tests/optparser" | ||
| 12 | |||
| 13 | set "CXXFLAGS" += "-ggdb -W -Wall" | ||
| 14 | #set "CXXFLAGS" += "-O2 -Wall" | ||
| 15 | |||
| 16 | # set "CXXFLAGS" += "-pg" | ||
| 17 | # set "LDFLAGS" += "-pg" | ||
| 18 | |||
| 19 | filesIn("src") filter regexp("^src/(.*)\\.h$", "bu/{re:1}.h"): | ||
| 20 | rule "hln", | ||
| 21 | group "lnhdrs", | ||
| 22 | target file, | ||
| 23 | input "src/{re:1}.h" | ||
| 24 | |||
| 25 | "libbu++.a": | ||
| 26 | rule "lib", | ||
| 27 | target file, | ||
| 28 | set "CXXFLAGS" += "-I. -fPIC", | ||
| 29 | input filesIn("src") filter regexp("^.*\\.cpp$") | ||
| 30 | |||
| 31 | #"libbu++.so": | ||
| 32 | # rule "so", | ||
| 33 | # target file, | ||
| 34 | # set "CXXFLAGS" += "-I. -fPIC", | ||
| 35 | # set "LDFLAGS" += "-lpthread -lbz2", | ||
| 36 | # input filesIn("src") filter regexp("^.*\\.cpp$") | ||
| 37 | |||
| 38 | |||
| 39 | directoriesIn("src/tests","tests/"): | ||
| 40 | rule "exe", | ||
| 41 | target file, | ||
| 42 | group "tests", | ||
| 43 | requires "libbu++.a", | ||
| 44 | set "CXXFLAGS" += "-I.", | ||
| 45 | set "LDFLAGS" += "-L. -lbu++", | ||
| 46 | input filesIn("{fulldir}") filter regexp("^.*\\.cpp$") | ||
| 47 | |||
| 48 | filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"): | ||
| 49 | rule "exe", | ||
| 50 | target file, | ||
| 51 | group "tests", | ||
| 52 | requires "libbu++.a", | ||
| 53 | set "CXXFLAGS" += "-I.", | ||
| 54 | set "LDFLAGS" += "-L. -lbu++", | ||
| 55 | input "src/{target}.cpp" | ||
| 56 | |||
| 57 | filesIn("src/tools") filter regexp("^src/tools/(.*)\\.cpp$", "{re:1}"): | ||
| 58 | rule "exe", | ||
| 59 | target file, | ||
| 60 | group "tools", | ||
| 61 | requires "libbu++.a", | ||
| 62 | set "CXXFLAGS" += "-I.", | ||
| 63 | set "LDFLAGS" += "-L. -lbu++", | ||
| 64 | input "src/tools/{target}.cpp" | ||
| 65 | |||
| 66 | ["tests/itoqueue1", "tests/itoqueue2", "tests/socketblock", "tests/itoserver", | ||
| 67 | "tests/itoheap"]: | ||
| 68 | set "LDFLAGS" += "-lpthread" | ||
| 69 | |||
| 70 | filesIn("src/unit") filter regexp("^src/unit/(.*)\\.unit$", "unit/{re:1}"): | ||
| 71 | rule "exe", | ||
| 72 | target file, | ||
| 73 | group "tests", | ||
| 74 | group "unit", | ||
| 75 | requires "libbu++.a", | ||
| 76 | set "CXXFLAGS" += "-I.", | ||
| 77 | set "LDFLAGS" += "-L. -lbu++", | ||
| 78 | input "src/{target}.unit" | ||
| 79 | |||
| 80 | "tests/plugin": set "LDFLAGS" += "-ldl" | ||
| 81 | |||
| 82 | "tests/bzip2": set "LDFLAGS" += "-lbz2" | ||
| 83 | |||
| 84 | rule "exe": | ||
| 85 | matches regexp("(.*)\\.o$"), | ||
| 86 | aggregate toString(" "), | ||
| 87 | perform command("g++ -o {target} {match} {LDFLAGS}") | ||
| 88 | |||
| 89 | rule "lib": | ||
| 90 | matches regexp("(.*)\\.o$"), | ||
| 91 | aggregate toString(" "), | ||
| 92 | perform command("ar cr {target} {match}") | ||
| 93 | |||
| 94 | rule "so": | ||
| 95 | matches regexp("(.*)\\.o$"), | ||
| 96 | aggregate toString(" "), | ||
| 97 | perform command("g++ -shared -o {target} {match} {LDFLAGS}") | ||
| 98 | # perform command("ld -G -o {target} {match}") | ||
| 99 | |||
| 100 | rule "cpp": | ||
| 101 | matches regexp("(.*)\\.cpp$"), | ||
| 102 | produces "{re:1}.o", | ||
| 103 | requires commandToList("g++ -M {CXXFLAGS} {match}", "make"), | ||
| 104 | perform command("g++ {CXXFLAGS} -c -o {target} {match}") | ||
| 105 | |||
| 106 | rule "unit": | ||
| 107 | matches regexp("(.*)\\.unit$"), | ||
| 108 | produces "{re:1}.cpp", | ||
| 109 | requires "mkunit.sh", | ||
| 110 | perform command("./mkunit.sh \"{match}\" \"{target}\"") | ||
| 111 | |||
| 112 | rule "hln": | ||
| 113 | matches regexp("src/(.*)\\.h"), | ||
| 114 | produces "bu/{re:1}.h", | ||
| 115 | perform command("ln -s ../src/{re:1}.h {target}") | ||
| 116 | |||
diff --git a/buildMinGW.conf b/buildMinGW.conf deleted file mode 100644 index faf1088..0000000 --- a/buildMinGW.conf +++ /dev/null | |||
| @@ -1,47 +0,0 @@ | |||
| 1 | # Build config file for libbu++ | ||
| 2 | # | ||
| 3 | # Copyright (C) 2007-2008 Xagasoft, All rights reserved. | ||
| 4 | # | ||
| 5 | # This file is part of the libbu++ library and is released under the | ||
| 6 | # terms of the license contained in the file LICENSE. | ||
| 7 | |||
| 8 | default action: check group "lnhdrs", check "libbu++win.a" | ||
| 9 | "tests" action: check group "lnhdrs", check group "tests" | ||
| 10 | "all" action: check group "lnhdrs", check targets() | ||
| 11 | |||
| 12 | set "CXXFLAGS" += "-ggdb -Wall" | ||
| 13 | |||
| 14 | filesIn("src") filter regexp("^src/(.*)\\.h$", "bu/{re:1}.h"): | ||
| 15 | rule "hln", | ||
| 16 | group "lnhdrs", | ||
| 17 | target file, | ||
| 18 | input "src/{re:1}.h" | ||
| 19 | |||
| 20 | "libbu++win.a": | ||
| 21 | rule "lib", | ||
| 22 | target file, | ||
| 23 | set "CXXFLAGS" += "-I. -Isupport/windows", | ||
| 24 | #input filesIn("src") filter regexp("^.*\\.cpp$") | ||
| 25 | input ["src/array.cpp", "src/list.cpp", "src/exceptionbase.cpp", "src/fbasicstring.cpp", "src/fstring.cpp", "src/file.cpp", "src/set.cpp", "src/hash.cpp", "src/sptr.cpp", "src/tafnode.cpp", "src/tafreader.cpp", "src/tafwriter.cpp", "src/tafgroup.cpp", "src/tafproperty.cpp", "src/tafcomment.cpp", "src/stdstream.cpp", "src/stream.cpp", "src/archive.cpp", "src/archival.cpp", "src/socket.cpp", "src/serversocket.cpp", "src/unitsuite.cpp", "src/win32_compatibility.cpp", "src/membuf.cpp", "src/formatter.cpp", "src/sio.cpp", "src/md5.cpp", "src/cryptohash.cpp", "src/filter.cpp", "src/bzip2.cpp", "src/base64.cpp", "src/minimacro.cpp", "src/formula.cpp", "src/util.cpp", "src/archivebase.cpp", "src/queue.cpp"] | ||
| 26 | |||
| 27 | rule "exe": | ||
| 28 | matches regexp("(.*)\\.win_o$"), | ||
| 29 | aggregate toString(" "), | ||
| 30 | perform command("wine c:/MinGW/bin/mingw32-g++.exe -o {target} {match} {LDFLAGS}") | ||
| 31 | |||
| 32 | rule "lib": | ||
| 33 | matches regexp("(.*)\\.win_o$"), | ||
| 34 | aggregate toString(" "), | ||
| 35 | perform command("wine c:/MinGW/bin/ar.exe cr {target} {match}") | ||
| 36 | |||
| 37 | rule "cpp": | ||
| 38 | matches regexp("(.*)\\.cpp$"), | ||
| 39 | produces "{re:1}.win_o", | ||
| 40 | requires commandToList("wine c:/MinGW/bin/mingw32-g++.exe -M {CXXFLAGS} {match}", "make"), | ||
| 41 | perform command("wine c:/MinGW/bin/mingw32-g++.exe {CXXFLAGS} -c -o {target} {match}") | ||
| 42 | |||
| 43 | rule "hln": | ||
| 44 | matches regexp("src/(.*)\\.h"), | ||
| 45 | produces "bu/{re:1}.h", | ||
| 46 | perform command("ln -s ../src/{re:1}.h {target}") | ||
| 47 | |||
