aboutsummaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-04-06 14:08:51 +0000
committerMike Buland <eichlan@xagasoft.com>2011-04-06 14:08:51 +0000
commitcd3a919b88c401fd86b1f4c853ee60898f2cb24a (patch)
treea821113f98187df8b87bc2c2f2776233e86bd50e /default.bld
parentb0a5b7828239c8dd81fea3a13a6dffb1bfa88321 (diff)
downloadlibgats-cd3a919b88c401fd86b1f4c853ee60898f2cb24a.tar.gz
libgats-cd3a919b88c401fd86b1f4c853ee60898f2cb24a.tar.bz2
libgats-cd3a919b88c401fd86b1f4c853ee60898f2cb24a.tar.xz
libgats-cd3a919b88c401fd86b1f4c853ee60898f2cb24a.zip
libgats now generates a really basic version.h
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld12
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
13CXXFLAGS += "-ggdb -Wall"; 13CXXFLAGS += "-ggdb -Wall";
14 14
15target files("src/*.h").replace("src/", "gats/") 15target [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
26target "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
26target "libgats.a" 36target "libgats.a"
27{ 37{
28 rule "lib"; 38 rule "lib";