📄 qmake-manual-7.html
字号:
<p>The following variables are also recognized by <em>qmake</em> but are either internal or very rarely used.</p><a name="DESTDIR_TARGET"></a><h5><a name="4-2-1"></a>DESTDIR_TARGET</h5><p>This variable is set internally by <em>qmake</em>, which is basically the DESTDIR variable with the TARGET variable appened at the end. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="DSP_TEMPLATE"></a><h5><a name="4-2-2"></a>DSP_TEMPLATE</h5><p>This variable is set internally by <em>qmake</em>, which specifies where the dsp template file for basing generated dsp files is stored. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="LEXIMPLS"></a><h5><a name="4-2-3"></a>LEXIMPLS</h5><p>This variable contains a list of lex implementation files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="LEXOBJECTS"></a><h5><a name="4-2-4"></a>LEXOBJECTS</h5><p>This variable contains the names of intermediate lex object files.The value of this variable is typically handled by <em>qmake</em> and rarely needs to be modified.</p><a name="MAKEFILE"></a><h5><a name="4-2-5"></a>MAKEFILE</h5><p>This variable specifies the name of the makefile which <em>qmake</em> should use when outputting the dependency information for building a project. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="MAKEFILE_GENERATOR"></a><h5><a name="4-2-6"></a>MAKEFILE_GENERATOR</h5><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 <em>qmake</em> and rarely needs to be modified.</p><a name="OBJECTS"></a><h5><a name="4-2-7"></a>OBJECTS</h5><p>This variable is generated from the <a href="qmake-manual-7.html#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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="OBJMOC"></a><h5><a name="4-2-8"></a>OBJMOC</h5><p>This variable is set by <em>qmake</em> if files can be found that contain the Q_OBJECT macro. <tt>OBJMOC</tt> contains the name of all intermediate moc object files. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="PRECOMPH"></a><h5><a name="4-2-9"></a>PRECOMPH</h5><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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE"></a><h5><a name="4-2-10"></a>QMAKE</h5><p>This variable contains the name of the <em>qmake</em> program itself and is placed in generated makefiles. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKESPEC_systemvariable"></a><h5><a name="4-2-11"></a>QMAKESPEC</h5><p>This variable contains the name of the <em>qmake</em> configuration to use when generating makefiles. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified. Use the <a href="qmake-manual-7.html#QMAKESPEC">QMAKESPEC</a> environment variable instead.</p><a name="QMAKE_AIX_SHLIB"></a><h5><a name="4-2-12"></a>QMAKE_AIX_SHLIB</h5><p>If this variable is not empty, then this variable tells <em>qmake</em> to generate the <a href="qmake-manual-7.html#TARGET">TARGET</a> as an AIX shared library.</p><a name="QMAKE_APP_FLAG"></a><h5><a name="4-2-13"></a>QMAKE_APP_FLAG</h5><p>This variable is empty unless the 'app' <a href="qmake-manual-7.html#TEMPLATE">TEMPLATE</a> is specified. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified. Use the following instead:</p><pre>app { #conditional code for 'app' template here}</pre><a name="QMAKE_APP_OR_DLL"></a><h5><a name="4-2-14"></a>QMAKE_APP_OR_DLL</h5><p>This variable is empty unless the 'app' or 'dll' <a href="qmake-manual-7.html#TEMPLATE">TEMPLATE</a> is specified. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_AR_CMD"></a><h5><a name="4-2-15"></a>QMAKE_AR_CMD</h5><p><em>This is used on Unix platforms only</em></p><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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_DEBUG"></a><h5><a name="4-2-16"></a>QMAKE_CFLAGS_DEBUG</h5><p>This variable contains the flags for the C compiler in debug mode.The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_MT"></a><h5><a name="4-2-17"></a>QMAKE_CFLAGS_MT</h5><p>This variable contains the compiler flags for creating a multi-threaded application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_MT_DBG"></a><h5><a name="4-2-18"></a>QMAKE_CFLAGS_MT_DBG</h5><p>This variable contains the compiler flags for creating a debuggable multi-threaded application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_MT_DLL"></a><h5><a name="4-2-19"></a>QMAKE_CFLAGS_MT_DLL</h5><p><em>This is used on Windows only</em></p><p>This variable contains the compiler flags for creating a multi-threaded dll. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_MT_DLLDBG"></a><h5><a name="4-2-20"></a>QMAKE_CFLAGS_MT_DLLDBG</h5><p><em>This is used on Windows only</em></p><p>This variable contains the compiler flags for creating a debuggable multi-threaded dll. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_RELEASE"></a><h5><a name="4-2-21"></a>QMAKE_CFLAGS_RELEASE</h5><p>This variable contains the compiler flags for creating a non-debuggable application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_SHLIB"></a><h5><a name="4-2-22"></a>QMAKE_CFLAGS_SHLIB</h5><p><em>This is used on Unix platforms only</em></p><p>This variable contains the compiler flags for creating a shared library. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_THREAD"></a><h5><a name="4-2-23"></a>QMAKE_CFLAGS_THREAD</h5><p>This variable contains the compiler flags for creating a multi-threaded application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_WARN_OFF"></a><h5><a name="4-2-24"></a>QMAKE_CFLAGS_WARN_OFF</h5><p>This variable is not empty if the warn_off <a href="qmake-manual-7.html#TEMPLATE">TEMPLATE</a> option is specified. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CFLAGS_WARN_ON"></a><h5><a name="4-2-25"></a>QMAKE_CFLAGS_WARN_ON</h5><p>This variable is not empty if the warn_on <a href="qmake-manual-7.html#TEMPLATE">TEMPLATE</a> option is specified. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CLEAN"></a><h5><a name="4-2-26"></a>QMAKE_CLEAN</h5><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 "make clean".</p><a name="QMAKE_CXXFLAGS_DEBUG"></a><h5><a name="4-2-27"></a>QMAKE_CXXFLAGS_DEBUG</h5><p>This variable contains the C++ compiler flags for creating a debuggable application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_MT"></a><h5><a name="4-2-28"></a>QMAKE_CXXFLAGS_MT</h5><p>This variable contains the C++ compiler flags for creating a multi-threaded application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_MT_DBG"></a><h5><a name="4-2-29"></a>QMAKE_CXXFLAGS_MT_DBG</h5><p>This variable contains the C++ compiler flags for creating a debuggable multi-threaded application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_MT_DLL"></a><h5><a name="4-2-30"></a>QMAKE_CXXFLAGS_MT_DLL</h5><p><tt>This is used on Windows only</tt></p><p>This variable contains the C++ compiler flags for creating a multi-threaded dll. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_MT_DLLDBG"></a><h5><a name="4-2-31"></a>QMAKE_CXXFLAGS_MT_DLLDBG</h5><p><tt>This is used on Windows only</tt></p><p>This variable contains the C++ compiler flags for creating a multi-threaded debuggable dll. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_RELEASE"></a><h5><a name="4-2-32"></a>QMAKE_CXXFLAGS_RELEASE</h5><p>This variable contains the C++ compiler flags for creating an application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_SHLIB"></a><h5><a name="4-2-33"></a>QMAKE_CXXFLAGS_SHLIB</h5><p>This variable contains the C++ compiler flags for creating a shared library. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_THREAD"></a><h5><a name="4-2-34"></a>QMAKE_CXXFLAGS_THREAD</h5><p>This variable contains the C++ compiler flags for creating a multi-threaded application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_WARN_OFF"></a><h5><a name="4-2-35"></a>QMAKE_CXXFLAGS_WARN_OFF</h5><p>This variable contains the C++ compiler flags for suppressing compiler warnings. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_CXXFLAGS_WARN_ON"></a><h5><a name="4-2-36"></a>QMAKE_CXXFLAGS_WARN_ON</h5><p>This variable contains C++ compiler flags for generating compiler warnings. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_EXTENSION_SHLIB"></a><h5><a name="4-2-37"></a>QMAKE_EXTENSION_SHLIB</h5><p>This variable contains the extention for shared libraries. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_FAILED_REQUIREMENTS"></a><h5><a name="4-2-38"></a>QMAKE_FAILED_REQUIREMENTS</h5><p>This variable contains the list of requirements that were failed to be met when <em>qmake</em> was used. For example, the sql module is needed and wasn't compiled into Qt. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_FILETAGS"></a><h5><a name="4-2-39"></a>QMAKE_FILETAGS</h5><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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_HPUX_SHLIB"></a><h5><a name="4-2-40"></a>QMAKE_HPUX_SHLIB</h5><p><em>This is used on Unix platforms only</em></p><p>If this variable is not empty then this variable tells <em>qmake</em> to generate the <a href="qmake-manual-7.html#TARGET">TARGET</a> as an HPUX shared library. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-41"></a>QMAKE_HPUX_SHLIBS</h5><p><em>This is used on Unix platforms only</em></p><p>If this variable is not empty then this variable tells <em>qmake</em> to generate the <a href="qmake-manual-7.html#TARGET">TARGET</a> as an HPUX shared library. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_INCDIR"></a><h5><a name="4-2-42"></a>QMAKE_INCDIR</h5><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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="TARGETDEPS"></a><h5><a name="4-2-43"></a>TARGETDEPS</h5><p>All libraries that the <a href="qmake-manual-7.html#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><a name="QMAKE_INCDIR_OPENGL"></a><h5><a name="4-2-44"></a>QMAKE_INCDIR_OPENGL</h5><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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_INCDIR_QT"></a><h5><a name="4-2-45"></a>QMAKE_INCDIR_QT</h5><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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_INCDIR_THREAD"></a><h5><a name="4-2-46"></a>QMAKE_INCDIR_THREAD</h5><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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_INCDIR_X11"></a><h5><a name="4-2-47"></a>QMAKE_INCDIR_X11</h5><p><em>This is used on Unix platforms only</em></p><p>This variable contains the location of X11 header file paths to be added to INCLUDEPATH when building a X11 application. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><a name="QMAKE_LFLAGS_CONSOLE"></a><h5><a name="4-2-48"></a>QMAKE_LFLAGS_CONSOLE</h5><p><em>This is used on Windows only</em></p><p>This variable contains link flags when building console programs. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-49"></a>QMAKE_LFLAGS_CONSOLE_DLL</h5><p><em>This is used on Windows only</em></p><p>This variable contains link flags when building console dlls. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-50"></a>QMAKE_LFLAGS_DEBUG</h5><p>This variable contains link flags when building debuggable applications. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-51"></a>QMAKE_LFLAGS_PLUGIN</h5><p>This variable contains link flags when building plugins. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-52"></a>QMAKE_LFLAGS_QT_DLL</h5><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 <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-53"></a>QMAKE_LFLAGS_RELEASE</h5><p>This variable contains link flags when building applications for release. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-54"></a>QMAKE_LFLAGS_SHAPP</h5><p>This variable contains link flags when building applications which are using the 'app' template. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-55"></a>QMAKE_LFLAGS_SHLIB</h5><p>This variable contains link flags when building shared libraries The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-56"></a>QMAKE_LFLAGS_SONAME</h5><p>This variable specifies the name of shared objects, such as .so or .dll. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-57"></a>QMAKE_LFLAGS_THREAD</h5><p>This variable contains link flags when building multi-threaded projects. The value of this variable is typically handled by <em>qmake</em> or <a href="qmake-manual-7.html#QMAKESPEC">qmake.conf</a> and rarely needs to be modified.</p><h5><a name="4-2-58"></a>QMAKE_LFLAGS_WINDOWS</h5>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -