forked from qt-creator/qt-creator
		
	Most basic project management is implemented: - Project config/build - Build options accessible to user - Lists most build targets - Meson and Ninja added to kit setup - Basic project file tree with files known by Meson - Some basic meson and ninja process output parsing - Some project templates Missing features, that will come later: - Configurable project tree layout - Locators for Meson - Build importer - Access to Machine files for better user fine tuning - ... Fixes: QTCREATORBUG-18117 Change-Id: I2811e71562c113fb0fc6b6177bcf0698fa71ef63 Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
		
			
				
	
	
		
			20 lines
		
	
	
		
			708 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			708 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
| project('mesonsampleproject', 'cpp',default_options : ['cpp_std=c++11'])
 | |
| 
 | |
| # Documentation: https://mesonbuild.com/Qt5-module.html
 | |
| qt5 = import('qt5')
 | |
| qt5dep = dependency('qt5', modules : ['Core', 'Widgets'])
 | |
| 
 | |
| translations = qt5.compile_translations(ts_files : 'mesonsampleproject_fr_FR.ts', build_by_default : true)
 | |
| 
 | |
| generated_files = qt5.preprocess(
 | |
|                             moc_headers : 'mesonsampleproject.h',
 | |
|                             ui_files : 'mesonsampleproject.ui',
 | |
|                             dependencies: [qt5dep])
 | |
| 
 | |
| executable('mesonsampleproject'
 | |
|         , 'main.cpp'
 | |
|         , 'mesonsampleproject.cpp'
 | |
|         , generated_files
 | |
|         , dependencies : [qt5dep]
 | |
|         , install : true)
 |