diff options
Diffstat (limited to '')
-rw-r--r-- | default.bld | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/default.bld b/default.bld index d78fbd3..de34acf 100644 --- a/default.bld +++ b/default.bld | |||
@@ -12,7 +12,7 @@ action "all" | |||
12 | 12 | ||
13 | CXXFLAGS += "-ggdb -Wall"; | 13 | CXXFLAGS += "-ggdb -Wall"; |
14 | 14 | ||
15 | target files("src/*.h").replace("src/", "gats/") | 15 | target [files("src/*.h").replace("src/", "gats/"), "gats/version.h"] |
16 | { | 16 | { |
17 | tag "header-links"; | 17 | tag "header-links"; |
18 | display "symlink"; | 18 | display "symlink"; |
@@ -23,6 +23,16 @@ target files("src/*.h").replace("src/", "gats/") | |||
23 | } | 23 | } |
24 | } | 24 | } |
25 | 25 | ||
26 | target "src/version.h" | ||
27 | { | ||
28 | input ".svn"; | ||
29 | display "svnver"; | ||
30 | profile "build" | ||
31 | { | ||
32 | execute("echo Revision number: `svnversion`; echo \\#ifndef LIBGATS_VC_ID > ${OUTPUT}; echo \\#define LIBGATS_VC_ID \\\"`svnversion`\\\" >> ${OUTPUT}; echo \\#endif >> ${OUTPUT}"); | ||
33 | } | ||
34 | } | ||
35 | |||
26 | target "libgats.a" | 36 | target "libgats.a" |
27 | { | 37 | { |
28 | rule "lib"; | 38 | rule "lib"; |