| 
									
										
										
										
											2016-04-22 13:43:16 +02:00
										 |  |  | import qbs | 
					
						
							| 
									
										
										
										
											2016-12-06 16:18:16 +01:00
										 |  |  | import qbs.File | 
					
						
							| 
									
										
										
										
											2016-04-22 13:43:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | Project { | 
					
						
							|  |  |  |     name: "documentation" | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     QtcDocumentation { | 
					
						
							|  |  |  |         name: "user doc online" | 
					
						
							|  |  |  |         isOnlineDoc: true | 
					
						
							| 
									
										
										
										
											2020-01-27 12:09:40 +01:00
										 |  |  |         mainDocConfFile: "qtcreator/qtcreator-online.qdocconf" | 
					
						
							| 
									
										
										
										
											2016-04-22 13:43:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         files: [ | 
					
						
							|  |  |  |             "src/**/*", | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     QtcDocumentation { | 
					
						
							|  |  |  |         name: "user doc offline" | 
					
						
							|  |  |  |         isOnlineDoc: false | 
					
						
							| 
									
										
										
										
											2020-01-27 12:09:40 +01:00
										 |  |  |         mainDocConfFile: "qtcreator/qtcreator.qdocconf" | 
					
						
							| 
									
										
										
										
											2016-04-22 13:43:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         files: [ | 
					
						
							|  |  |  |             "src/**/*", | 
					
						
							|  |  |  |         ] | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     QtcDocumentation { | 
					
						
							|  |  |  |         name: "API doc online" | 
					
						
							|  |  |  |         isOnlineDoc: true | 
					
						
							| 
									
										
										
										
											2020-01-27 12:09:40 +01:00
										 |  |  |         mainDocConfFile: "qtcreatordev/qtcreator-dev-online.qdocconf" | 
					
						
							| 
									
										
										
										
											2016-04-22 13:43:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         Group { | 
					
						
							|  |  |  |             name: "sources" | 
					
						
							|  |  |  |             files: [ | 
					
						
							|  |  |  |                 "api/*.qdoc", | 
					
						
							|  |  |  |                 "api/**/*", | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  |             excludeFiles: [mainDocConfFile] | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     QtcDocumentation { | 
					
						
							|  |  |  |         name: "API doc offline" | 
					
						
							|  |  |  |         isOnlineDoc: false | 
					
						
							| 
									
										
										
										
											2020-01-27 12:09:40 +01:00
										 |  |  |         mainDocConfFile: "qtcreatordev/qtcreator-dev.qdocconf" | 
					
						
							| 
									
										
										
										
											2016-04-22 13:43:16 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |         Group { | 
					
						
							|  |  |  |             name: "sources" | 
					
						
							|  |  |  |             files: [ | 
					
						
							|  |  |  |                 "api/*.qdoc", | 
					
						
							|  |  |  |                 "api/**/*", | 
					
						
							|  |  |  |             ] | 
					
						
							|  |  |  |             excludeFiles: [mainDocConfFile] | 
					
						
							|  |  |  |         } | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2016-12-06 16:18:16 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     property string qbsBaseDir: project.sharedSourcesDir + "/qbs" | 
					
						
							|  |  |  |     property bool qbsSubModuleExists: File.exists(qbsBaseDir + "/qbs.qbs") | 
					
						
							|  |  |  |     Properties { | 
					
						
							|  |  |  |         condition: qbsSubModuleExists | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         references: [qbsBaseDir + "/doc/doc.qbs"] | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |         // The first entry is for overriding qbs' own qbsbuildconfig module.
 | 
					
						
							|  |  |  |         qbsSearchPaths: [project.ide_source_tree + "/qbs", qbsBaseDir + "/qbs-resources"] | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2016-04-22 13:43:16 +02:00
										 |  |  | } |