summaryrefslogtreecommitdiff
blob: 040fb259bc7dda1d471cdbc58b51b9346067d6f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
diff --git a/src/concurrent/wscript b/src/concurrent/wscript
index 5aeb5ab..8700d68 100644
--- a/src/concurrent/wscript
+++ b/src/concurrent/wscript
@@ -19,6 +19,7 @@ def build(bld):
     source = 'thread.cpp mutex.cpp rwmutex.cpp condition.cpp internal.cpp',
     target = 'pficommon_concurrent',
     includes = '.',
+    vnum = bld.env['VERSION'],
     use = 'pficommon_system PTHREAD')
 
   bld.program(
diff --git a/src/data/wscript b/src/data/wscript
index e99c7c3..df47caf 100644
--- a/src/data/wscript
+++ b/src/data/wscript
@@ -61,6 +61,7 @@ def build(bld):
       ],
     target = 'pficommon_data',
     includes = incdirs,
+    vnum = bld.env['VERSION'],
     use = 'pficommon_system')
 
   def t(src):
diff --git a/src/database/mysql/wscript b/src/database/mysql/wscript
index 79d5a23..5407091 100644
--- a/src/database/mysql/wscript
+++ b/src/database/mysql/wscript
@@ -7,4 +7,5 @@ def build(bld):
     source = 'connection.cpp statement.cpp value.cpp',
     target = 'pficommon_database_mysql',
     includes = '. ..',
+    vnum = bld.env['VERSION'],
     use = 'pficommon_concurrent MYSQL')
diff --git a/src/database/postgresql/wscript b/src/database/postgresql/wscript
index 9b834f8..5040a69 100644
--- a/src/database/postgresql/wscript
+++ b/src/database/postgresql/wscript
@@ -7,4 +7,5 @@ def build(bld):
     source = 'connection.cpp statement.cpp result.cpp value.cpp',
     target = 'pficommon_database_postgresql',
     includes = '. ..',
+    vnum = bld.env['VERSION'],
     use = 'PGSQL')
diff --git a/src/database/wscript b/src/database/wscript
index b491d4f..3916a7d 100644
--- a/src/database/wscript
+++ b/src/database/wscript
@@ -44,6 +44,7 @@ def build(bld):
   t = bld.shlib(
     source = '',
     target = 'pficommon_database',
+    vnum = bld.env['VERSION'],
     use = [])
   
   if bld.env.BUILD_MYSQL:
diff --git a/src/lang/wscript b/src/lang/wscript
index e5538d9..e0ad364 100644
--- a/src/lang/wscript
+++ b/src/lang/wscript
@@ -20,6 +20,7 @@ def build(bld):
 
   bld.shlib(
     source = 'empty.cpp',
+    vnum = bld.env['VERSION'],
     target = 'pficommon_lang')
 
   bld.program(
diff --git a/src/math/wscript b/src/math/wscript
index 8e8e271..f855b3a 100644
--- a/src/math/wscript
+++ b/src/math/wscript
@@ -14,6 +14,7 @@ def build(bld):
   bld.shlib(
     source = 'random/mersenne_twister.cpp',
     target = 'pficommon_math',
+    vnum = bld.env['VERSION'],
     includes = '.')
   
   def t(src):
diff --git a/src/network/wscript b/src/network/wscript
index 4b0873c..d5a9aee 100644
--- a/src/network/wscript
+++ b/src/network/wscript
@@ -56,11 +56,13 @@ def build(bld):
     source = 'socket.cpp ipv4.cpp dns.cpp uri.cpp',
     target = 'pficommon_network_base',
     includes = '.',
+    vnum = bld.env['VERSION'],
     use = 'pficommon_concurrent')
   
   pfin = bld.shlib(
     source = '',
     target = 'pficommon_network',
+    vnum = bld.env['VERSION'],
     use = [
       'pficommon_network_base',
       'pficommon_network_http',
diff --git a/src/system/wscript b/src/system/wscript
index 4068967..a6fc70c 100644
--- a/src/system/wscript
+++ b/src/system/wscript
@@ -21,6 +21,7 @@ def build(bld):
       'sysstat.cpp',
       'mmapper.cpp'],
     target = 'pficommon_system',
+    vnum = bld.env['VERSION'],
     includes = '.')
 
   bld.program(
diff --git a/src/text/wscript b/src/text/wscript
index 2cb54df..e18310c 100644
--- a/src/text/wscript
+++ b/src/text/wscript
@@ -16,6 +16,7 @@ def build(bld):
     source = 'xhtml.cpp csv.cpp json/parser.cpp',
     target = 'pficommon_text',
     includes = '. json',
+    vnum = bld.env['VERSION'],
     use = 'pficommon_data pficommon_system')
   
   bld.program(
diff --git a/src/util/wscript b/src/util/wscript
index c971da4..7ed427f 100644
--- a/src/util/wscript
+++ b/src/util/wscript
@@ -8,6 +8,7 @@ def build(bld):
   
   bld.shlib(
     source = '',
+    vnum = bld.env['VERSION'],
     target = 'pficommon_util')
   
   bld(features = 'cxx cprogram gtest',
diff --git a/src/visualization/wscript b/src/visualization/wscript
index bf0500a..04469a1 100644
--- a/src/visualization/wscript
+++ b/src/visualization/wscript
@@ -27,6 +27,7 @@ def build(bld):
   v = bld.shlib(
     source = ['empty.cpp'],
     target = 'pficommon_visualization',
+    vnum = bld.env['VERSION'],
     use =  [])
   
   bld.program(
diff --git a/src/wscript b/src/wscript
index 8dfd9e8..4af7585 100644
--- a/src/wscript
+++ b/src/wscript
@@ -26,6 +26,7 @@ def build(bld):
   b = bld.shlib(
     source = 'empty.cpp',
     target = 'pficommon',
+    vnum = bld.env['VERSION'],
     use = [
       'pficommon_concurrent',
       'pficommon_data',
diff --git a/src/network/cgi/wscript b/src/network/cgi/wscript
index 29c44fa..1863394 100644
--- a/src/network/cgi/wscript
+++ b/src/network/cgi/wscript
@@ -47,6 +47,7 @@ def build(bld):
     source = 'base.cpp xhtml_cgi.cpp xhtml_builder.cpp inserter.cpp cgi.cpp server.cpp util.cpp',
     target = 'pficommon_network_cgi',
     includes = '. ..',
+    vnum = bld.env['VERSION'],
     use = 'pficommon_text pficommon_concurrent pficommon_network_http PTHREAD')
 
   if bld.env.BUILD_FCGI:
diff --git a/src/network/http/wscript b/src/network/http/wscript
index 7e2bbbe..dbfe480 100644
--- a/src/network/http/wscript
+++ b/src/network/http/wscript
@@ -14,4 +14,5 @@ def build(bld):
     source = 'base.cpp',
     target = 'pficommon_network_http',
     includes = '. ..',
+    vnum = bld.env['VERSION'],
     use = 'pficommon_network_base')
diff --git a/src/network/mprpc/wscript b/src/network/mprpc/wscript
index 940bdd4..0e093f6 100644
--- a/src/network/mprpc/wscript
+++ b/src/network/mprpc/wscript
@@ -21,4 +21,5 @@ def build(bld):
       'socket.cpp'
       ],
     target = 'pficommon_network_mprpc',
+    vnum = bld.env['VERSION'],
     use = 'pficommon_concurrent pficommon_network_base MSGPACK')
diff --git a/src/network/rpc/wscript b/src/network/rpc/wscript
index 74c006c..46121d6 100644
--- a/src/network/rpc/wscript
+++ b/src/network/rpc/wscript
@@ -17,4 +17,5 @@ def build(bld):
     source = 'base.cpp',
     target = 'pficommon_network_rpc',
     includes = '. ..',
+    vnum = bld.env['VERSION'],
     use = 'pficommon_network_base pficommon_concurrent pficommon_system')