diff options
Diffstat (limited to 'build.conf')
| -rw-r--r-- | build.conf | 11 |
1 files changed, 10 insertions, 1 deletions
| @@ -5,7 +5,7 @@ | |||
| 5 | # This file is part of the libbu++ library and is released under the | 5 | # This file is part of the libbu++ library and is released under the |
| 6 | # terms of the license contained in the file LICENSE. | 6 | # terms of the license contained in the file LICENSE. |
| 7 | 7 | ||
| 8 | default action: check group "lnhdrs", check "libbu++.a" | 8 | default action: check group "lnhdrs", check "libbu++.a", check group "tools" |
| 9 | "tests" action: check group "lnhdrs", check group "tests" | 9 | "tests" action: check group "lnhdrs", check group "tests" |
| 10 | "all" action: check group "lnhdrs", check targets() | 10 | "all" action: check group "lnhdrs", check targets() |
| 11 | 11 | ||
| @@ -45,6 +45,15 @@ filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"): | |||
| 45 | set "LDFLAGS" += "-L. -lbu++", | 45 | set "LDFLAGS" += "-L. -lbu++", |
| 46 | input "src/{target}.cpp" | 46 | input "src/{target}.cpp" |
| 47 | 47 | ||
| 48 | filesIn("src/tools") filter regexp("^src/tools/(.*)\\.cpp$", "{re:1}"): | ||
| 49 | rule "exe", | ||
| 50 | target file, | ||
| 51 | group "tools", | ||
| 52 | requires "libbu++.a", | ||
| 53 | set "CXXFLAGS" += "-I.", | ||
| 54 | set "LDFLAGS" += "-L. -lbu++", | ||
| 55 | input "src/tools/{target}.cpp" | ||
| 56 | |||
| 48 | ["tests/itoqueue1", "tests/itoqueue2", "tests/socketblock", "tests/itoserver", | 57 | ["tests/itoqueue1", "tests/itoqueue2", "tests/socketblock", "tests/itoserver", |
| 49 | "tests/itoheap"]: | 58 | "tests/itoheap"]: |
| 50 | set "LDFLAGS" += "-lpthread" | 59 | set "LDFLAGS" += "-lpthread" |
