| 
									
										
										
										
											2014-03-11 11:30:14 +01:00
										 |  |  | import qbs 1.0 | 
					
						
							| 
									
										
										
										
											2012-02-09 14:30:09 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | Project { | 
					
						
							| 
									
										
										
										
											2013-08-26 17:50:02 +02:00
										 |  |  |     property bool withAutotests: qbs.buildVariant === "debug" | 
					
						
							| 
									
										
										
										
											2013-10-04 17:07:23 +02:00
										 |  |  |     property string ide_version_major: '3' | 
					
						
							| 
									
										
										
										
											2014-02-25 13:16:28 +01:00
										 |  |  |     property string ide_version_minor: '1' | 
					
						
							| 
									
										
										
										
											2013-05-30 13:52:50 +02:00
										 |  |  |     property string ide_version_release: '81' | 
					
						
							| 
									
										
										
										
											2012-02-09 14:30:09 +01:00
										 |  |  |     property string qtcreator_version: ide_version_major + '.' + ide_version_minor + '.' + ide_version_release | 
					
						
							| 
									
										
										
										
											2013-10-04 17:07:23 +02:00
										 |  |  |     property string ide_compat_version_major: '3' | 
					
						
							| 
									
										
										
										
											2014-02-25 13:16:28 +01:00
										 |  |  |     property string ide_compat_version_minor: '1' | 
					
						
							| 
									
										
										
										
											2013-07-05 10:40:51 +02:00
										 |  |  |     property string ide_compat_version_release: '81' | 
					
						
							|  |  |  |     property string qtcreator_compat_version: ide_compat_version_major + '.' + ide_compat_version_minor + '.' + ide_compat_version_release | 
					
						
							| 
									
										
										
										
											2013-09-05 14:56:45 +02:00
										 |  |  |     property path ide_source_tree: path | 
					
						
							| 
									
										
										
										
											2013-06-25 18:17:15 +02:00
										 |  |  |     property string ide_app_path: qbs.targetOS.contains("osx") ? "" : "bin" | 
					
						
							|  |  |  |     property string ide_app_target: qbs.targetOS.contains("osx") ? "Qt Creator" : "qtcreator" | 
					
						
							| 
									
										
										
										
											2013-10-01 10:33:41 +02:00
										 |  |  |     property pathList additionalPlugins: [] | 
					
						
							|  |  |  |     property pathList additionalLibs: [] | 
					
						
							|  |  |  |     property pathList additionalTools: [] | 
					
						
							| 
									
										
										
										
											2014-02-27 18:18:54 +01:00
										 |  |  |     property string libDirName: "lib" | 
					
						
							| 
									
										
										
										
											2013-04-19 16:20:22 +02:00
										 |  |  |     property string ide_library_path: { | 
					
						
							| 
									
										
										
										
											2013-06-25 18:17:15 +02:00
										 |  |  |         if (qbs.targetOS.contains("osx")) | 
					
						
							| 
									
										
										
										
											2013-04-19 16:20:22 +02:00
										 |  |  |             return ide_app_target + ".app/Contents/PlugIns" | 
					
						
							| 
									
										
										
										
											2013-06-20 14:43:33 +02:00
										 |  |  |         else if (qbs.targetOS.contains("windows")) | 
					
						
							| 
									
										
										
										
											2013-04-19 16:20:22 +02:00
										 |  |  |             return ide_app_path | 
					
						
							|  |  |  |         else | 
					
						
							| 
									
										
										
										
											2014-02-27 18:18:54 +01:00
										 |  |  |             return libDirName + "/qtcreator" | 
					
						
							| 
									
										
										
										
											2013-04-19 16:20:22 +02:00
										 |  |  |     } | 
					
						
							|  |  |  |     property string ide_plugin_path: { | 
					
						
							| 
									
										
										
										
											2013-06-25 18:17:15 +02:00
										 |  |  |         if (qbs.targetOS.contains("osx")) | 
					
						
							| 
									
										
										
										
											2013-04-19 16:20:22 +02:00
										 |  |  |             return ide_library_path | 
					
						
							| 
									
										
										
										
											2013-06-20 14:43:33 +02:00
										 |  |  |         else if (qbs.targetOS.contains("windows")) | 
					
						
							| 
									
										
										
										
											2014-02-27 18:18:54 +01:00
										 |  |  |             return libDirName + "/qtcreator/plugins" | 
					
						
							| 
									
										
										
										
											2013-04-19 16:20:22 +02:00
										 |  |  |         else | 
					
						
							|  |  |  |             return ide_library_path + "/plugins" | 
					
						
							|  |  |  |     } | 
					
						
							| 
									
										
										
										
											2013-06-25 18:17:15 +02:00
										 |  |  |     property string ide_data_path: qbs.targetOS.contains("osx") | 
					
						
							| 
									
										
										
										
											2013-06-20 14:43:33 +02:00
										 |  |  |             ? ide_app_target + ".app/Contents/Resources" | 
					
						
							|  |  |  |             : "share/qtcreator" | 
					
						
							| 
									
										
										
										
											2013-06-25 18:17:15 +02:00
										 |  |  |     property string ide_libexec_path: qbs.targetOS.contains("osx") | 
					
						
							| 
									
										
										
										
											2013-06-20 14:43:33 +02:00
										 |  |  |             ? ide_data_path | 
					
						
							|  |  |  |             : ide_app_path | 
					
						
							| 
									
										
										
										
											2013-06-25 18:17:15 +02:00
										 |  |  |     property string ide_doc_path: qbs.targetOS.contains("osx") | 
					
						
							| 
									
										
										
										
											2013-06-20 14:43:33 +02:00
										 |  |  |             ? ide_data_path + "/doc" | 
					
						
							|  |  |  |             : "share/doc/qtcreator" | 
					
						
							| 
									
										
										
										
											2013-06-25 18:17:15 +02:00
										 |  |  |     property string ide_bin_path: qbs.targetOS.contains("osx") | 
					
						
							| 
									
										
										
										
											2013-06-20 14:43:33 +02:00
										 |  |  |             ? ide_app_target + ".app/Contents/MacOS" | 
					
						
							|  |  |  |             : ide_app_path | 
					
						
							| 
									
										
										
										
											2013-09-05 17:24:24 +02:00
										 |  |  |     property bool testsEnabled: qbs.getenv("TEST") || qbs.buildVariant === "debug" | 
					
						
							|  |  |  |     property stringList generalDefines: [ | 
					
						
							|  |  |  |         "QT_CREATOR", | 
					
						
							| 
									
										
										
										
											2014-02-27 18:18:54 +01:00
										 |  |  |         'IDE_LIBRARY_BASENAME="' + libDirName + '"', | 
					
						
							| 
									
										
										
										
											2013-09-05 17:24:24 +02:00
										 |  |  |         "QT_DISABLE_DEPRECATED_BEFORE=0x040900", | 
					
						
							|  |  |  |         "QT_NO_CAST_TO_ASCII", | 
					
						
							|  |  |  |         "QT_NO_CAST_FROM_ASCII" | 
					
						
							|  |  |  |     ].concat(testsEnabled ? ["WITH_TESTS"] : []) | 
					
						
							| 
									
										
										
										
											2013-10-02 17:52:45 +02:00
										 |  |  |     qbsSearchPaths: "qbs" | 
					
						
							| 
									
										
										
										
											2012-02-09 14:30:09 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  |     references: [ | 
					
						
							| 
									
										
										
										
											2013-06-21 13:12:30 +02:00
										 |  |  |         "src/src.qbs", | 
					
						
							| 
									
										
										
										
											2012-02-09 14:30:09 +01:00
										 |  |  |         "share/share.qbs", | 
					
						
							| 
									
										
										
										
											2012-09-24 12:02:35 +02:00
										 |  |  |         "share/qtcreator/translations/translations.qbs", | 
					
						
							| 
									
										
										
										
											2013-08-26 17:50:02 +02:00
										 |  |  |         "tests/tests.qbs" | 
					
						
							| 
									
										
										
										
											2012-02-09 14:30:09 +01:00
										 |  |  |     ] | 
					
						
							|  |  |  | } |