mirror of
				https://gitlab.freedesktop.org/pipewire/pipewire.git
				synced 2025-11-03 09:01:54 -05:00 
			
		
		
		
	meson: improve tools build
Build the tools and sources from a list.
This commit is contained in:
		
							parent
							
								
									923d88bd35
								
							
						
					
					
						commit
						3dfd7f26b9
					
				
					 1 changed files with 15 additions and 49 deletions
				
			
		| 
						 | 
					@ -1,56 +1,22 @@
 | 
				
			||||||
executable('pw-mon',
 | 
					tools_sources = [
 | 
				
			||||||
	'pw-mon.c',
 | 
					  [ 'pw-mon', [ 'pw-mon.c' ] ],
 | 
				
			||||||
	c_args : [ '-D_GNU_SOURCE' ],
 | 
					  [ 'pw-cli', [ 'pw-cli.c' ] ],
 | 
				
			||||||
	install: true,
 | 
					  [ 'pw-dot', [ 'pw-dot.c' ] ],
 | 
				
			||||||
	dependencies : [pipewire_dep],
 | 
					  [ 'pw-dump', [ 'pw-dump.c' ] ],
 | 
				
			||||||
)
 | 
					  [ 'pw-profiler', [ 'pw-profiler.c' ] ],
 | 
				
			||||||
executable('pw-cli',
 | 
					  [ 'pw-mididump', [ 'pw-mididump.c', 'midifile.c' ] ],
 | 
				
			||||||
	'pw-cli.c',
 | 
					  [ 'pw-metadata', [ 'pw-metadata.c' ] ],
 | 
				
			||||||
	c_args : [ '-D_GNU_SOURCE' ],
 | 
					  [ 'pw-loopback', [ 'pw-loopback.c' ] ],
 | 
				
			||||||
	install: true,
 | 
					]
 | 
				
			||||||
	dependencies : [pipewire_dep],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
executable('pw-dot',
 | 
					 | 
				
			||||||
	'pw-dot.c',
 | 
					 | 
				
			||||||
	c_args : [ '-D_GNU_SOURCE' ],
 | 
					 | 
				
			||||||
	install: true,
 | 
					 | 
				
			||||||
	dependencies : [pipewire_dep],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
executable('pw-dump',
 | 
					foreach t : tools_sources
 | 
				
			||||||
	'pw-dump.c',
 | 
					  executable(t.get(0),
 | 
				
			||||||
	c_args : [ '-D_GNU_SOURCE' ],
 | 
						t.get(1),
 | 
				
			||||||
	install: true,
 | 
					 | 
				
			||||||
	dependencies : [pipewire_dep],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
executable('pw-profiler',
 | 
					 | 
				
			||||||
	'pw-profiler.c',
 | 
					 | 
				
			||||||
	c_args : [ '-D_GNU_SOURCE' ],
 | 
					 | 
				
			||||||
	install: true,
 | 
					 | 
				
			||||||
	dependencies : [pipewire_dep],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
executable('pw-mididump',
 | 
					 | 
				
			||||||
	[ 'pw-mididump.c', 'midifile.c'],
 | 
					 | 
				
			||||||
	c_args : [ '-D_GNU_SOURCE' ],
 | 
						c_args : [ '-D_GNU_SOURCE' ],
 | 
				
			||||||
	install: true,
 | 
						install: true,
 | 
				
			||||||
	dependencies : [pipewire_dep, mathlib],
 | 
						dependencies : [pipewire_dep, mathlib],
 | 
				
			||||||
)
 | 
					  )
 | 
				
			||||||
 | 
					endforeach
 | 
				
			||||||
executable('pw-metadata',
 | 
					 | 
				
			||||||
	[ 'pw-metadata.c'],
 | 
					 | 
				
			||||||
	c_args : [ '-D_GNU_SOURCE' ],
 | 
					 | 
				
			||||||
	install: true,
 | 
					 | 
				
			||||||
	dependencies : [pipewire_dep],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
executable('pw-loopback',
 | 
					 | 
				
			||||||
	[ 'pw-loopback.c'],
 | 
					 | 
				
			||||||
	c_args : [ '-D_GNU_SOURCE' ],
 | 
					 | 
				
			||||||
	install: true,
 | 
					 | 
				
			||||||
	dependencies : [pipewire_dep],
 | 
					 | 
				
			||||||
)
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
if ncurses_dep.found()
 | 
					if ncurses_dep.found()
 | 
				
			||||||
  executable('pw-top',
 | 
					  executable('pw-top',
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue