diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2011-04-06 14:08:51 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2011-04-06 14:08:51 +0000 |
| commit | cd3a919b88c401fd86b1f4c853ee60898f2cb24a (patch) | |
| tree | a821113f98187df8b87bc2c2f2776233e86bd50e | |
| parent | b0a5b7828239c8dd81fea3a13a6dffb1bfa88321 (diff) | |
| download | libgats-cd3a919b88c401fd86b1f4c853ee60898f2cb24a.tar.gz libgats-cd3a919b88c401fd86b1f4c853ee60898f2cb24a.tar.bz2 libgats-cd3a919b88c401fd86b1f4c853ee60898f2cb24a.tar.xz libgats-cd3a919b88c401fd86b1f4c853ee60898f2cb24a.zip | |
libgats now generates a really basic version.h
| -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"; |
