mirror of
				https://github.com/swaywm/sway.git
				synced 2025-11-03 09:01:43 -05:00 
			
		
		
		
	Merge pull request #3178 from progandy/sysconfdir
Meson: Fix SYSCONFDIR definition
This commit is contained in:
		
						commit
						d9ed1f080b
					
				
					 1 changed files with 2 additions and 15 deletions
				
			
		
							
								
								
									
										17
									
								
								meson.build
									
										
									
									
									
								
							
							
						
						
									
										17
									
								
								meson.build
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -108,13 +108,7 @@ if scdoc.found()
 | 
			
		|||
	endforeach
 | 
			
		||||
endif
 | 
			
		||||
 | 
			
		||||
# If prefix is '/usr', sysconfdir will be explicitly set to '/etc' by Meson to
 | 
			
		||||
# enforce FHS compliance, so we should look for configs there as well.
 | 
			
		||||
if prefix == '/usr'
 | 
			
		||||
	add_project_arguments('-DSYSCONFDIR="/@0@"'.format(sysconfdir), language : 'c')
 | 
			
		||||
else
 | 
			
		||||
	add_project_arguments('-DSYSCONFDIR="/@0@/@1@"'.format(prefix, sysconfdir), language : 'c')
 | 
			
		||||
endif
 | 
			
		||||
add_project_arguments('-DSYSCONFDIR="/@0@"'.format(join_paths(prefix, sysconfdir)), language : 'c')
 | 
			
		||||
 | 
			
		||||
version = get_option('sway-version')
 | 
			
		||||
if version != ''
 | 
			
		||||
| 
						 | 
				
			
			@ -159,14 +153,7 @@ subdir('swaylock')
 | 
			
		|||
config = configuration_data()
 | 
			
		||||
config.set('datadir', join_paths(prefix, datadir))
 | 
			
		||||
config.set('prefix', prefix)
 | 
			
		||||
 | 
			
		||||
# If prefix is '/usr', sysconfdir will be explicitly set to '/etc' by Meson to
 | 
			
		||||
# enforce FHS compliance, so we should look for configs there as well.
 | 
			
		||||
if prefix == '/usr'
 | 
			
		||||
	config.set('sysconfdir', sysconfdir)
 | 
			
		||||
else
 | 
			
		||||
	config.set('sysconfdir', join_paths(prefix, sysconfdir))
 | 
			
		||||
endif
 | 
			
		||||
config.set('sysconfdir', join_paths(prefix, sysconfdir))
 | 
			
		||||
 | 
			
		||||
configure_file(
 | 
			
		||||
	configuration: config,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue