summaryrefslogtreecommitdiff
path: root/default.bld
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-04-06 14:14:01 +0000
committerMike Buland <eichlan@xagasoft.com>2011-04-06 14:14:01 +0000
commit9f440fb38b36f2d602710695dd53ad9c80e84c2c (patch)
treeb5b1fb4dec3fd4433c564f8b69bc155782e2b00b /default.bld
parent5fdf49f609a658161f482b406590531d4941ac46 (diff)
downloadlibbu++-9f440fb38b36f2d602710695dd53ad9c80e84c2c.tar.gz
libbu++-9f440fb38b36f2d602710695dd53ad9c80e84c2c.tar.bz2
libbu++-9f440fb38b36f2d602710695dd53ad9c80e84c2c.tar.xz
libbu++-9f440fb38b36f2d602710695dd53ad9c80e84c2c.zip
Libbu++ generates it's own system specific config file as well as a fancy
version header file all programs can now use to determine which version, api version, and svn revision of libbu++ they're linking against. It doesn't quite work for windows yet, but it will, eventually.
Diffstat (limited to 'default.bld')
-rw-r--r--default.bld23
1 files changed, 8 insertions, 15 deletions
diff --git a/default.bld b/default.bld
index 1aca56a..9391c68 100644
--- a/default.bld
+++ b/default.bld
@@ -34,28 +34,20 @@ action "unit"
34{ 34{
35 build: targets("unit tests"); 35 build: targets("unit tests");
36} 36}
37/* 37
38target "src/autoconfig.h" 38target ["src/autoconfig.h", "src/version.h"]
39{ 39{
40 input "autoconfig"; 40 input "autoconfig";
41 display "autoconfig"; 41 display "autoconfig";
42 profile "build" 42 profile "build"
43 { 43 {
44 execute("./autoconfig 2>src/autoconfig.h"); 44 execute("./autoconfig ${OUTPUT}");
45 } 45 }
46} 46}
47 47
48target "bu/autoconfig.h" 48target "src/version.h"
49{ 49{
50 tag "header-links"; 50 input ".svn";
51 display "symlink";
52 input "src/autoconfig.h";
53 profile "build"
54 {
55 execute("echo ${INPUT}");
56 execute("echo ${OUTPUT}");
57 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}");
58 }
59} 51}
60 52
61target "autoconfig" 53target "autoconfig"
@@ -63,9 +55,9 @@ target "autoconfig"
63 rule "exe"; 55 rule "exe";
64 input "autoconfig.cpp"; 56 input "autoconfig.cpp";
65} 57}
66*/
67 58
68target files("src/*.h").replace("src/", "bu/") 59target [files("src/*.h").replace("src/", "bu/"), "bu/autoconfig.h",
60 "bu/version.h"]
69{ 61{
70 tag "header-links"; 62 tag "header-links";
71 display "symlink"; 63 display "symlink";
@@ -75,6 +67,7 @@ target files("src/*.h").replace("src/", "bu/")
75 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}"); 67 execute("mkdir -p $(dirname ${OUTPUT}); ln -s ../${INPUT} ${OUTPUT}");
76 } 68 }
77} 69}
70
78target files("src/compat/*.h").replace("src/", "bu/") 71target files("src/compat/*.h").replace("src/", "bu/")
79{ 72{
80 tag "header-links"; 73 tag "header-links";