mirror of
				https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
				synced 2025-11-03 09:01:50 -05:00 
			
		
		
		
	vala: move GLibMainLoop class into separate file to fix linker errors
Vala uses the name of the *.vapi file to determine the libraries to link against. Since the pa_glib_mainloop_*() functions are in a separate library (libpulse-mainloop-glib.so) the corresponding objects in the Vala bindings have to be in a separate *.vapi file. If you are compiling an app without the GLib integration you could use: $ valac --pkg=libpulse test.vala but if you do use GLib you can use: $ valac --pkg=libpulse-mainloop-glib test.vala (libpulse is a dep of the libpulse-mainloop-glib so no need to specify it explicitly)
This commit is contained in:
		
							parent
							
								
									ea0a2a603c
								
							
						
					
					
						commit
						64985aa9bb
					
				
					 4 changed files with 20 additions and 12 deletions
				
			
		
							
								
								
									
										1
									
								
								vala/libpulse-mainloop-glib.deps
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								vala/libpulse-mainloop-glib.deps
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1 @@
 | 
			
		|||
libpulse
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue