summaryrefslogtreecommitdiff
path: root/src/engine/SCons/Tool/mslink.xml
blob: fd1075bec6911fa9afb9a9d8c1023934ee2706f8 (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
<!--
Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 The SCons Foundation

This file is processed by the bin/SConsDoc.py module.
See its __doc__ string for a discussion of the format.
-->
<tool name="mslink">
<summary>
Sets construction variables for the Microsoft linker.
</summary>
<sets>
SHLINK
SHLINKFLAGS
SHLINKCOM
LINK
LINKFLAGS
LINKCOM
LIBDIRPREFIX
LIBDIRSUFFIX
LIBLINKPREFIX
LIBLINKSUFFIX
WIN32DEFPREFIX
WIN32DEFSUFFIX
WINDOWSDEFPREFIX
WINDOWSDEFSUFFIX
WINDOWS_INSERT_DEF
WIN32EXPPREFIX
WIN32EXPSUFFIX
WINDOWSEXPPREFIX
WINDOWSEXPSUFFIX
WINDOWSSHLIBMANIFESTPREFIX
WINDOWSSHLIBMANIFESTSUFFIX
WINDOWSPROGMANIFESTPREFIX
WINDOWSPROGMANIFESTSUFFIX
<!--REGSVRACTION-->
REGSVR
REGSVRFLAGS
REGSVRCOM
LDMODULE
LDMODULEPREFIX
LDMODULESUFFIX
LDMODULEFLAGS
LDMODULECOM
</sets>
<uses>
SHLINKCOMSTR
LINKCOMSTR
REGSVRCOMSTR
LDMODULECOMSTR
</uses>
</tool>

<cvar name="no_import_lib">
<summary>
When set to non-zero,
suppresses creation of a corresponding Windows static import lib by the
<literal>SharedLibrary</literal>
builder when used with
MinGW, Microsoft Visual Studio or Metrowerks.
This also suppresses creation
of an export (.exp) file
when using Microsoft Visual Studio.
</summary>
</cvar>

<cvar name="PDB">
<summary>
The Microsoft Visual C++ PDB file that will store debugging information for
object files, shared libraries, and programs. This variable is ignored by
tools other than Microsoft Visual C++.
When this variable is
defined SCons will add options to the compiler and linker command line to
cause them to generate external debugging information, and will also set up the
dependencies for the PDB file.
Example:

<example>
env['PDB'] = 'hello.pdb'
</example>

The Visual C++ compiler switch that SCons uses by default
to generate PDB information is <option>/Z7</option>.
This works correctly with parallel (<option>-j</option>) builds
because it embeds the debug information in the intermediate object files,
as opposed to sharing a single PDB file between multiple object files.
This is also the only way to get debug information
embedded into a static library.
Using the <option>/Zi</option> instead may yield improved
link-time performance,
although parallel builds will no longer work.
You can generate PDB files with the <option>/Zi</option>
switch by overriding the default &cv-link-CCPDBFLAGS; variable;
see the entry for that variable for specific examples.
</summary>
</cvar>

<cvar name="REGSVR">
<summary>
The program used on Windows systems
to register a newly-built DLL library
whenever the &b-SharedLibrary; builder
is passed a keyword argument of <literal>register=1</literal>.
</summary>
</cvar>

<cvar name="REGSVRCOM">
<summary>
The command line used on Windows systems
to register a newly-built DLL library
whenever the &b-SharedLibrary; builder
is passed a keyword argument of <literal>register=1</literal>.
</summary>
</cvar>

<cvar name="REGSVRCOMSTR">
<summary>
The string displayed when registering a newly-built DLL file.
If this is not set, then &cv-link-REGSVRCOM; (the command line) is displayed.
</summary>
</cvar>

<cvar name="REGSVRFLAGS">
<summary>
Flags passed to the DLL registration program
on Windows systems when a newly-built DLL library is registered.
By default,
this includes the <option>/s</option>
that prevents dialog boxes from popping up
and requiring user attention.
</summary>
</cvar>

<cvar name="WIN32_INSERT_DEF">
<summary>
A deprecated synonym for &cv-link-WINDOWS_INSERT_DEF;.
</summary>
</cvar>

<cvar name="WIN32DEFPREFIX">
<summary>
A deprecated synonym for &cv-link-WINDOWSDEFPREFIX;.
</summary>
</cvar>

<cvar name="WIN32DEFSUFFIX">
<summary>
A deprecated synonym for &cv-link-WINDOWSDEFSUFFIX;.
</summary>
</cvar>

<cvar name="WIN32EXPPREFIX">
<summary>
A deprecated synonym for &cv-link-WINDOWSEXPSUFFIX;.
</summary>
</cvar>

<cvar name="WIN32EXPSUFFIX">
<summary>
A deprecated synonym for &cv-link-WINDOWSEXPSUFFIX;.
</summary>
</cvar>

<cvar name="WINDOWS_INSERT_DEF">
<summary>
When this is set to true,
a library build of a Windows shared library
(<filename>.dll</filename>file)
will also build a corresponding <filename>.def</filename> file
at the same time,
if a <filename>.def</filename> file
is not already listed as a build target.
The default is 0 (do not build a <filename>.def</filename> file).
</summary>
</cvar>

<cvar name="WINDOWS_INSERT_MANIFEST">
<summary>
When this is set to true,
&scons;
will be aware of the
<filename>.manifest</filename>
files generated by Microsoft Visua C/C++ 8.
</summary>
</cvar>

<cvar name="WINDOWSDEFPREFIX">
<summary>
The prefix used for Windows <filename>.def</filename>file names.
</summary>
</cvar>

<cvar name="WINDOWSDEFSUFFIX">
<summary>
The suffix used for Windows <filename>.def</filename> file names.
</summary>
</cvar>

<cvar name="WINDOWSEXPPREFIX">
<summary>
The prefix used for Windows <filename>.exp</filename> file names.
</summary>
</cvar>

<cvar name="WINDOWSEXPSUFFIX">
<summary>
The suffix used for Windows <filename>.exp</filename> file names.
</summary>
</cvar>

<cvar name="WINDOWSPROGMANIFESTPREFIX">
<summary>
The prefix used for executable program <filename>.manifest</filename> files
generated by Microsoft Visual C/C++.
</summary>
</cvar>

<cvar name="WINDOWSPROGMANIFESTSUFFIX">
<summary>
The suffix used for executable program <filename>.manifest</filename> files
generated by Microsoft Visual C/C++.
</summary>
</cvar>

<cvar name="WINDOWSSHLIBMANIFESTPREFIX">
<summary>
The prefix used for shared library <filename>.manifest</filename> files
generated by Microsoft Visual C/C++.
</summary>
</cvar>

<cvar name="WINDOWSSHLIBMANIFESTSUFFIX">
<summary>
The suffix used for shared library <filename>.manifest</filename> files
generated by Microsoft Visual C/C++.
</summary>
</cvar>