summaryrefslogtreecommitdiff
path: root/project2/Jamfile.jam
blob: af19cee6b9356724ddeb2b52fbda33d34701ad5d (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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
import package ;
import feature : feature ;

alias glibmm : : : :
	<cflags>"`pkg-config --cflags glibmm-2.4`"
	<linkflags>"`pkg-config --libs glibmm-2.4`"
	;

alias libxmlpp : : : :
	<cflags>"`pkg-config --cflags libxml++-2.6`"
	<linkflags>"`pkg-config --libs libxml++-2.6`" ;
alias libxslt : : : :
	<cflags>"`pkg-config --cflags libexslt`"
	<linkflags>"`pkg-config --libs libexslt`" ;

lib dl : : <name>dl ;
lib fcgi : : <name>fcgi ;
lib fcgi++ : : <name>fcgi++ ;
lib boost_regex : : <name>boost_regex ;
lib boost_system : : <name>boost_system ;
lib boost_filesystem : : <name>boost_filesystem ;
lib boost_date_time : : <name>boost_date_time ;
lib boost_program_options : : <name>boost_program_options ;
lib cgicc : : <name>cgicc ;
lib esmtp : : <name>esmtp ;
lib curl : : <name>curl ;
lib osspuuid : : <name>ossp-uuid++ ;

alias p2parts : : : :
	<library>p2url
	<library>p2files
	<library>p2processes
	<library>p2sql
	<library>p2mail
	<library>p2regex
	<library>p2xml
	;

feature uuid : boost ossp : propagated ;
feature odbc : yes no : propagated ;
feature pq : yes no : propagated ;

project
  : requirements
      <variant>debug:<cflags>"-W -Wall -Werror -Wwrite-strings"
      <variant>debug:<linkflags>"-Wl,-z,defs --warn-once"
	;

lib p2uuid :
	uuid.cpp
	:
	<uuid>ossp:<define>OSSP_UUID
	<uuid>boost:<define>BOOST_UUID
	<uuid>ossp:<library>osspuuid
	;

lib p2common :
	appEngine.cpp dataSource.cpp environment.cpp fileStarGlibIoChannel.cpp iHaveParameters.cpp library.cpp
	iterate.cpp paramChecker.cpp presenter.cpp rawView.cpp logger.cpp if.cpp xmlScriptParser.cpp viewHost.cpp
	sourceObject.cpp task.cpp variables.cpp variableConvert.cpp view.cpp xmlObjectLoader.cpp exceptions.cpp
	sessionClearTask.cpp session.cpp sessionSetTask.cpp commonObjects.cpp xmlPresenter.cpp taskHost.cpp checkHost.cpp
	rowView.cpp rowSet.cpp rowUser.cpp rowProcessor.cpp config.cpp fileStrmVarWriter.cpp noOutputExecute.cpp
	transform.cpp transformHtml.cpp transformText.cpp
	../libmisc/buffer.cpp
	../libmisc/misc.cpp
	:
	<include>../libmisc
	<library>libxmlpp
	<library>dl
	<library>boost_system
	<library>boost_filesystem
	<library>boost_date_time
	<library>boost_program_options
	<library>libxslt
	: :
	<include>.
	<include>../libmisc
	<library>boost_system
	<library>boost_program_options
	;

lib p2xml :
	xmlRows.cpp xslRows.cpp
	:
	<include>../libmisc
	<library>libxmlpp
	<library>p2common
	<library>p2url
	<library>libxslt
	;

lib p2processes :
	procRows.cpp
	:
	<include>../libmisc
	<library>libxmlpp
	<library>p2common
	<library>p2files
	;

lib p2files :
	fsRows.cpp
	fileRows.cpp
	streamRows.cpp
	:
	<include>../libmisc
	<library>libxmlpp
	<library>boost_filesystem
	<library>boost_system
	<library>p2common
	;

lib p2regex :
	regexCheck.cpp
	:
	<include>../libmisc
	<library>boost_regex
	<library>libxmlpp
	<library>p2common
	;

lib p2xmlSession :
	sessionContainer.cpp sessionXml.cpp
	:
	<include>../libmisc
	<library>libxmlpp
	<library>p2uuid
	<library>p2common
	;

explicit object sql-modODBC ;
obj sql-modODBC :
	sql-modODBC.cpp :
	<library>../libodbcpp//odbcpp
	<library>libxmlpp
	<include>../libmisc
	: :
	<library>../libodbcpp//odbcpp
	;
	
explicit object sql-modPQ ;
obj sql-modPQ :
	sql-modPQ.cpp :
	<library>../libpqpp//pqpp
	<library>libxmlpp
	<include>../libmisc
	: :
	<library>../libpqpp//pqpp
	;
	
lib p2sql :
	sqlCheck.cpp sqlTask.cpp sqlMergeTask.cpp sqlRows.cpp sqlVariableBinder.cpp tablepatch.cpp rdbmsDataSource.cpp
	../libdbpp//dbpp
	:
	<odbc>yes:<library>sql-modODBC
	<pq>yes:<library>sql-modPQ
	<library>libxmlpp
	<library>p2common
	<include>../libmisc
	;

lib p2url :
	urlRows.cpp
	curlHelper.cpp
	../libmisc/curlsup.cpp
	:
	<library>p2common
	<library>p2files
	<include>../libmisc
	<library>libxmlpp
	<library>curl
	: :
	<library>curl
	;

lib p2mail :
	sendmailTask.cpp
	:
	<include>../libmisc
	<library>libxmlpp
	<library>libxslt
	<library>esmtp
	<library>p2common
	;

lib p2web :
	[ glob cgi/cgi*.cpp ]
	:
	<include>../libmisc
	<library>cgicc
	<library>glibmm
	<library>libxmlpp
	<library>p2common
	<library>p2uuid
	<library>boost_program_options
	<library>boost_regex
	<library>boost_filesystem
	<library>p2xmlSession
	: :
	<library>p2parts
	<library>p2xmlSession
	<library>p2uuid
	<library>cgicc
	<library>p2common
	;

exe p2cgi :
	cgi/p2webCgi.cpp
	:
	<library>p2web
	<include>../libmisc
	;

exe p2fcgi :
	cgi/p2webFCgi.cpp cgi/FCgiIO.cpp
	fcgi++
	fcgi
	:
	<library>p2web
	<include>../libmisc
	;

exe testCgi :
	cgi/testCgi.cpp
	:
	<library>p2web
	<include>../libmisc
	;

exe p2console :
	[ glob console/*.cpp ]
	:
	<library>p2parts
	<library>p2common
	<include>../libmisc
	;

explicit install installp2con installp2cgi installp2fcgi ;
package.install install : : p2console p2cgi p2fcgi ;
package.install installp2con : : p2console ;
package.install installp2cgi : : p2cgi ;
package.install installp2fcgi : : p2fcgi ;