diff options
Diffstat (limited to 'build.conf')
-rw-r--r-- | build.conf | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -13,7 +13,7 @@ set "CXXFLAGS" += "-ggdb" | |||
13 | set "CXXFLAGS" += "-Isrc -fPIC", | 13 | set "CXXFLAGS" += "-Isrc -fPIC", |
14 | input filesIn("src") filter regexp("^.*\\.cpp$") | 14 | input filesIn("src") filter regexp("^.*\\.cpp$") |
15 | 15 | ||
16 | directoriesIn("src/test","tests/"): | 16 | directoriesIn("src/tests","tests/"): |
17 | rule "exe", | 17 | rule "exe", |
18 | target file, | 18 | target file, |
19 | requires "libbu++.a", | 19 | requires "libbu++.a", |
@@ -21,6 +21,14 @@ directoriesIn("src/test","tests/"): | |||
21 | set "LDFLAGS" += "-L. -lbu++", | 21 | set "LDFLAGS" += "-L. -lbu++", |
22 | input filesIn("{fulldir}") filter regexp("^.*\\.cpp$") | 22 | input filesIn("{fulldir}") filter regexp("^.*\\.cpp$") |
23 | 23 | ||
24 | filesIn("src/tests") filter regexp("^src/tests/(.*)\\.cpp$", "tests/{re:1}"): | ||
25 | rule "exe", | ||
26 | target file, | ||
27 | requires "libbu++.a", | ||
28 | set "CXXFLAGS" += "-Isrc", | ||
29 | set "LDFLAGS" += "-L. -lbu++", | ||
30 | input "src/{target}.cpp" | ||
31 | |||
24 | "tests/plugin": set "LDFLAGS" += "-ldl" | 32 | "tests/plugin": set "LDFLAGS" += "-ldl" |
25 | 33 | ||
26 | rule "exe": | 34 | rule "exe": |