~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qmake-variable-reference.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/doc/src/qmake-manual.qdoc -->
 
6
<head>
 
7
    <title>Qt 4.0: qmake Variable Reference</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
    <link rel="prev" href="qmake-reference.html" />
 
15
    <link rel="contents" href="qmake-manual.html" />
 
16
    <link rel="next" href="qmake-function-reference.html" />
 
17
</head>
 
18
<body>
 
19
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
20
<tr>
 
21
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
22
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
23
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><p>
 
24
[Previous: <a href="qmake-reference.html">qmake Reference</a>]
 
25
[<a href="qmake-manual.html">Contents</a>]
 
26
[Next: <a href="qmake-function-reference.html">qmake Function Reference</a>]
 
27
</p>
 
28
<h1 align="center">qmake Variable Reference</h1>
 
29
<table width="100%">
 
30
<tr valign="top"><td width="34%">
 
31
<ul><li><a href="#config">CONFIG</a></li>
 
32
<li><a href="#defines">DEFINES</a></li>
 
33
<li><a href="#def-file">DEF_FILE</a></li>
 
34
<li><a href="#destdir">DESTDIR</a></li>
 
35
<li><a href="#dlldestdir">DLLDESTDIR</a></li>
 
36
<li><a href="#distfiles">DISTFILES</a></li>
 
37
<li><a href="#headers">HEADERS</a></li>
 
38
<li><a href="#includepath">INCLUDEPATH</a></li>
 
39
<li><a href="#forms">FORMS</a></li>
 
40
<li><a href="#lexsources">LEXSOURCES</a></li>
 
41
<li><a href="#libs">LIBS</a></li>
 
42
<li><a href="#moc-dir">MOC_DIR</a></li>
 
43
<li><a href="#objects-dir">OBJECTS_DIR</a></li>
 
44
<li><a href="#ui-dir">UI_DIR</a></li>
 
45
<li><a href="#ui-headers-dir">UI_HEADERS_DIR</a></li>
 
46
<li><a href="#ui-sources-dir">UI_SOURCES_DIR</a></li>
 
47
<li><a href="#rcc-dir">RCC_DIR</a></li>
 
48
<li><a href="#requires">REQUIRES</a></li>
 
49
<li><a href="#sources">SOURCES</a></li>
 
50
<li><a href="#subdirs">SUBDIRS</a></li>
 
51
<li><a href="#target">TARGET</a></li>
 
52
<li><a href="#template">TEMPLATE</a></li>
 
53
<li><a href="#version">VERSION</a></li>
 
54
<li><a href="#yaccsources">YACCSOURCES</a></li>
 
55
<li><a href="#destdir-target">DESTDIR_TARGET</a></li>
 
56
<li><a href="#dsp-template">DSP_TEMPLATE</a></li>
 
57
<li><a href="#leximpls">LEXIMPLS</a></li>
 
58
<li><a href="#lexobjects">LEXOBJECTS</a></li>
 
59
<li><a href="#makefile">MAKEFILE</a></li>
 
60
<li><a href="#makefile-generator">MAKEFILE_GENERATOR</a></li>
 
61
<li><a href="#objects">OBJECTS</a></li>
 
62
<li><a href="#objmoc">OBJMOC</a></li>
 
63
<li><a href="#precompiled-header">PRECOMPILED_HEADER</a></li>
 
64
<li><a href="#qmake">QMAKE</a></li>
 
65
<li><a href="#qmakespec">QMAKESPEC</a></li>
 
66
<li><a href="#qmake-app-flag">QMAKE_APP_FLAG</a></li>
 
67
<li><a href="#qmake-app-or-dll">QMAKE_APP_OR_DLL</a></li>
 
68
<li><a href="#qmake-ar-cmd">QMAKE_AR_CMD</a></li>
 
69
<li><a href="#qmake-cflags-debug">QMAKE_CFLAGS_DEBUG</a></li>
 
70
<li><a href="#qmake-cflags-mt">QMAKE_CFLAGS_MT</a></li>
 
71
<li><a href="#qmake-cflags-mt-dbg">QMAKE_CFLAGS_MT_DBG</a></li>
 
72
<li><a href="#qmake-cflags-mt-dll">QMAKE_CFLAGS_MT_DLL</a></li>
 
73
<li><a href="#qmake-cflags-mt-dlldbg">QMAKE_CFLAGS_MT_DLLDBG</a></li>
 
74
<li><a href="#qmake-cflags-release">QMAKE_CFLAGS_RELEASE</a></li>
 
75
<li><a href="#qmake-cflags-shlib">QMAKE_CFLAGS_SHLIB</a></li>
 
76
<li><a href="#qmake-cflags-thread">QMAKE_CFLAGS_THREAD</a></li>
 
77
<li><a href="#qmake-cflags-warn-off">QMAKE_CFLAGS_WARN_OFF</a></li>
 
78
</ul></td><td width="34%"><ul>
 
79
<li><a href="#qmake-cflags-warn-on">QMAKE_CFLAGS_WARN_ON</a></li>
 
80
<li><a href="#qmake-clean">QMAKE_CLEAN</a></li>
 
81
<li><a href="#qmake-cxxflags-debug">QMAKE_CXXFLAGS_DEBUG</a></li>
 
82
<li><a href="#qmake-cxxflags-mt">QMAKE_CXXFLAGS_MT</a></li>
 
83
<li><a href="#qmake-cxxflags-mt-dbg">QMAKE_CXXFLAGS_MT_DBG</a></li>
 
84
<li><a href="#qmake-cxxflags-mt-dll">QMAKE_CXXFLAGS_MT_DLL</a></li>
 
85
<li><a href="#qmake-cxxflags-mt-dlldbg">QMAKE_CXXFLAGS_MT_DLLDBG</a></li>
 
86
<li><a href="#qmake-cxxflags-release">QMAKE_CXXFLAGS_RELEASE</a></li>
 
87
<li><a href="#qmake-cxxflags-shlib">QMAKE_CXXFLAGS_SHLIB</a></li>
 
88
<li><a href="#qmake-cxxflags-thread">QMAKE_CXXFLAGS_THREAD</a></li>
 
89
<li><a href="#qmake-cxxflags-warn-off">QMAKE_CXXFLAGS_WARN_OFF</a></li>
 
90
<li><a href="#qmake-cxxflags-warn-on">QMAKE_CXXFLAGS_WARN_ON</a></li>
 
91
<li><a href="#qmake-extension-shlib">QMAKE_EXTENSION_SHLIB</a></li>
 
92
<li><a href="#qmake-failed-requirements">QMAKE_FAILED_REQUIREMENTS</a></li>
 
93
<li><a href="#qmake-filetags">QMAKE_FILETAGS</a></li>
 
94
<li><a href="#qmake-incdir">QMAKE_INCDIR</a></li>
 
95
<li><a href="#post-targetdeps">POST_TARGETDEPS</a></li>
 
96
<li><a href="#pre-targetdeps">PRE_TARGETDEPS</a></li>
 
97
<li><a href="#qmake-incdir-opengl">QMAKE_INCDIR_OPENGL</a></li>
 
98
<li><a href="#qmake-incdir-qt">QMAKE_INCDIR_QT</a></li>
 
99
<li><a href="#qmake-incdir-thread">QMAKE_INCDIR_THREAD</a></li>
 
100
<li><a href="#qmake-incdir-x11">QMAKE_INCDIR_X11</a></li>
 
101
<li><a href="#qmake-lflags-console">QMAKE_LFLAGS_CONSOLE</a></li>
 
102
<li><a href="#qmake-lflags-console-dll">QMAKE_LFLAGS_CONSOLE_DLL</a></li>
 
103
<li><a href="#qmake-lflags-debug">QMAKE_LFLAGS_DEBUG</a></li>
 
104
<li><a href="#qmake-lflags-plugin">QMAKE_LFLAGS_PLUGIN</a></li>
 
105
<li><a href="#qmake-lflags-qt-dll">QMAKE_LFLAGS_QT_DLL</a></li>
 
106
<li><a href="#qmake-lflags-release">QMAKE_LFLAGS_RELEASE</a></li>
 
107
<li><a href="#qmake-lflags-shapp">QMAKE_LFLAGS_SHAPP</a></li>
 
108
<li><a href="#qmake-lflags-shlib">QMAKE_LFLAGS_SHLIB</a></li>
 
109
<li><a href="#qmake-lflags-soname">QMAKE_LFLAGS_SONAME</a></li>
 
110
<li><a href="#qmake-lflags-thread">QMAKE_LFLAGS_THREAD</a></li>
 
111
<li><a href="#qmake-lflags-windows">QMAKE_LFLAGS_WINDOWS</a></li>
 
112
<li><a href="#qmake-lflags-windows-dll">QMAKE_LFLAGS_WINDOWS_DLL</a></li>
 
113
<li><a href="#qmake-libdir">QMAKE_LIBDIR</a></li>
 
114
<li><a href="#qmake-libdir-flags">QMAKE_LIBDIR_FLAGS</a></li>
 
115
<li><a href="#vpath">VPATH</a></li>
 
116
<li><a href="#dependpath">DEPENDPATH</a></li>
 
117
<li><a href="#qmake-libdir-opengl">QMAKE_LIBDIR_OPENGL</a></li>
 
118
<li><a href="#qmake-libdir-qt">QMAKE_LIBDIR_QT</a></li>
 
119
<li><a href="#qmake-libdir-x11">QMAKE_LIBDIR_X11</a></li>
 
120
<li><a href="#qmake-libs">QMAKE_LIBS</a></li>
 
121
<li><a href="#qmake-libs-console">QMAKE_LIBS_CONSOLE</a></li>
 
122
<li><a href="#qmake-libs-opengl">QMAKE_LIBS_OPENGL</a></li>
 
123
<li><a href="#qmake-libs-opengl-qt">QMAKE_LIBS_OPENGL_QT</a></li>
 
124
<li><a href="#qmake-libs-qt">QMAKE_LIBS_QT</a></li>
 
125
<li><a href="#qmake-libs-qt-dll">QMAKE_LIBS_QT_DLL</a></li>
 
126
</ul></td><td width="34%"><ul>
 
127
<li><a href="#qmake-libs-qt-opengl">QMAKE_LIBS_QT_OPENGL</a></li>
 
128
<li><a href="#qmake-libs-qt-thread">QMAKE_LIBS_QT_THREAD</a></li>
 
129
<li><a href="#qmake-libs-rt">QMAKE_LIBS_RT</a></li>
 
130
<li><a href="#qmake-libs-rtmt">QMAKE_LIBS_RTMT</a></li>
 
131
<li><a href="#qmake-libs-thread">QMAKE_LIBS_THREAD</a></li>
 
132
<li><a href="#qmake-libs-windows">QMAKE_LIBS_WINDOWS</a></li>
 
133
<li><a href="#qmake-libs-x11">QMAKE_LIBS_X11</a></li>
 
134
<li><a href="#qmake-libs-x11sm">QMAKE_LIBS_X11SM</a></li>
 
135
<li><a href="#qmake-lib-flag">QMAKE_LIB_FLAG</a></li>
 
136
<li><a href="#qmake-link-shlib-cmd">QMAKE_LINK_SHLIB_CMD</a></li>
 
137
<li><a href="#qmake-post-link">QMAKE_POST_LINK</a></li>
 
138
<li><a href="#qmake-pre-link">QMAKE_PRE_LINK</a></li>
 
139
<li><a href="#qmake-ln-shlib">QMAKE_LN_SHLIB</a></li>
 
140
<li><a href="#qmake-makefile">QMAKE_MAKEFILE</a></li>
 
141
<li><a href="#qmake-moc-src">QMAKE_MOC_SRC</a></li>
 
142
<li><a href="#qmake-qmake">QMAKE_QMAKE</a></li>
 
143
<li><a href="#qmake-qt-dll">QMAKE_QT_DLL</a></li>
 
144
<li><a href="#qmake-run-cc">QMAKE_RUN_CC</a></li>
 
145
<li><a href="#qmake-run-cc-imp">QMAKE_RUN_CC_IMP</a></li>
 
146
<li><a href="#qmake-run-cxx">QMAKE_RUN_CXX</a></li>
 
147
<li><a href="#qmake-run-cxx-imp">QMAKE_RUN_CXX_IMP</a></li>
 
148
<li><a href="#qmake-target">QMAKE_TARGET</a></li>
 
149
<li><a href="#qmake-uic">QMAKE_UIC</a></li>
 
150
<li><a href="#rc-file">RC_FILE</a></li>
 
151
<li><a href="#res-file">RES_FILE</a></li>
 
152
<li><a href="#srcmoc">SRCMOC</a></li>
 
153
<li><a href="#target-ext">TARGET_EXT</a></li>
 
154
<li><a href="#target-x">TARGET_x</a></li>
 
155
<li><a href="#target-x-y-z">TARGET_x.y.z</a></li>
 
156
<li><a href="#uicimpls">UICIMPLS</a></li>
 
157
<li><a href="#uicobjects">UICOBJECTS</a></li>
 
158
<li><a href="#ver-maj">VER_MAJ</a></li>
 
159
<li><a href="#ver-min">VER_MIN</a></li>
 
160
<li><a href="#ver-pat">VER_PAT</a></li>
 
161
<li><a href="#qmake-ext-moc">QMAKE_EXT_MOC</a></li>
 
162
<li><a href="#qmake-ext-ui">QMAKE_EXT_UI</a></li>
 
163
<li><a href="#qmake-ext-prl">QMAKE_EXT_PRL</a></li>
 
164
<li><a href="#qmake-ext-lex">QMAKE_EXT_LEX</a></li>
 
165
<li><a href="#qmake-ext-yacc">QMAKE_EXT_YACC</a></li>
 
166
<li><a href="#qmake-ext-obj">QMAKE_EXT_OBJ</a></li>
 
167
<li><a href="#qmake-ext-cpp">QMAKE_EXT_CPP</a></li>
 
168
<li><a href="#qmake-ext-h">QMAKE_EXT_H</a></li>
 
169
<li><a href="#yaccimpls">YACCIMPLS</a></li>
 
170
<li><a href="#yaccobjects">YACCOBJECTS</a></li>
 
171
</ul>
 
172
</td></tr></table>
 
173
<a name="config"></a><a name="config"></a>
 
174
<h2>CONFIG</h2>
 
175
<p>The <tt>CONFIG</tt> variable specifies project configuration and compiler options. The values will be recognized internally by <tt>qmake</tt> and have special meaning. They are as follows.</p>
 
176
<p>These <tt>CONFIG</tt> values control compilation flags:</p>
 
177
<ul>
 
178
<li>release - Compile with optimization enabled, ignored if &quot;debug&quot; is specified</li>
 
179
<li>debug - Compile with debug options enabled</li>
 
180
<li>warn_on - The compiler should emit more warnings than normally, ignored if &quot;warn_off&quot; is specified</li>
 
181
<li>warn_off - The compiler should only emit severe warnings.</li>
 
182
</ul>
 
183
<p>These options define the application/library type:</p>
 
184
<ul>
 
185
<li>qt - The target is a Qt application/library and requires the Qt header files/library. The proper include and library paths for the Qt library will automatically be added to the project.</li>
 
186
<li>opengl - The target requires the OpenGL (or Mesa) headers/libraries. The proper include and library paths for these libraries will automatically be added to the project.</li>
 
187
<li>thread - The target is a multi-threaded application or library. The proper defines and compiler flags will automatically be added to the project.</li>
 
188
<li><a href="winsystem.html#x11">x11</a> - The target is a <a href="winsystem.html#x11">X11</a> application or library. The proper include paths and libraries will automatically be added to the project.</li>
 
189
<li>windows - The target is a Win32 window application (app only). The proper include paths,compiler flags and libraries will automatically be added to the project.</li>
 
190
<li>console - The target is a Win32 console application (app only). The proper include paths, compiler flags and libraries will automatically be added to the project.</li>
 
191
<li>dll - The target is a shared object/DLL.The proper include paths, compiler flags and libraries will automatically be added to the project.</li>
 
192
<li>staticlib - The target is a static library (lib only). The proper compiler flags will automatically be added to the project.</li>
 
193
<li>plugin - The target is a plugin (lib only). This enables dll as well.</li>
 
194
</ul>
 
195
<p>These options are used to set the compiler flags:</p>
 
196
<ul>
 
197
<li>exceptions - Exception support is enabled</li>
 
198
<li>rtti - RTTI support is enabled</li>
 
199
<li>stl - STL support is enabled</li>
 
200
</ul>
 
201
<p>These options define specific things depending on the platform and/or template:</p>
 
202
<ul>
 
203
<li>flat - When using the vcapp template this will put all the source files into the source group and the header files into the header group regardless of what directory they reside in. Turning this option off will group the files within the source/header group depending on the directory they reside. This is turned on by default.</li>
 
204
</ul>
 
205
<p>The <tt>CONFIG</tt> variable will also be checked when resolving scopes. You may assign anything to this variable.</p>
 
206
<p>For example:</p>
 
207
<pre>&nbsp;   CONFIG += qt console newstuff
 
208
    ...
 
209
    newstuff {
 
210
        SOURCES += new.cpp
 
211
        HEADERS += new.h
 
212
    }</pre>
 
213
<a name="defines"></a><a name="defines"></a>
 
214
<h2>DEFINES</h2>
 
215
<p><tt>qmake</tt> adds the values of this variable as compiler C preprocessor macros (-D option).</p>
 
216
<p>For example:</p>
 
217
<pre>&nbsp;   DEFINES += USE_MY_STUFF QT_DLL</pre>
 
218
<a name="def-file"></a><a name="def-file"></a>
 
219
<h2>DEF_FILE</h2>
 
220
<p><i>This is only used on Windows when using the <tt>app</tt> template</i>.</p>
 
221
<p>Specifies a .def file to be included in the project.</p>
 
222
<a name="destdir"></a><a name="destdir"></a>
 
223
<h2>DESTDIR</h2>
 
224
<p>Specifies where to put the <a href="#target">target</a> file.</p>
 
225
<p>For example:</p>
 
226
<pre>&nbsp;   DESTDIR = ../../lib</pre>
 
227
<a name="dlldestdir"></a><a name="dlldestdir"></a>
 
228
<h2>DLLDESTDIR</h2>
 
229
<p>Specifies where to copy the <a href="#target">target</a> dll.</p>
 
230
<a name="distfiles"></a><a name="distfiles"></a>
 
231
<h2>DISTFILES</h2>
 
232
<p>This variable contains a list of files to be included in the dist target. This feature is supported by UnixMake specs only.</p>
 
233
<p>For example:</p>
 
234
<pre>&nbsp;   DISTFILES += ../program.txt</pre>
 
235
<a name="headers"></a><a name="headers"></a>
 
236
<h2>HEADERS</h2>
 
237
<p>Defines the header files for the project.</p>
 
238
<p><tt>qmake</tt> will generate dependency information (unless <tt>-nodepend</tt> is specified on the <a href="qmake-running.html#commands">command line</a>) for the specified headers. <tt>qmake</tt> will also automatically detect if <tt>moc</tt> is required by the classes in these headers, and add the appropriate dependencies and files to the project for generating and linking the moc files.</p>
 
239
<p>For example:</p>
 
240
<pre>&nbsp;   HEADERS = myclass.h \
 
241
              login.h \
 
242
              mainwindow.h</pre>
 
243
<p>See also <a href="#sources">SOURCES</a>.</p>
 
244
<a name="includepath"></a><a name="includepath"></a>
 
245
<h2>INCLUDEPATH</h2>
 
246
<p>This variable specifies the #include directories which should be searched when compiling the project. Use ';' or a space as the directory separator.</p>
 
247
<p>For example:</p>
 
248
<pre>&nbsp;   INCLUDEPATH = c:\msdev\include d:\stl\include</pre>
 
249
<a name="forms"></a><a name="forms"></a>
 
250
<h2>FORMS</h2>
 
251
<p>This variable specifies the .ui files (see <a href="designer-manual.html">Qt Designer</a>) to be processed through <tt>uic</tt> before compiling. All dependencies, headers and source files required to build these .ui files will automatically be added to the project.</p>
 
252
<p>For example:</p>
 
253
<pre>&nbsp;   FORMS = mydialog.ui \
 
254
        mywidget.ui \
 
255
            myconfig.ui</pre>
 
256
<a name="lexsources"></a><a name="lexsources"></a>
 
257
<h2>LEXSOURCES</h2>
 
258
<p>This variable contains a list of lex source files. All dependencies, headers and source files will automatically be added to the project for building these lex files.</p>
 
259
<p>For example:</p>
 
260
<pre>&nbsp;   LEXSOURCES = lexer.l</pre>
 
261
<a name="libs"></a><a name="libs"></a>
 
262
<h2>LIBS</h2>
 
263
<p>This variable contains a list of libraries to be linked into the project. If you are more comfortable with the Unix convension of -L/-l flags you are free to use them in a cross-platform manner and qmake will do the correct thing with these libraries on Windows (namely this means passing the full path of the library to the linker). The only limitation to this is the library must exist, for qmake to find which directory a -l lib lives in.</p>
 
264
<p>For example:</p>
 
265
<pre>&nbsp;   unix:LIBS += -lmath -L/usr/local/lib
 
266
    win32:LIBS += c:\mylibs\math.lib</pre>
 
267
<a name="moc-dir"></a><a name="moc-dir"></a>
 
268
<h2>MOC_DIR</h2>
 
269
<p>This variable specifies the directory where all intermediate moc files should be placed.</p>
 
270
<p>For example:</p>
 
271
<pre>&nbsp;   unix:MOC_DIR = ../myproject/tmp
 
272
    win32:MOC_DIR = c:\myproject\tmp</pre>
 
273
<a name="objects-dir"></a><a name="objects-dir"></a>
 
274
<h2>OBJECTS_DIR</h2>
 
275
<p>This variable specifies the directory where all intermediate objects should be placed.</p>
 
276
<p>For example:</p>
 
277
<pre>&nbsp;   unix:OBJECTS_DIR = ../myproject/tmp
 
278
    win32:OBJECTS__DIR = c:\myproject\tmp</pre>
 
279
<a name="ui-dir"></a><a name="ui-dir"></a>
 
280
<h2>UI_DIR</h2>
 
281
<p>This variable specifies the directory where all intermediate files from uic should be placed. This variable overrides both <a href="#ui-sources-dir">UI_SOURCES_DIR</a> and <a href="#ui-headers-dir">UI_HEADERS_DIR</a>.</p>
 
282
<p>For example:</p>
 
283
<pre>&nbsp;   unix:UI_DIR = ../myproject/ui
 
284
    win32:UI_DIR = c:\myproject\ui</pre>
 
285
<a name="ui-headers-dir"></a><a name="ui-headers-dir"></a>
 
286
<h2>UI_HEADERS_DIR</h2>
 
287
<p>This variable specifies the directory where all declaration files (as generated by uic) should be placed.</p>
 
288
<p>For example:</p>
 
289
<pre>&nbsp;   unix:UI_HEADERS_DIR = ../myproject/ui/include
 
290
    win32:UI_HEADERS_DIR = c:\myproject\ui\include</pre>
 
291
<a name="ui-sources-dir"></a><a name="ui-sources-dir"></a>
 
292
<h2>UI_SOURCES_DIR</h2>
 
293
<p>This variable specifies the directory where all implementation files (as generated by uic) should be placed.</p>
 
294
<p>For example:</p>
 
295
<pre>&nbsp;   unix:UI_SOURCES_DIR = ../myproject/ui/src
 
296
    win32:UI_SOURCES_DIR = c:\myproject\ui\src</pre>
 
297
<a name="rcc-dir"></a><a name="rcc-dir"></a>
 
298
<h2>RCC_DIR</h2>
 
299
<p>This variable specifies the directory where all intermediate resource files should be placed.</p>
 
300
<p>For example:</p>
 
301
<pre>&nbsp;   unix:RCC_DIR = ../myproject/resources
 
302
    win32:RCC_DIR = c:\myproject\resources</pre>
 
303
<a name="requires"></a><a name="requires"></a>
 
304
<h2>REQUIRES</h2>
 
305
<p>This is a special variable processed by <tt>qmake</tt>. If the contents of this variable do not appear in CONFIG by the time this variable is assigned, then a minimal Makefile will be generated that states what dependencies (the values assigned to REQUIRES) are missing.</p>
 
306
<p>This is mainly used in Qt's build system for building the examples.</p>
 
307
<a name="sources"></a><a name="sources"></a>
 
308
<h2>SOURCES</h2>
 
309
<p>This variable contains the name of all source files in the project.</p>
 
310
<p>For example:</p>
 
311
<pre>&nbsp;   SOURCES = myclass.cpp \
 
312
          login.cpp \
 
313
          mainwindow.cpp</pre>
 
314
<p>See also <a href="#headers">HEADERS</a></p>
 
315
<a name="subdirs"></a><a name="subdirs"></a>
 
316
<h2>SUBDIRS</h2>
 
317
<p>This variable, when used with the <tt>subdirs</tt> <a href="#template">TEMPLATE</a> contains the names of all subdirectories to look for a project file.</p>
 
318
<p>For example:</p>
 
319
<pre>&nbsp;   SUBDIRS = kernel \
 
320
          tools</pre>
 
321
<a name="target"></a><a name="target"></a>
 
322
<h2>TARGET</h2>
 
323
<p>This specifies the name of the target file.</p>
 
324
<p>For example:</p>
 
325
<pre>&nbsp;   TEMPLATE = app
 
326
    TARGET = myapp
 
327
    SOURCES = main.cpp</pre>
 
328
<p>The project file above would produce an executable named <tt>myapp</tt> on unix and 'myapp.exe' on windows.</p>
 
329
<a name="template"></a><a name="template"></a>
 
330
<h2>TEMPLATE</h2>
 
331
<p>This variable contains the name of the template to use when generating the project. The allowed values are:</p>
 
332
<ul>
 
333
<li>app - Creates a Makefile for building applications (the default)</li>
 
334
<li>lib - Creates a Makefile for building libraries</li>
 
335
<li>subdirs - Creates a Makefile for building targets in subdirectories</li>
 
336
<li>vcapp - <i>win32 only</i> Creates an application project file for Visual Studio</li>
 
337
<li>vclib - <i>win32 only</i> Creates a library project file for Visual Studio</li>
 
338
</ul>
 
339
<p>For example:</p>
 
340
<pre>&nbsp;   TEMPLATE = lib
 
341
    SOURCES = main.cpp
 
342
    TARGET = mylib</pre>
 
343
<p>The template can be overridden by specifying a new template type with the <tt>-t</tt> command line option. This overrides the template type <i>after</i> the .pro file has been processed. With .pro files that use the template type to determine how the project is built, it is necessary to declare TEMPLATE on the command line rather than use the <tt>-t</tt> option.</p>
 
344
<a name="version"></a><a name="version"></a>
 
345
<h2>VERSION</h2>
 
346
<p>This variable contains the version number of the library if the <tt>lib</tt> <a href="#template">TEMPLATE</a> is specified.</p>
 
347
<p>For example:</p>
 
348
<pre>&nbsp;   VERSION = 1.2.3</pre>
 
349
<a name="yaccsources"></a><a name="yaccsources"></a>
 
350
<h2>YACCSOURCES</h2>
 
351
<p>This variable contains a list of yacc source files to be included in the project. All dependencies, headers and source files will automatically be included in the project.</p>
 
352
<p>For example:</p>
 
353
<pre>&nbsp;   YACCSOURCES = moc.y</pre>
 
354
<a name="destdir-target"></a><a name="destdir-target"></a>
 
355
<h2>DESTDIR_TARGET</h2>
 
356
<p>This variable is set internally by <tt>qmake</tt>, which is basically the <tt>DESTDIR</tt> variable with the <tt>TARGET</tt> variable appened at the end. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
357
<a name="dsp-template"></a><a name="dsp-template"></a>
 
358
<h2>DSP_TEMPLATE</h2>
 
359
<p>This variable is set internally by <tt>qmake</tt>, which specifies where the dsp template file for basing generated dsp files is stored. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
360
<a name="leximpls"></a><a name="leximpls"></a>
 
361
<h2>LEXIMPLS</h2>
 
362
<p>This variable contains a list of lex implementation files. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
363
<a name="lexobjects"></a><a name="lexobjects"></a>
 
364
<h2>LEXOBJECTS</h2>
 
365
<p>This variable contains the names of intermediate lex object files.The value of this variable is typically handled by <tt>qmake</tt> and rarely needs to be modified.</p>
 
366
<a name="makefile"></a><a name="makefile"></a>
 
367
<h2>MAKEFILE</h2>
 
368
<p>This variable specifies the name of the Makefile which <tt>qmake</tt> should use when outputting the dependency information for building a project. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
369
<a name="makefile-generator"></a><a name="makefile-generator"></a>
 
370
<h2>MAKEFILE_GENERATOR</h2>
 
371
<p>This variable contains the name of the Makefile generator to use when generating a Makefile. The value of this variable is typically handled internally by <tt>qmake</tt> and rarely needs to be modified.</p>
 
372
<a name="objects"></a><a name="objects"></a>
 
373
<h2>OBJECTS</h2>
 
374
<p>This variable is generated from the <a href="#sources">SOURCES</a> variable. The extension of each source file will have been replaced by .o (Unix) or .obj (Win32). The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
375
<a name="objmoc"></a><a name="objmoc"></a>
 
376
<h2>OBJMOC</h2>
 
377
<p>This variable is set by <tt>qmake</tt> if files can be found that contain the <a href="metaobjects.html#q-object">Q_OBJECT</a> macro. <tt>OBJMOC</tt> contains the name of all intermediate moc object files. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
378
<a name="precompiled-header"></a><a name="precompiled-header"></a>
 
379
<h2>PRECOMPILED_HEADER</h2>
 
380
<p>This variable indicates the header file for creating a precompiled header file, to increase the compilation speed of a project. Precompiled headers are currently only supported on some platforms (Windows - all MSVC project types, Mac OS X - Xcode, Makefile, Unix - gcc 3.3 and up).</p>
 
381
<p>On other platforms, this variable has different meaning, as noted below.</p>
 
382
<p>This variable contains a list of header files that require some sort of pre-compilation step (such as with moc). The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
383
<a name="qmake-systemvariable"></a><a name="qmake"></a>
 
384
<h2>QMAKE</h2>
 
385
<p>This variable contains the name of the <tt>qmake</tt> program itself and is placed in generated Makefiles. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
386
<a name="qmakespec-systemvariable"></a><a name="qmakespec"></a>
 
387
<h2>QMAKESPEC</h2>
 
388
<p>This variable contains the name of the <tt>qmake</tt> configuration to use when generating Makefiles. The value of this variable is typically handled by <tt>qmake</tt> and rarely needs to be modified. Use the <a href="#qmakespec">QMAKESPEC</a> environment variable instead.</p>
 
389
<a name="qmake-app-flag"></a><a name="qmake-app-flag"></a>
 
390
<h2>QMAKE_APP_FLAG</h2>
 
391
<p>This variable is empty unless the <tt>app</tt> <a href="#template">TEMPLATE</a> is specified. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified. Use the following instead:</p>
 
392
<pre>&nbsp;   app {
 
393
        # Conditional code for 'app' template here
 
394
    }</pre>
 
395
<a name="qmake-app-or-dll"></a><a name="qmake-app-or-dll"></a>
 
396
<h2>QMAKE_APP_OR_DLL</h2>
 
397
<p>This variable is empty unless the <tt>app</tt> or <tt>dll</tt> <a href="#template">TEMPLATE</a> is specified. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
398
<a name="qmake-ar-cmd"></a><a name="qmake-ar-cmd"></a>
 
399
<h2>QMAKE_AR_CMD</h2>
 
400
<p><i>This is used on Unix platforms only</i></p>
 
401
<p>This variable contains the command for invoking the program which creates, modifies and extracts archives. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
402
<a name="qmake-cflags-debug"></a><a name="qmake-cflags-debug"></a>
 
403
<h2>QMAKE_CFLAGS_DEBUG</h2>
 
404
<p>This variable contains the flags for the C compiler in debug mode.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
405
<a name="qmake-cflags-mt"></a><a name="qmake-cflags-mt"></a>
 
406
<h2>QMAKE_CFLAGS_MT</h2>
 
407
<p>This variable contains the compiler flags for creating a multi-threaded application or when the version of Qt that you link against is a multi-threaded statically linked library. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
408
<a name="qmake-cflags-mt-dbg"></a><a name="qmake-cflags-mt-dbg"></a>
 
409
<h2>QMAKE_CFLAGS_MT_DBG</h2>
 
410
<p>This variable contains the compiler flags for creating a debuggable multi-threaded application or when the version of Qt that you link against is a debuggable multi-threaded statically linked library. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
411
<a name="qmake-cflags-mt-dll"></a><a name="qmake-cflags-mt-dll"></a>
 
412
<h2>QMAKE_CFLAGS_MT_DLL</h2>
 
413
<p><i>This is used on Windows only</i></p>
 
414
<p>This variable contains the compiler flags for creating a multi-threaded dll or when the version of Qt that you link against is a multi-threaded dll. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
415
<a name="qmake-cflags-mt-dlldbg"></a><a name="qmake-cflags-mt-dlldbg"></a>
 
416
<h2>QMAKE_CFLAGS_MT_DLLDBG</h2>
 
417
<p><i>This is used on Windows only</i></p>
 
418
<p>This variable contains the compiler flags for creating a debuggable multi-threaded dll or when the version of Qt that you link against is a debuggable multi-threaded statically linked library. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
419
<a name="qmake-cflags-release"></a><a name="qmake-cflags-release"></a>
 
420
<h2>QMAKE_CFLAGS_RELEASE</h2>
 
421
<p>This variable contains the compiler flags for creating a non-debuggable application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
422
<a name="qmake-cflags-shlib"></a><a name="qmake-cflags-shlib"></a>
 
423
<h2>QMAKE_CFLAGS_SHLIB</h2>
 
424
<p><i>This is used on Unix platforms only</i></p>
 
425
<p>This variable contains the compiler flags for creating a shared library. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
426
<a name="qmake-cflags-thread"></a><a name="qmake-cflags-thread"></a>
 
427
<h2>QMAKE_CFLAGS_THREAD</h2>
 
428
<p>This variable contains the compiler flags for creating a multi-threaded application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
429
<a name="qmake-cflags-warn-off"></a><a name="qmake-cflags-warn-off"></a>
 
430
<h2>QMAKE_CFLAGS_WARN_OFF</h2>
 
431
<p>This variable is not empty if the warn_off <a href="#template">TEMPLATE</a> option is specified. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
432
<a name="qmake-cflags-warn-on"></a><a name="qmake-cflags-warn-on"></a>
 
433
<h2>QMAKE_CFLAGS_WARN_ON</h2>
 
434
<p>This variable is not empty if the warn_on <a href="#template">TEMPLATE</a> option is specified. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
435
<a name="qmake-clean"></a><a name="qmake-clean"></a>
 
436
<h2>QMAKE_CLEAN</h2>
 
437
<p>This variable contains any files which are not generated files (such as moc and uic generated files) and object files that should be removed when using &quot;make clean&quot;.</p>
 
438
<a name="qmake-cxxflags-debug"></a><a name="qmake-cxxflags-debug"></a>
 
439
<h2>QMAKE_CXXFLAGS_DEBUG</h2>
 
440
<p>This variable contains the C++ compiler flags for creating a debuggable application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
441
<a name="qmake-cxxflags-mt"></a><a name="qmake-cxxflags-mt"></a>
 
442
<h2>QMAKE_CXXFLAGS_MT</h2>
 
443
<p>This variable contains the C++ compiler flags for creating a multi-threaded application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
444
<a name="qmake-cxxflags-mt-dbg"></a><a name="qmake-cxxflags-mt-dbg"></a>
 
445
<h2>QMAKE_CXXFLAGS_MT_DBG</h2>
 
446
<p>This variable contains the C++ compiler flags for creating a debuggable multi-threaded application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
447
<a name="qmake-cxxflags-mt-dll"></a><a name="qmake-cxxflags-mt-dll"></a>
 
448
<h2>QMAKE_CXXFLAGS_MT_DLL</h2>
 
449
<p><tt>This is used on Windows only</tt></p>
 
450
<p>This variable contains the C++ compiler flags for creating a multi-threaded dll. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
451
<a name="qmake-cxxflags-mt-dlldbg"></a><a name="qmake-cxxflags-mt-dlldbg"></a>
 
452
<h2>QMAKE_CXXFLAGS_MT_DLLDBG</h2>
 
453
<p><tt>This is used on Windows only</tt></p>
 
454
<p>This variable contains the C++ compiler flags for creating a multi-threaded debuggable dll. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
455
<a name="qmake-cxxflags-release"></a><a name="qmake-cxxflags-release"></a>
 
456
<h2>QMAKE_CXXFLAGS_RELEASE</h2>
 
457
<p>This variable contains the C++ compiler flags for creating an application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
458
<a name="qmake-cxxflags-shlib"></a><a name="qmake-cxxflags-shlib"></a>
 
459
<h2>QMAKE_CXXFLAGS_SHLIB</h2>
 
460
<p>This variable contains the C++ compiler flags for creating a shared library. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
461
<a name="qmake-cxxflags-thread"></a><a name="qmake-cxxflags-thread"></a>
 
462
<h2>QMAKE_CXXFLAGS_THREAD</h2>
 
463
<p>This variable contains the C++ compiler flags for creating a multi-threaded application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
464
<a name="qmake-cxxflags-warn-off"></a><a name="qmake-cxxflags-warn-off"></a>
 
465
<h2>QMAKE_CXXFLAGS_WARN_OFF</h2>
 
466
<p>This variable contains the C++ compiler flags for suppressing compiler warnings. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
467
<a name="qmake-cxxflags-warn-on"></a><a name="qmake-cxxflags-warn-on"></a>
 
468
<h2>QMAKE_CXXFLAGS_WARN_ON</h2>
 
469
<p>This variable contains C++ compiler flags for generating compiler warnings. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
470
<a name="qmake-extension-shlib"></a><a name="qmake-extension-shlib"></a>
 
471
<h2>QMAKE_EXTENSION_SHLIB</h2>
 
472
<p>This variable contains the extention for shared libraries. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
473
<a name="qmake-failed-requirements"></a><a name="qmake-failed-requirements"></a>
 
474
<h2>QMAKE_FAILED_REQUIREMENTS</h2>
 
475
<p>This variable contains the list of requirements that were failed to be met when <tt>qmake</tt> was used. For example, the sql module is needed and wasn't compiled into Qt. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
476
<a name="qmake-filetags"></a><a name="qmake-filetags"></a>
 
477
<h2>QMAKE_FILETAGS</h2>
 
478
<p>This variable contains the file tags needed to be entered into the Makefile, such as SOURCES and HEADERS. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
479
<a name="qmake-incdir"></a><a name="qmake-incdir"></a>
 
480
<h2>QMAKE_INCDIR</h2>
 
481
<p>This variable contains the location of all known header files to be added to INCLUDEPATH when building an application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
482
<a name="post-targetdeps"></a><a name="post-targetdeps"></a>
 
483
<h2>POST_TARGETDEPS</h2>
 
484
<p>All libraries that the <a href="#target">target</a> depends on can be listed in this variable. Some backends do not support this, these include MSVC Dsp, and ProjectBuilder .pbproj files. Generally this is support internally by these build tools, this is usefull for explicitly listing dependant static libraries.</p>
 
485
<p>This list will go after all builtin (and <a href="#pre-targetdeps">$$PRE_TARGETDEPS</a>) dependencies.</p>
 
486
<a name="pre-targetdeps"></a><a name="pre-targetdeps"></a>
 
487
<h2>PRE_TARGETDEPS</h2>
 
488
<p>All libraries that the <a href="#target">target</a> depends on can be listed in this variable. Some backends do not support this, these include MSVC Dsp, and ProjectBuilder .pbproj files. Generally this is support internally by these build tools, this is usefull for explicitly listing dependant static libraries.</p>
 
489
<p>This list will go before all builtin dependencies.</p>
 
490
<a name="qmake-incdir-opengl"></a><a name="qmake-incdir-opengl"></a>
 
491
<h2>QMAKE_INCDIR_OPENGL</h2>
 
492
<p>This variable contains the location of OpenGL header files to be added to INCLUDEPATH when building an application with OpenGL support. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
493
<a name="qmake-incdir-qt"></a><a name="qmake-incdir-qt"></a>
 
494
<h2>QMAKE_INCDIR_QT</h2>
 
495
<p>This variable contains the location of all known header file paths to be added to INCLUDEPATH when building a Qt application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
496
<a name="qmake-incdir-thread"></a><a name="qmake-incdir-thread"></a>
 
497
<h2>QMAKE_INCDIR_THREAD</h2>
 
498
<p>This variable contains the location of all known header file paths to be added to INCLUDEPATH when building a multi-threaded application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
499
<a name="qmake-incdir-x11"></a><a name="qmake-incdir-x11"></a>
 
500
<h2>QMAKE_INCDIR_X11</h2>
 
501
<p><i>This is used on Unix platforms only</i></p>
 
502
<p>This variable contains the location of <a href="winsystem.html#x11">X11</a> header file paths to be added to INCLUDEPATH when building a <a href="winsystem.html#x11">X11</a> application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
503
<a name="qmake-lflags-console"></a><a name="qmake-lflags-console"></a>
 
504
<h2>QMAKE_LFLAGS_CONSOLE</h2>
 
505
<p><i>This is used on Windows only</i></p>
 
506
<p>This variable contains link flags when building console programs. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
507
<a name="qmake-lflags-console-dll"></a>
 
508
<h2>QMAKE_LFLAGS_CONSOLE_DLL</h2>
 
509
<p><i>This is used on Windows only</i></p>
 
510
<p>This variable contains link flags when building console dlls. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
511
<a name="qmake-lflags-debug"></a>
 
512
<h2>QMAKE_LFLAGS_DEBUG</h2>
 
513
<p>This variable contains link flags when building debuggable applications. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
514
<a name="qmake-lflags-plugin"></a>
 
515
<h2>QMAKE_LFLAGS_PLUGIN</h2>
 
516
<p>This variable contains link flags when building plugins. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
517
<a name="qmake-lflags-qt-dll"></a>
 
518
<h2>QMAKE_LFLAGS_QT_DLL</h2>
 
519
<p>This variable contains link flags when building programs that use the Qt library built as a dll. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
520
<a name="qmake-lflags-release"></a>
 
521
<h2>QMAKE_LFLAGS_RELEASE</h2>
 
522
<p>This variable contains link flags when building applications for release. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
523
<a name="qmake-lflags-shapp"></a>
 
524
<h2>QMAKE_LFLAGS_SHAPP</h2>
 
525
<p>This variable contains link flags when building applications which are using the <tt>app</tt> template. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
526
<a name="qmake-lflags-shlib"></a>
 
527
<h2>QMAKE_LFLAGS_SHLIB</h2>
 
528
<p>This variable contains link flags when building shared libraries The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
529
<a name="qmake-lflags-soname"></a>
 
530
<h2>QMAKE_LFLAGS_SONAME</h2>
 
531
<p>This variable specifies the link flags to set the name of shared objects, such as .so or .dll. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
532
<a name="qmake-lflags-thread"></a>
 
533
<h2>QMAKE_LFLAGS_THREAD</h2>
 
534
<p>This variable contains link flags when building multi-threaded projects. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
535
<a name="qmake-lflags-windows"></a>
 
536
<h2>QMAKE_LFLAGS_WINDOWS</h2>
 
537
<p><i>This is used on Windows only</i></p>
 
538
<p>This variable contains link flags when building windows projects. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
539
<a name="qmake-lflags-windows-dll"></a>
 
540
<h2>QMAKE_LFLAGS_WINDOWS_DLL</h2>
 
541
<p><i>This is used on Windows only</i></p>
 
542
<p>This variable contains link flags when building windows dll projects. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
543
<a name="qmake-libdir"></a>
 
544
<h2>QMAKE_LIBDIR</h2>
 
545
<p>This variable contains the location of all known library directories.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
546
<a name="qmake-libdir-flags"></a>
 
547
<h2>QMAKE_LIBDIR_FLAGS</h2>
 
548
<p><i>This is used on Unix platforms only</i></p>
 
549
<p>This variable contains the location of all library directory with -L prefixed. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
550
<a name="vpath"></a>
 
551
<h2>VPATH</h2>
 
552
<p>This variable tells <tt>qmake</tt> where to search for files it cannot open. With this you may tell <tt>qmake</tt> where it may look for things like SOURCES, and if it finds an entry in SOURCES that cannot be opened it will look through the entire VPATH list to see if it can find the file on its own.</p>
 
553
<p>See also <a href="#dependpath">DEPENDPATH</a>.</p>
 
554
<a name="dependpath"></a><a name="dependpath"></a>
 
555
<h2>DEPENDPATH</h2>
 
556
<p>This variable contains the list of all directories to look in to resolve dependencies. This will be used when crawling through <tt>included</tt> files.</p>
 
557
<a name="qmake-libdir-opengl"></a>
 
558
<h2>QMAKE_LIBDIR_OPENGL</h2>
 
559
<p>This variable contains the location of the OpenGL library directory.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
560
<a name="qmake-libdir-qt"></a>
 
561
<h2>QMAKE_LIBDIR_QT</h2>
 
562
<p>This variable contains the location of the Qt library directory.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
563
<a name="qmake-libdir-x11"></a>
 
564
<h2>QMAKE_LIBDIR_X11</h2>
 
565
<p><i>This is used on Unix platforms only</i></p>
 
566
<p>This variable contains the location of the <a href="winsystem.html#x11">X11</a> library directory.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
567
<a name="qmake-libs"></a>
 
568
<h2>QMAKE_LIBS</h2>
 
569
<p>This variable contains all project libraries. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
570
<a name="qmake-libs-console"></a>
 
571
<h2>QMAKE_LIBS_CONSOLE</h2>
 
572
<p><i>This is used on Windows only</i></p>
 
573
<p>This variable contains all project libraries that should be linked against when building a console application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
574
<a name="qmake-libs-opengl"></a>
 
575
<h2>QMAKE_LIBS_OPENGL</h2>
 
576
<p>This variable contains all OpenGL libraries. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
577
<a name="qmake-libs-opengl-qt"></a>
 
578
<h2>QMAKE_LIBS_OPENGL_QT</h2>
 
579
<p>This variable contains all OpenGL Qt libraries.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
580
<a name="qmake-libs-qt"></a>
 
581
<h2>QMAKE_LIBS_QT</h2>
 
582
<p>This variable contains all Qt libraries.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
583
<a name="qmake-libs-qt-dll"></a>
 
584
<h2>QMAKE_LIBS_QT_DLL</h2>
 
585
<p><i>This is used on Windows only</i></p>
 
586
<p>This variable contains all Qt libraries when Qt is built as a dll. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
587
<a name="qmake-libs-qt-opengl"></a>
 
588
<h2>QMAKE_LIBS_QT_OPENGL</h2>
 
589
<p>This variable contains all the libraries needed to link against if OpenGL support is turned on. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
590
<a name="qmake-libs-qt-thread"></a>
 
591
<h2>QMAKE_LIBS_QT_THREAD</h2>
 
592
<p>This variable contains all the libraries needed to link against if thread support is turned on. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
593
<a name="qmake-libs-rt"></a>
 
594
<h2>QMAKE_LIBS_RT</h2>
 
595
<p><i>This is used with Borland compilers only</i></p>
 
596
<p>This variable contains the runtime library needed to link against when building an application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
597
<a name="qmake-libs-rtmt"></a>
 
598
<h2>QMAKE_LIBS_RTMT</h2>
 
599
<p><i>This is used with Borland compilers only</i></p>
 
600
<p>This variable contains the runtime library needed to link against when building a multi-threaded application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
601
<a name="qmake-libs-thread"></a>
 
602
<h2>QMAKE_LIBS_THREAD</h2>
 
603
<p><i>This is used on Unix platforms only</i></p>
 
604
<p>This variable contains all libraries that need to be linked against when building a multi-threaded application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
605
<a name="qmake-libs-windows"></a>
 
606
<h2>QMAKE_LIBS_WINDOWS</h2>
 
607
<p><i>This is used on Windows only</i></p>
 
608
<p>This variable contains all windows libraries.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
609
<a name="qmake-libs-x11"></a>
 
610
<h2>QMAKE_LIBS_X11</h2>
 
611
<p><i>This is used on Unix platforms only</i></p>
 
612
<p>This variable contains all <a href="winsystem.html#x11">X11</a> libraries.The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
613
<a name="qmake-libs-x11sm"></a>
 
614
<h2>QMAKE_LIBS_X11SM</h2>
 
615
<p><i>This is used on Unix platforms only</i></p>
 
616
<p>This variable contains all <a href="winsystem.html#x11">X11</a> session management libraries. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
617
<a name="qmake-lib-flag"></a>
 
618
<h2>QMAKE_LIB_FLAG</h2>
 
619
<p>This variable is not empty if the <tt>lib</tt> template is specified. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
620
<a name="qmake-link-shlib-cmd"></a>
 
621
<h2>QMAKE_LINK_SHLIB_CMD</h2>
 
622
<p>This variable contains the command to execute when creating a shared library. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
623
<a name="qmake-post-link"></a>
 
624
<h2>QMAKE_POST_LINK</h2>
 
625
<p>This variable contains the command to execute after linking the TARGET together. This variable is normally empty and therefore nothing is executed, additionally some backends will not support this - mostly only Makefile backends.</p>
 
626
<a name="qmake-pre-link"></a>
 
627
<h2>QMAKE_PRE_LINK</h2>
 
628
<p>This variable contains the command to execute before linking the TARGET together. This variable is normally empty and therefore nothing is executed, additionally some backends will not support this - mostly only Makefile backends.</p>
 
629
<a name="qmake-ln-shlib"></a>
 
630
<h2>QMAKE_LN_SHLIB</h2>
 
631
<p>This variable contains the command to execute when creating a link to a shared library. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
632
<a name="qmake-makefile"></a>
 
633
<h2>QMAKE_MAKEFILE</h2>
 
634
<p>This variable contains the name of the Makefile to create. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
635
<a name="qmake-moc-src"></a>
 
636
<h2>QMAKE_MOC_SRC</h2>
 
637
<p>This variable contains the names of all moc source files to generate and include in the project. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
638
<a name="qmake-qmake"></a>
 
639
<h2>QMAKE_QMAKE</h2>
 
640
<p>This variable contains the location of qmake if it is not in the path. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
641
<a name="qmake-qt-dll"></a>
 
642
<h2>QMAKE_QT_DLL</h2>
 
643
<p>This variable is not empty if Qt was built as a dll. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
644
<a name="qmake-run-cc"></a>
 
645
<h2>QMAKE_RUN_CC</h2>
 
646
<p>This variable specifies the individual rule needed to build an object. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
647
<a name="qmake-run-cc-imp"></a>
 
648
<h2>QMAKE_RUN_CC_IMP</h2>
 
649
<p>This variable specifies the individual rule needed to build an object. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
650
<a name="qmake-run-cxx"></a>
 
651
<h2>QMAKE_RUN_CXX</h2>
 
652
<p>This variable specifies the individual rule needed to build an object. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
653
<a name="qmake-run-cxx-imp"></a>
 
654
<h2>QMAKE_RUN_CXX_IMP</h2>
 
655
<p>This variable specifies the individual rule needed to build an object. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
656
<a name="qmake-target"></a>
 
657
<h2>QMAKE_TARGET</h2>
 
658
<p>This variable contains the name of the project target. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
659
<a name="qmake-uic"></a>
 
660
<h2>QMAKE_UIC</h2>
 
661
<p>This variable contains the location of uic if it is not in the path. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
662
<p>It can be used to specify arguments to uic as well, such as additional plugin paths. For example:</p>
 
663
<pre>&nbsp;   QMAKE_UIC = uic -L /path/to/plugin</pre>
 
664
<a name="rc-file"></a>
 
665
<h2>RC_FILE</h2>
 
666
<p>This variable contains the name of the resource file for the application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
667
<a name="res-file"></a>
 
668
<h2>RES_FILE</h2>
 
669
<p>This variable contains the name of the resource file for the application. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
670
<a name="srcmoc"></a>
 
671
<h2>SRCMOC</h2>
 
672
<p>This variable is set by <tt>qmake</tt> if files can be found that contain the <a href="metaobjects.html#q-object">Q_OBJECT</a> macro. <tt>SRCMOC</tt> contains the name of all the generated moc files. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
673
<a name="target-ext"></a>
 
674
<h2>TARGET_EXT</h2>
 
675
<p>This variable specifies the target's extension. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
676
<a name="target-x"></a>
 
677
<h2>TARGET_x</h2>
 
678
<p>This variable specifies the target's extension with a major version number. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
679
<a name="target-x-y-z"></a>
 
680
<h2>TARGET_x.y.z</h2>
 
681
<p>This variable specifies the target's extension with version number. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
682
<a name="uicimpls"></a>
 
683
<h2>UICIMPLS</h2>
 
684
<p>This variable contains a list of the generated implementation files by UIC. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
685
<a name="uicobjects"></a>
 
686
<h2>UICOBJECTS</h2>
 
687
<p>This variable is generated from the UICIMPLS variable. The extension of each file will have been replaced by .o (Unix) or .obj (Win32). The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
688
<a name="ver-maj"></a>
 
689
<h2>VER_MAJ</h2>
 
690
<p>This variable contains the major version number of the library, if the <tt>lib</tt> <a href="#template">template</a> is specified.</p>
 
691
<a name="ver-min"></a>
 
692
<h2>VER_MIN</h2>
 
693
<p>This variable contains the minor version number of the library, if the <tt>lib</tt> <a href="#template">template</a> is specified.</p>
 
694
<a name="ver-pat"></a>
 
695
<h2>VER_PAT</h2>
 
696
<p>This variable contains the patch version number of the library, if the <tt>lib</tt> <a href="#template">template</a> is specified.</p>
 
697
<a name="qmake-ext-moc"></a>
 
698
<h2>QMAKE_EXT_MOC</h2>
 
699
<p>This variable changes the extention used on included moc files.</p>
 
700
<p>See also <a href="qmake-environment-reference.html#extensions">File Extensions</a>.</p>
 
701
<a name="qmake-ext-ui"></a>
 
702
<h2>QMAKE_EXT_UI</h2>
 
703
<p>This variable changes the extention used on /e Designer UI files.</p>
 
704
<p>See also <a href="qmake-environment-reference.html#extensions">File Extensions</a>.</p>
 
705
<a name="qmake-ext-prl"></a>
 
706
<h2>QMAKE_EXT_PRL</h2>
 
707
<p>This variable changes the extention used on created PRL files.</p>
 
708
<p>See also <a href="qmake-environment-reference.html#extensions">File Extensions</a>, <a href="qmake-environment-reference.html#libdepend">Library Dependencies</a>.</p>
 
709
<a name="qmake-ext-lex"></a>
 
710
<h2>QMAKE_EXT_LEX</h2>
 
711
<p>This variable changes the extention used on files given to lex.</p>
 
712
<p>See also <a href="qmake-environment-reference.html#extensions">File Extensions</a>, <a href="#lexsources">LEXSOURCES</a>.</p>
 
713
<a name="qmake-ext-yacc"></a>
 
714
<h2>QMAKE_EXT_YACC</h2>
 
715
<p>This variable changes the extention used on files given to yacc.</p>
 
716
<p>See also <a href="qmake-environment-reference.html#extensions">File Extensions</a>, <a href="#yaccsources">YACCSOURCES</a>.</p>
 
717
<a name="qmake-ext-obj"></a>
 
718
<h2>QMAKE_EXT_OBJ</h2>
 
719
<p>This variable changes the extention used on generated object files.</p>
 
720
<p>See also <a href="qmake-environment-reference.html#extensions">File Extensions</a>.</p>
 
721
<a name="qmake-ext-cpp"></a>
 
722
<h2>QMAKE_EXT_CPP</h2>
 
723
<p>This variable changes the interpretation of all suffixes in this list of values as files of type C++ source code.</p>
 
724
<p>See also <a href="qmake-environment-reference.html#extensions">File Extensions</a>.</p>
 
725
<a name="qmake-ext-h"></a>
 
726
<h2>QMAKE_EXT_H</h2>
 
727
<p>This variable changes the interpretation of all suffixes in this list of values as files of type C header files.</p>
 
728
<p>See also <a href="qmake-environment-reference.html#extensions">File Extensions</a>.</p>
 
729
<a name="yaccimpls"></a>
 
730
<h2>YACCIMPLS</h2>
 
731
<p>This variable contains a list of yacc source files. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
732
<a name="yaccobjects"></a>
 
733
<h2>YACCOBJECTS</h2>
 
734
<p>This variable contains a list of yacc object files. The value of this variable is typically handled by <tt>qmake</tt> or <a href="#qmakespec">qmake.conf</a> and rarely needs to be modified.</p>
 
735
<p>
 
736
[Previous: <a href="qmake-reference.html">qmake Reference</a>]
 
737
[<a href="qmake-manual.html">Contents</a>]
 
738
[Next: <a href="qmake-function-reference.html">qmake Function Reference</a>]
 
739
</p>
 
740
<p /><address><hr /><div align="center">
 
741
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
742
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
743
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
744
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
745
</tr></table></div></address></body>
 
746
</html>