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

« back to all changes in this revision

Viewing changes to doc/html/qmake-advanced-usage.html

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2008-08-01 11:30:30 UTC
  • mto: (15.1.1 lenny) (1.3.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20080801113030-c33y1z0l21t6cj5r
Tags: upstream-4.4.1
ImportĀ upstreamĀ versionĀ 4.4.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
<!DOCTYPE html
3
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
4
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
 
<!-- /fasttmp/mkdist-qt-4.4.0-1209388211/qt-x11-opensource-src-4.4.0/doc/src/qmake-manual.qdoc -->
 
5
<!-- /fasttmp/mkdist-qt-4.4.1-1217326953/qt-all-opensource-src-4.4.1/doc/src/qmake-manual.qdoc -->
6
6
<head>
7
7
  <title>Qt 4.4: qmake Advanced Usage</title>
8
8
  <link rel="prev" href="qmake-platform-notes.html" />
189
189
<p><tt>qmake</tt> provides built-in functions that can be used as conditions when writing scopes. These functions do not return a value, but instead indicate &quot;success&quot; or &quot;failure&quot;:</p>
190
190
<pre> count(options, 2) {
191
191
     message(Both release and debug specified.)
192
 
 }
193
 
 #! [2]</pre>
 
192
 }</pre>
194
193
<p>This type of function should be used in conditional expressions only.</p>
195
194
<p>It is possible to define your own functions to provide conditions for scopes. The following example tests whether each file in a list exists and returns true if they all exist, or false if not:</p>
196
195
<pre> defineTest(allFiles) {
241
240
<table width="100%" cellspacing="0" border="0"><tr class="address">
242
241
<td width="30%">Copyright &copy; 2008 <a href="trolltech.html">Trolltech</a></td>
243
242
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
244
 
<td width="30%" align="right"><div align="right">Qt 4.4.0</div></td>
 
243
<td width="30%" align="right"><div align="right">Qt 4.4.1</div></td>
245
244
</tr></table></div></address></body>
246
245
</html>