~ubuntu-branches/ubuntu/utopic/critcl/utopic

« back to all changes in this revision

Viewing changes to doc/include/aoptions.inc

  • Committer: Package Import Robot
  • Author(s): Andrew Shadura
  • Date: 2013-05-11 00:08:06 UTC
  • Revision ID: package-import@ubuntu.com-20130511000806-7hq1zc3fnn0gat79
Tags: upstream-3.1.9
ImportĀ upstreamĀ versionĀ 3.1.9

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
The following options are understood
 
3
 
 
4
[list_begin options]
 
5
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
6
[opt_def -v]
 
7
[opt_def --version]
 
8
 
 
9
These options cause critcl to print its version to [const stdout] and
 
10
then exit.
 
11
 
 
12
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
13
[opt_def -I path]
 
14
 
 
15
This option specifies an additional global include path to use during
 
16
compilation of [file .critcl] files. All values are used if this is
 
17
specified multiple times.
 
18
 
 
19
[para] This option is irrelevant when generating a TEA package (see
 
20
option [option -tea] below).
 
21
 
 
22
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
23
[opt_def -L path]
 
24
 
 
25
This option specifies an additional global library searh path to use
 
26
during linking of [file .critcl] files. All values are used if this is
 
27
specified multiple times.
 
28
 
 
29
[para] This option is irrelevant when generating a TEA package (see
 
30
option [option -tea] below).
 
31
 
 
32
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
33
[opt_def -cache path]
 
34
 
 
35
This option specifies the path to the directory to use as the result
 
36
cache. If not specified it defaults to [file ~/.critcl/<platform>],
 
37
or, when generating a package (see option [option -pkg] below), to
 
38
[file ~/.critcl/<pid>.<epoch>],
 
39
 
 
40
When specified multiple times the last value is used.
 
41
 
 
42
[para] This option is irrelevant when generating a TEA package (see
 
43
option [option -tea] below).
 
44
 
 
45
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
46
[opt_def -clean]
 
47
 
 
48
When specified the result cache is emptied, i.e. all files and
 
49
directories found inside are deleted) before compilation begins.
 
50
 
 
51
[para] This option is irrelevant when generating a package (see option
 
52
[option -pkg] below) because this mode starts out with a unique and
 
53
empty result cache.
 
54
 
 
55
[para] This option is irrelevant when generating a TEA package (see
 
56
option [option -tea] below).
 
57
 
 
58
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
59
[opt_def -config path]
 
60
 
 
61
This option specifies the path to a custom configuration file,
 
62
allowing the user to use their own target specifications. If not
 
63
specified a hardwired default configuration embedded in the system
 
64
core is used instead.
 
65
 
 
66
When specified multiple times the last value is used.
 
67
 
 
68
[para] This option is irrelevant when generating a TEA package (see
 
69
option [option -tea] below).
 
70
 
 
71
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
72
[opt_def -debug mode]
 
73
 
 
74
This option activates compilation with debugging. It accepts the modes
 
75
below.
 
76
 
 
77
When specified multiple times the combination of all modes is used.
 
78
 
 
79
[para] This option is irrelevant when generating a TEA package (see
 
80
option [option -tea] below).
 
81
 
 
82
[list_begin definitions]
 
83
[def [const memory]]
 
84
 
 
85
This mode activates memory debugging of allocations made through the
 
86
Tcl core.
 
87
 
 
88
[def [const symbols]]
 
89
 
 
90
This mode activates building of all [file .c] files with debugging
 
91
symbols.
 
92
 
 
93
[def [const all]]
 
94
 
 
95
This mode activates both [const memory] and [const symbols].
 
96
 
 
97
[list_end]
 
98
 
 
99
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
100
[opt_def -disable name]
 
101
 
 
102
This option sets the value of the custom build configuration option
 
103
[arg name] to [const false]. It is equivalent to "-with-[arg name] 0".
 
104
 
 
105
[para] The information is validated only if one of the [file .critcl]
 
106
input files actually defines and uses a custom build configuration
 
107
option with that [arg name].
 
108
 
 
109
[para] This option is irrelevant when generating a TEA package (see
 
110
option [option -tea] below).
 
111
 
 
112
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
113
[opt_def -enable name]
 
114
 
 
115
This option sets the value of the custom build configuration option
 
116
[arg name] to [const true]. It is equivalent to "-with-[arg name] 1".
 
117
 
 
118
[para] The information is validated only if one of the [file .critcl]
 
119
input files actually defines and uses a custom build configuration
 
120
option with that [arg name].
 
121
 
 
122
[para] This option is irrelevant when generating a TEA package (see
 
123
option [option -tea] below).
 
124
 
 
125
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
126
[opt_def -force]
 
127
 
 
128
When specified compilation is always done, even if a shared library
 
129
for the file exists already. This effect can be had through cleaning
 
130
the cache (see above) as well, except that it is lazy in the
 
131
destruction of files and will not destroy files unrelated to the ones
 
132
we are building.
 
133
 
 
134
[para] This option is irrelevant when generating a package (see option
 
135
[option -pkg] below) because this mode starts out with a unique and
 
136
empty result cache.
 
137
 
 
138
[para] This option is irrelevant when generating a TEA package (see
 
139
option [option -tea] below).
 
140
 
 
141
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
142
[opt_def -help]
 
143
 
 
144
This option will cause the system to print a short help about command
 
145
line syntax and options and then exit the application.
 
146
 
 
147
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
148
[opt_def -keep]
 
149
 
 
150
This option will cause the system to keep the [file .c] files
 
151
generated by a run in the result cache.
 
152
 
 
153
When generating a package (see option [option -pkg] below) this also
 
154
prevents the deletion of the unique result cache used by the run.
 
155
 
 
156
This option is intended for the debugging of [cmd critcl] itself,
 
157
where it may be necessary to inspect the generated C code.
 
158
 
 
159
[para] This option is irrelevant when generating a TEA package (see
 
160
option [option -tea] below).
 
161
 
 
162
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
163
[opt_def -libdir path]
 
164
 
 
165
This option specifies the path under which the packages generated via
 
166
option [option -pkg] are saved. It also specifies a path to search
 
167
libraries in, like for [option -L].
 
168
 
 
169
When specified multiple times the last value is used.
 
170
 
 
171
When not specified at all the default, [file lib], is used. Note how
 
172
this is a relative path, placing the result into the current working
 
173
directory.
 
174
 
 
175
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
176
[opt_def -includedir path]
 
177
 
 
178
This option specifies the path under which any generated package
 
179
headers are saved. It also specifies a path to search include files
 
180
in, like for [option -I].
 
181
 
 
182
When specified multiple times the last value is used as destination,
 
183
however all previous values are kept on the include search path.
 
184
 
 
185
When not specified at all the default, [file include], is used. Note
 
186
how this is a relative path, placing the result into the current
 
187
working directory.
 
188
 
 
189
[para] This option is irrelevant when generating a TEA package (see
 
190
option [option -tea] below).
 
191
 
 
192
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
193
[opt_def -pkg]
 
194
 
 
195
The default mode of the application is to build the [file .critcl]
 
196
files listed on the command line and save the results in the result
 
197
cache. Essentially pre-filling the cache with important packages,
 
198
cutting down on the time needed to use these packages.
 
199
 
 
200
[para]
 
201
 
 
202
This option activates one of the other modes, package generation.
 
203
 
 
204
In this mode the input files are processed first as usual, however
 
205
after that they are bundled into a single library and additional files
 
206
are generated to make this library usable as a regular Tcl package.
 
207
 
 
208
[para]
 
209
 
 
210
The option [option -tea], see below, invokes the last mode, TEA
 
211
generation. If both options, i.e. [option -pkg] and [option -tea] are
 
212
specified the last one specified wins.
 
213
 
 
214
[para]
 
215
 
 
216
In this mode the options [option -clean] and [option -force] are
 
217
irrelevant and ignored. In contrast, the option [option -libdir] is
 
218
relevant in both this and [option -tea] mode.
 
219
 
 
220
[para]
 
221
 
 
222
When this option is specified the basename of the first file argument
 
223
after the options is used as the name of the package to generate. If
 
224
the extension of that file indicates a shared library ([file .so],
 
225
[file .sl], [file .dylib], and [file .dll]) it is also removed from
 
226
the set of input files. A [file .tcl] file is kept as part of the
 
227
input. A single file without extension is assumed to actually have a
 
228
[file .tcl] extension. A file without extension, but other input files
 
229
following is treated like the name of a shared library proper, and
 
230
removed from the set of input files.
 
231
 
 
232
[para] Examples:
 
233
 
 
234
[example {
 
235
        ... -pkg ... foo
 
236
 
 
237
        => Package name is: foo
 
238
        => Input file is:   foo.tcl
 
239
}]
 
240
 
 
241
[example {
 
242
        ... -pkg ... foo bar.tcl
 
243
 
 
244
        => Package name is: foo
 
245
        => Input file is:   bar.tcl
 
246
}]
 
247
 
 
248
[example {
 
249
        ... -pkg ... foo.tcl
 
250
 
 
251
        => Package name is: foo
 
252
        => Input file is:   foo.tcl
 
253
}]
 
254
 
 
255
[example {
 
256
        ... -pkg ... foo.so bar.tcl
 
257
 
 
258
        => Package name is: foo
 
259
        => Input file is:   bar.tcl
 
260
}]
 
261
 
 
262
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
263
[opt_def -show]
 
264
 
 
265
This option, when specified, will cause the system to print the
 
266
configuration of the chosen target to [const stdout] and then exit.
 
267
 
 
268
The choice of target can be influenced through the option
 
269
[option -target] (see below).
 
270
 
 
271
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
272
[opt_def -showall]
 
273
 
 
274
This option, when specified, will cause the system to print the whole
 
275
chosen configuration file to [const stdout] and then exit.
 
276
 
 
277
The choice of configuration file can be influenced through the option
 
278
[option -config] (see above).
 
279
 
 
280
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
281
[opt_def -target name]
 
282
 
 
283
This option overrides the default choice of build target with
 
284
the user's choice.
 
285
 
 
286
When specified multiple times the last value is used.
 
287
 
 
288
The named target must exist in the chosen configuration file.
 
289
 
 
290
Use option [option -targets] (see below) to get a list of the
 
291
acceptable targets.
 
292
 
 
293
The choice of configuration file can be influenced through the option
 
294
[option -config] (see above).
 
295
 
 
296
[para] This option is irrelevant when generating a TEA package (see
 
297
option [option -tea] below).
 
298
 
 
299
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
300
[opt_def -targets]
 
301
 
 
302
This option, when specified, will cause the system to print the list
 
303
of all known targets from the chosen configuration file to
 
304
[const stdout] and then exit.
 
305
 
 
306
The choice of configuration file can be influenced through the option
 
307
[option -config] (see above).
 
308
 
 
309
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
310
[opt_def -tea]
 
311
 
 
312
Similar to option [option -pkg], except that the invoked mode does not
 
313
generate binaries, but a directory hierarchy containing the
 
314
[file .critcl] file, its companion files, and a TEA-lookalike build
 
315
system with most of the needed support code (incliding copies of the
 
316
critcl packages).
 
317
 
 
318
[para]
 
319
 
 
320
If both options, i.e. [option -pkg] and [option -tea] are specified
 
321
the last one specified wins.
 
322
 
 
323
[para]
 
324
 
 
325
In this mode the options [option -I], [option -L], [option -clean],
 
326
[option -force], [option -cache], [option -includedir], [option -enable],
 
327
[option -disable], and [option -with-[var FOO]] are irrelevant and
 
328
ignored. In contrast, the option [option -libdir] is relevant in both
 
329
this and [option -pkg] mode.
 
330
 
 
331
[para]
 
332
 
 
333
When this option is specified the basename of the first file argument
 
334
after the options is used as the name of the package to generate. If
 
335
the extension of that file indicates a shared library ([file .so],
 
336
[file .sl], [file .dylib], and [file .dll]) it is also removed from
 
337
the set of input files. A [file .tcl] file is kept as part of the
 
338
input. A single file without extension is assumed to actually have a
 
339
[file .tcl] extension. A file without extension, but other input files
 
340
following is treated like the name of a shared library proper, and
 
341
removed from the set of input files.
 
342
 
 
343
[para] Examples:
 
344
 
 
345
[example {
 
346
        ... -tea ... foo
 
347
 
 
348
        => Package name is: foo
 
349
        => Input file is:   foo.tcl
 
350
}]
 
351
 
 
352
[example {
 
353
        ... -tea ... foo bar.tcl
 
354
 
 
355
        => Package name is: foo
 
356
        => Input file is:   bar.tcl
 
357
}]
 
358
 
 
359
[example {
 
360
        ... -tea ... foo.tcl
 
361
 
 
362
        => Package name is: foo
 
363
        => Input file is:   foo.tcl
 
364
}]
 
365
 
 
366
[example {
 
367
        ... -tea ... foo.so bar.tcl
 
368
 
 
369
        => Package name is: foo
 
370
        => Input file is:   bar.tcl
 
371
}]
 
372
 
 
373
[comment %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%]
 
374
[opt_def -with-[var name] value]
 
375
 
 
376
This option sets the value of the custom build configuration option
 
377
[arg name] to [arg value].
 
378
 
 
379
[para] The information is validated only if one of the [file .critcl]
 
380
input files actually defines and uses a custom build configuration
 
381
option with that [arg name].
 
382
 
 
383
[para] This option is irrelevant when generating a TEA package (see
 
384
option [option -tea] above).
 
385
 
 
386
[list_end]