| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  | spa_support_sources = [
 | 
					
						
							|  |  |  |   'cpu.c',
 | 
					
						
							|  |  |  |   'logger.c',
 | 
					
						
							|  |  |  |   'loop.c',
 | 
					
						
							|  |  |  |   'node-driver.c',
 | 
					
						
							|  |  |  |   'null-audio-sink.c',
 | 
					
						
							|  |  |  |   'plugin.c',
 | 
					
						
							|  |  |  |   'system.c'
 | 
					
						
							|  |  |  | ]
 | 
					
						
							| 
									
										
										
										
											2017-06-14 10:15:17 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-13 15:00:09 +02:00
										 |  |  | simd_cargs = []
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if have_sse
 | 
					
						
							| 
									
										
										
										
											2021-10-13 15:10:21 +02:00
										 |  |  |   simd_cargs += [sse_args, '-DHAVE_SSE']
 | 
					
						
							| 
									
										
										
										
											2021-10-13 15:00:09 +02:00
										 |  |  | endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2024-09-16 23:13:16 +08:00
										 |  |  | header_cargs = []
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | if host_machine.cpu_family() == 'riscv64'
 | 
					
						
							|  |  |  |   if cdata.get('HAVE_SYS_AUXV_H')
 | 
					
						
							|  |  |  |     header_cargs += ['-DHAVE_SYS_AUXV_H']
 | 
					
						
							|  |  |  |   endif
 | 
					
						
							|  |  |  | endif
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-06-14 10:15:17 +02:00
										 |  |  | spa_support_lib = shared_library('spa-support',
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  |   spa_support_sources,
 | 
					
						
							| 
									
										
										
										
											2024-09-16 23:13:16 +08:00
										 |  |  |   c_args : [ simd_cargs, header_cargs ],
 | 
					
						
							| 
									
										
										
										
											2023-02-01 15:54:54 +01:00
										 |  |  |   dependencies : [ spa_dep, pthread_lib, epoll_shim_dep, mathlib ],
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  |   install : true,
 | 
					
						
							|  |  |  |   install_dir : spa_plugindir / 'support')
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:49 +10:00
										 |  |  | spa_support_dep = declare_dependency(link_with: spa_support_lib)
 | 
					
						
							| 
									
										
										
										
											2019-06-18 18:01:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-02-03 19:14:34 +01:00
										 |  |  | if get_option('evl').allowed()
 | 
					
						
							| 
									
										
										
										
											2023-08-09 12:09:30 +02:00
										 |  |  |   evl_inc = include_directories('/usr/include')
 | 
					
						
							| 
									
										
										
										
											2019-06-18 18:01:14 +02:00
										 |  |  |   evl_lib = cc.find_library('evl',
 | 
					
						
							| 
									
										
										
										
											2023-08-09 12:09:30 +02:00
										 |  |  |                             dirs: ['/usr/lib/'],
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  |                             required: get_option('evl'))
 | 
					
						
							| 
									
										
										
										
											2019-06-18 18:01:14 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  |   spa_evl_sources = ['evl-system.c', 'evl-plugin.c']
 | 
					
						
							| 
									
										
										
										
											2019-06-18 18:01:14 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  |   spa_evl_lib = shared_library('spa-evl',
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  |     spa_evl_sources,
 | 
					
						
							| 
									
										
										
										
											2021-12-28 16:04:06 +01:00
										 |  |  |     include_directories : [ evl_inc],
 | 
					
						
							|  |  |  |     dependencies : [ spa_dep, pthread_lib, evl_lib ],
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  |     install : true,
 | 
					
						
							|  |  |  |     install_dir : spa_plugindir / 'support')
 | 
					
						
							| 
									
										
										
										
											2019-06-18 18:01:14 +02:00
										 |  |  | endif
 | 
					
						
							| 
									
										
										
										
											2017-12-18 12:41:47 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-09 15:00:04 +02:00
										 |  |  | if dbus_dep.found()
 | 
					
						
							|  |  |  |   spa_dbus_sources = ['dbus.c']
 | 
					
						
							| 
									
										
										
										
											2017-12-18 12:41:47 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-10-09 15:00:04 +02:00
										 |  |  |   spa_dbus_lib = shared_library('spa-dbus',
 | 
					
						
							|  |  |  |     spa_dbus_sources,
 | 
					
						
							| 
									
										
										
										
											2021-12-28 16:04:06 +01:00
										 |  |  |     dependencies : [ spa_dep, dbus_dep ],
 | 
					
						
							| 
									
										
										
										
											2021-10-09 15:00:04 +02:00
										 |  |  |     install : true,
 | 
					
						
							|  |  |  |     install_dir : spa_plugindir / 'support')
 | 
					
						
							| 
									
										
										
										
											2021-10-12 09:37:27 +10:00
										 |  |  |   spa_dbus_dep = declare_dependency(link_with: spa_dbus_lib)
 | 
					
						
							|  |  |  | else
 | 
					
						
							|  |  |  |   spa_dbus_dep = declare_dependency()
 | 
					
						
							| 
									
										
										
										
											2021-10-09 15:00:04 +02:00
										 |  |  | endif
 | 
					
						
							| 
									
										
										
										
											2020-11-05 14:22:15 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-03-10 15:36:27 -03:00
										 |  |  | if systemd_dep.found()
 | 
					
						
							| 
									
										
										
										
											2021-09-29 13:22:41 +02:00
										 |  |  |   spa_journal_sources = [
 | 
					
						
							|  |  |  |     'journal.c',
 | 
					
						
							|  |  |  |   ]
 | 
					
						
							| 
									
										
										
										
											2020-11-05 14:22:15 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   spa_journal_lib = shared_library('spa-journal',
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  |     spa_journal_sources,
 | 
					
						
							| 
									
										
										
										
											2023-02-14 00:17:00 +01:00
										 |  |  |     include_directories : [ configinc ],
 | 
					
						
							| 
									
										
										
										
											2021-12-28 16:04:06 +01:00
										 |  |  |     dependencies : [ spa_dep, systemd_dep ],
 | 
					
						
							| 
									
										
										
										
											2021-09-20 08:59:10 +10:00
										 |  |  |     install : true,
 | 
					
						
							|  |  |  |     install_dir : spa_plugindir / 'support')
 | 
					
						
							| 
									
										
										
										
											2021-09-14 14:49:03 +10:00
										 |  |  |   spa_journal_dep = declare_dependency(link_with: spa_journal_lib)
 | 
					
						
							|  |  |  | else
 | 
					
						
							|  |  |  |   spa_journal_dep = declare_dependency()
 | 
					
						
							| 
									
										
										
										
											2020-11-05 14:22:15 +03:00
										 |  |  | endif
 |