The goal is to be free of unused X class of problems. For this, CI and any "serious" builds will fail on warnings. Debug builds, used in development, will warn by default but not fail. In addition, the 'strict' build option is added for when the debug build should fail on unused warnings as well.
		
			
				
	
	
		
			17 lines
		
	
	
		
			516 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			516 B
		
	
	
	
		
			Meson
		
	
	
	
	
	
option('depdatadir',
 | 
						|
       type : 'string',
 | 
						|
       value : '',
 | 
						|
       description : 'System data path. Will be searched for definitions instead of datadir when provided')
 | 
						|
 | 
						|
option('tests',
 | 
						|
       type: 'boolean', value: true,
 | 
						|
       description: 'Whether to compile unit tests')
 | 
						|
 | 
						|
option('legacy',
 | 
						|
       type: 'boolean', value: false,
 | 
						|
       description: 'Build with Deban Buster versions of dependencies')
 | 
						|
 | 
						|
option('strict',
 | 
						|
       type: 'boolean', value: true,
 | 
						|
       description: 'Turn more warnings into errors')
 |