| 
									
										
										
										
											2012-03-30 09:06:30 +08:00
										 |  |  | greaterThan(QT_MAJOR_VERSION, 4) { | 
					
						
							| 
									
										
										
										
											2012-10-18 16:19:39 +02:00
										 |  |  |     HELPGENERATOR = $$targetPath($$[QT_INSTALL_BINS]/qhelpgenerator) -platform minimal | 
					
						
							| 
									
										
										
										
											2012-03-30 09:06:30 +08:00
										 |  |  |     QDOC_BIN = $$targetPath($$[QT_INSTALL_BINS]/qdoc) | 
					
						
							| 
									
										
										
										
											2013-02-05 17:08:54 +01:00
										 |  |  |     COMPAT = | 
					
						
							| 
									
										
										
										
											2012-03-30 09:06:30 +08:00
										 |  |  | } else { | 
					
						
							| 
									
										
										
										
											2012-10-18 16:19:39 +02:00
										 |  |  |     HELPGENERATOR = $$targetPath($$[QT_INSTALL_BINS]/qhelpgenerator) | 
					
						
							| 
									
										
										
										
											2012-03-30 09:06:30 +08:00
										 |  |  |     QDOC_BIN = $$targetPath($$[QT_INSTALL_BINS]/qdoc3) | 
					
						
							| 
									
										
										
										
											2013-02-05 17:08:54 +01:00
										 |  |  |     COMPAT = -qt4 | 
					
						
							| 
									
										
										
										
											2012-03-30 09:06:30 +08:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-08-21 12:52:54 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-11-01 18:51:20 +01:00
										 |  |  | VERSION_TAG = $$replace(QTCREATOR_VERSION, "[-.]", ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-06-20 13:21:36 +02:00
										 |  |  | isEmpty(LICENSE_TYPE):LICENSE_TYPE=opensource | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-05-15 09:57:07 +02:00
										 |  |  | # unset the installdir for qdoc, so we force generation | 
					
						
							|  |  |  | # of URLs for the links to the Qt documentation | 
					
						
							|  |  |  | QMAKE_DOCS_INSTALLDIR = | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-01-25 22:14:17 +01:00
										 |  |  | defineReplace(cmdEnv) { | 
					
						
							|  |  |  |     !equals(QMAKE_DIR_SEP, /): 1 ~= s,^(.*)$,(set \\1) &&,g | 
					
						
							|  |  |  |     return("$$1") | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  | defineReplace(qdoc) { | 
					
						
							| 
									
										
										
										
											2013-06-20 13:21:36 +02:00
										 |  |  |     return("$$cmdEnv(SRCDIR=$$PWD OUTDIR=$$1 QTC_VERSION=$$QTCREATOR_VERSION QTC_VERSION_TAG=$$VERSION_TAG QTC_LICENSE_TYPE=$$LICENSE_TYPE QT_INSTALL_DOCS=$$[QT_INSTALL_DOCS]) $$QDOC_BIN") | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-01-07 15:47:25 +01:00
										 |  |  | QHP_FILE = $$OUT_PWD/doc/html/qtcreator.qhp | 
					
						
							| 
									
										
										
										
											2009-11-02 21:36:26 +01:00
										 |  |  | QCH_FILE = $$IDE_DOC_PATH/qtcreator.qch | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-09-27 11:21:21 +02:00
										 |  |  | HELP_DEP_FILES = $$PWD/src/qtcreator.qdoc \ | 
					
						
							| 
									
										
										
										
											2010-06-15 14:45:14 +02:00
										 |  |  |                  $$PWD/addressbook-sdk.qdoc \ | 
					
						
							| 
									
										
										
										
											2010-12-17 20:21:27 +01:00
										 |  |  |                  $$PWD/config/compat.qdocconf \ | 
					
						
							|  |  |  |                  $$PWD/config/macros.qdocconf \ | 
					
						
							|  |  |  |                  $$PWD/config/qt-cpp-ignore.qdocconf \ | 
					
						
							|  |  |  |                  $$PWD/config/qt-defines.qdocconf \ | 
					
						
							|  |  |  |                  $$PWD/config/qt-html-templates.qdocconf \ | 
					
						
							|  |  |  |                  $$PWD/config/qt-html-default-styles.qdocconf \ | 
					
						
							| 
									
										
										
										
											2013-02-05 17:08:54 +01:00
										 |  |  |                  $$PWD/qtcreator$${COMPAT}.qdocconf | 
					
						
							| 
									
										
										
										
											2010-06-15 14:45:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-05 17:08:54 +01:00
										 |  |  | html_docs.commands = $$qdoc($$OUT_PWD/doc/html) $$PWD/qtcreator$${COMPAT}.qdocconf | 
					
						
							| 
									
										
										
										
											2010-06-15 14:45:14 +02:00
										 |  |  | html_docs.depends += $$HELP_DEP_FILES | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | html_docs.files = $$QHP_FILE | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-05 17:08:54 +01:00
										 |  |  | html_docs_online.commands = $$qdoc($$OUT_PWD/doc/html) $$PWD/qtcreator-online$${COMPAT}.qdocconf | 
					
						
							| 
									
										
										
										
											2010-06-15 14:45:14 +02:00
										 |  |  | html_docs_online.depends += $$HELP_DEP_FILES | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-11-02 21:36:26 +01:00
										 |  |  | qch_docs.commands = $$HELPGENERATOR -o \"$$QCH_FILE\" $$QHP_FILE | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | qch_docs.depends += html_docs | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-31 17:23:38 +02:00
										 |  |  | DEV_QHP_FILE = $$OUT_PWD/doc/html-dev/qtcreator-dev.qhp | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  | DEV_QCH_FILE = $$IDE_DOC_PATH/qtcreator-dev.qch | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | DEV_HELP_DEP_FILES = \ | 
					
						
							|  |  |  |     $$PWD/api/qtcreator-api.qdoc \ | 
					
						
							|  |  |  |     $$PWD/api/coding-style.qdoc \ | 
					
						
							|  |  |  |     $$PWD/api/external-tool-spec.qdoc \ | 
					
						
							|  |  |  |     $$PWD/api/qtcreator-dev.qdoc \ | 
					
						
							|  |  |  |     $$PWD/api/qtcreator-dev-wizards.qdoc \ | 
					
						
							| 
									
										
										
										
											2011-10-10 08:32:07 +02:00
										 |  |  |     $$PWD/api/creating-plugins.qdoc \ | 
					
						
							|  |  |  |     $$PWD/api/getting-and-building.qdoc \ | 
					
						
							|  |  |  |     $$PWD/api/first-plugin.qdoc \ | 
					
						
							| 
									
										
										
										
											2011-11-25 12:03:08 +01:00
										 |  |  |     $$PWD/api/plugin-specifications.qdoc \ | 
					
						
							| 
									
										
										
										
											2011-11-28 08:27:50 +01:00
										 |  |  |     $$PWD/api/plugin-lifecycle.qdoc \ | 
					
						
							| 
									
										
										
										
											2013-04-02 09:58:16 +02:00
										 |  |  |     $$PWD/api/pluginmanager.qdoc \ | 
					
						
							| 
									
										
										
										
											2013-02-05 17:08:54 +01:00
										 |  |  |     $$PWD/api/qtcreator-dev$${COMPAT}.qdocconf | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-05 17:08:54 +01:00
										 |  |  | dev_html_docs.commands = $$qdoc($$OUT_PWD/doc/html-dev) $$PWD/api/qtcreator-dev$${COMPAT}.qdocconf | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  | dev_html_docs.depends += $$DEV_HELP_DEP_FILES | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2013-02-05 17:08:54 +01:00
										 |  |  | dev_html_docs_online.commands = $$qdoc($$OUT_PWD/doc/html-dev) $$PWD/api/qtcreator-dev-online$${COMPAT}.qdocconf | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  | dev_html_docs_online.depends += $$DEV_HELP_DEP_FILES | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | dev_qch_docs.commands = $$HELPGENERATOR -o \"$$DEV_QCH_FILE\" $$DEV_QHP_FILE | 
					
						
							|  |  |  | dev_qch_docs.depends += dev_html_docs | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2012-01-26 20:24:46 +01:00
										 |  |  | !macx { | 
					
						
							| 
									
										
										
										
											2011-05-31 11:38:39 +02:00
										 |  |  |     inst_qch_docs.files = $$QCH_FILE | 
					
						
							| 
									
										
										
										
											2012-09-03 18:24:02 +02:00
										 |  |  |     inst_qch_docs.path = $$QTC_PREFIX/share/doc/qtcreator | 
					
						
							| 
									
										
										
										
											2011-11-14 12:02:06 +01:00
										 |  |  |     inst_qch_docs.CONFIG += no_check_exist no_default_install | 
					
						
							| 
									
										
										
										
											2011-05-31 11:38:39 +02:00
										 |  |  |     INSTALLS += inst_qch_docs | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |     inst_dev_qch_docs.files = $$DEV_QCH_FILE | 
					
						
							| 
									
										
										
										
											2012-09-03 18:24:02 +02:00
										 |  |  |     inst_dev_qch_docs.path = $$QTC_PREFIX/share/doc/qtcreator | 
					
						
							| 
									
										
										
										
											2011-11-14 12:02:06 +01:00
										 |  |  |     inst_dev_qch_docs.CONFIG += no_check_exist no_default_install | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  |     INSTALLS += inst_dev_qch_docs | 
					
						
							| 
									
										
										
										
											2011-11-14 12:02:06 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     install_docs.depends = install_inst_qch_docs install_inst_dev_qch_docs | 
					
						
							|  |  |  |     QMAKE_EXTRA_TARGETS += install_docs | 
					
						
							| 
									
										
										
										
											2009-01-20 14:58:10 +01:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  | docs_online.depends = html_docs_online dev_html_docs_online | 
					
						
							|  |  |  | docs.depends = qch_docs dev_qch_docs | 
					
						
							|  |  |  | QMAKE_EXTRA_TARGETS += html_docs dev_html_docs html_docs_online dev_html_docs_online qch_docs dev_qch_docs docs docs_online | 
					
						
							| 
									
										
										
										
											2008-12-02 12:01:29 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2011-05-31 17:13:23 +02:00
										 |  |  | OTHER_FILES = $$HELP_DEP_FILES $$DEV_HELP_DEP_FILES | 
					
						
							| 
									
										
										
										
											2010-12-08 16:01:31 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | fixnavi.commands = \ | 
					
						
							|  |  |  |     cd $$targetPath($$PWD) && \ | 
					
						
							| 
									
										
										
										
											2011-11-08 17:44:31 +01:00
										 |  |  |     perl fixnavi.pl -Dqcmanual -Dqtquick src | 
					
						
							| 
									
										
										
										
											2010-12-08 16:01:31 +01:00
										 |  |  | QMAKE_EXTRA_TARGETS += fixnavi |