mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-23 06:59:58 -05:00
Use pinos loop for mainloop
Remove more glib stuff
This commit is contained in:
parent
27bba6f587
commit
4e94743906
12 changed files with 59 additions and 248 deletions
|
|
@ -1,7 +1,6 @@
|
|||
pinos_headers = [
|
||||
'array.h',
|
||||
'context.h',
|
||||
'format.h',
|
||||
'introspect.h',
|
||||
'log.h',
|
||||
'loop.h',
|
||||
|
|
@ -21,7 +20,6 @@ pinos_headers = [
|
|||
pinos_sources = [
|
||||
'connection.c',
|
||||
'context.c',
|
||||
'format.c',
|
||||
'introspect.c',
|
||||
'log.c',
|
||||
'loop.c',
|
||||
|
|
@ -36,28 +34,10 @@ pinos_sources = [
|
|||
'thread-mainloop.c',
|
||||
'transport.c',
|
||||
'utils.c',
|
||||
gdbus_target,
|
||||
]
|
||||
|
||||
install_headers(pinos_headers, subdir : 'pinos/client')
|
||||
|
||||
mkenums = find_program('build_mkenum.py')
|
||||
glib_mkenums = find_program('glib-mkenums')
|
||||
|
||||
enumtypes_h = custom_target('enumtypes_h',
|
||||
output : 'enumtypes.h',
|
||||
input : pinos_headers,
|
||||
install : true,
|
||||
install_dir : 'include/pinos/client',
|
||||
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
||||
|
||||
enumtypes_c = custom_target('enumtypes_c',
|
||||
output : 'enumtypes.c',
|
||||
input : pinos_headers,
|
||||
depends : [enumtypes_h],
|
||||
command : [mkenums, glib_mkenums, '@OUTPUT@', '@INPUT@'])
|
||||
|
||||
|
||||
libpinos_c_args = [
|
||||
'-DHAVE_CONFIG_H',
|
||||
'-D_GNU_SOURCE',
|
||||
|
|
@ -65,8 +45,6 @@ libpinos_c_args = [
|
|||
]
|
||||
|
||||
|
||||
pinos_gen_sources = [enumtypes_h]
|
||||
|
||||
libpinos = shared_library('pinos', pinos_sources,
|
||||
version : libversion,
|
||||
soversion : soversion,
|
||||
|
|
@ -74,12 +52,10 @@ libpinos = shared_library('pinos', pinos_sources,
|
|||
include_directories : [configinc, spa_inc],
|
||||
link_with : spalib,
|
||||
install : true,
|
||||
dependencies : [gobject_dep, gmodule_dep, glib_dep, gio_dep, mathlib],
|
||||
dependencies : [glib_dep, gio_dep, mathlib, pthread_lib],
|
||||
)
|
||||
|
||||
pinos_dep = declare_dependency(link_with : libpinos,
|
||||
include_directories : [configinc, spa_inc],
|
||||
dependencies : [glib_dep, gobject_dep, gmodule_dep],
|
||||
# Everything that uses libpinos needs this built to compile
|
||||
sources : pinos_gen_sources,
|
||||
dependencies : [glib_dep, pthread_lib],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue