mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-02-15 22:05:22 -05:00
build-sys: meson: Allow building the daemon only
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/659>
This commit is contained in:
parent
a67f894775
commit
4cf4a1fd5b
10 changed files with 54 additions and 16 deletions
|
|
@ -30,8 +30,8 @@ executable('pulseaudio',
|
|||
install_rpath : privlibdir,
|
||||
include_directories : [configinc, topinc],
|
||||
link_args : ['-ffast-math'],
|
||||
link_with : [libpulsecore, libpulsecommon, libpulse],
|
||||
dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep, platform_dep, platform_socket_dep],
|
||||
link_with : [libpulsecore],
|
||||
dependencies : [ltdl_dep, cap_dep, dbus_dep, libsystemd_dep, dl_dep, libintl_dep, platform_dep, platform_socket_dep, libpulsecommon_dep, libpulse_dep],
|
||||
c_args : pa_c_args,
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -188,6 +188,15 @@ else
|
|||
endif
|
||||
# FIXME: Do SIMD things
|
||||
|
||||
if get_option('daemon-only')
|
||||
libpulsecommon_dep = cc.find_library('pulsecommon-' + pa_version_major_minor, dirs : privlibdir, required : true)
|
||||
libpulse_dep = dependency('libpulse', required : true)
|
||||
libpulse_simple_dep = dependency('libpulse-simple', required : true)
|
||||
if glib_dep.found()
|
||||
libpulse_mainloop_glib_dep = dependency('libpulse-mainloop-glib', required : true)
|
||||
endif
|
||||
else
|
||||
|
||||
libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
|
||||
libpulsecommon_sources,
|
||||
libpulsecommon_headers,
|
||||
|
|
@ -207,6 +216,8 @@ libpulsecommon = shared_library('pulsecommon-' + pa_version_major_minor,
|
|||
libpulsecommon_dep = declare_dependency(link_with: libpulsecommon)
|
||||
|
||||
subdir('pulse')
|
||||
endif
|
||||
|
||||
if get_option('daemon')
|
||||
subdir('pulsecore')
|
||||
subdir('daemon')
|
||||
|
|
|
|||
|
|
@ -8,8 +8,7 @@ gsettings_helper = executable('gsettings-helper',
|
|||
gsettings_helper_sources,
|
||||
c_args : pa_c_args,
|
||||
include_directories : [configinc, topinc],
|
||||
link_with : [libpulsecommon, libpulse],
|
||||
dependencies : [gio_dep],
|
||||
dependencies : [gio_dep, libpulsecommon_dep, libpulse_dep],
|
||||
install_dir : pulselibexecdir,
|
||||
install_rpath : privlibdir,
|
||||
install : true,
|
||||
|
|
|
|||
|
|
@ -20,8 +20,6 @@ default_tests += [
|
|||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||
[ 'json-test', 'json-test.c',
|
||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||
[ 'mainloop-test', 'mainloop-test.c',
|
||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||
[ 'proplist-test', 'proplist-test.c',
|
||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||
[ 'thread-mainloop-test', 'thread-mainloop-test.c',
|
||||
|
|
@ -32,6 +30,13 @@ default_tests += [
|
|||
[ check_dep, libm_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||
]
|
||||
|
||||
if not get_option('daemon-only')
|
||||
default_tests += [
|
||||
[ 'mainloop-test', 'mainloop-test.c',
|
||||
[ check_dep, libpulse_dep, libpulsecommon_dep ] ],
|
||||
]
|
||||
endif
|
||||
|
||||
if get_option('daemon')
|
||||
default_tests += [
|
||||
[ 'asyncmsgq-test', 'asyncmsgq-test.c',
|
||||
|
|
|
|||
|
|
@ -1,3 +1,4 @@
|
|||
if not get_option('daemon-only')
|
||||
pacat_sources = [
|
||||
'pacat.c',
|
||||
]
|
||||
|
|
@ -41,6 +42,7 @@ executable('pactl',
|
|||
dependencies : [sndfile_dep, libintl_dep],
|
||||
c_args : pa_c_args,
|
||||
)
|
||||
endif
|
||||
|
||||
if get_option('daemon')
|
||||
if host_machine.system() != 'windows'
|
||||
|
|
@ -53,8 +55,7 @@ if get_option('daemon')
|
|||
install: true,
|
||||
install_rpath : privlibdir,
|
||||
include_directories : [configinc, topinc],
|
||||
link_with : [libpulsecommon, libpulse],
|
||||
dependencies: [libintl_dep],
|
||||
dependencies: [libintl_dep, libpulsecommon_dep, libpulse_dep],
|
||||
c_args : pa_c_args,
|
||||
)
|
||||
|
||||
|
|
@ -67,13 +68,13 @@ if get_option('daemon')
|
|||
install: true,
|
||||
install_rpath : privlibdir,
|
||||
include_directories : [configinc, topinc],
|
||||
link_with : [libpulsecommon, libpulse],
|
||||
dependencies: [libintl_dep],
|
||||
dependencies: [libintl_dep, libpulsecommon_dep, libpulse_dep],
|
||||
c_args : pa_c_args,
|
||||
)
|
||||
endif
|
||||
endif
|
||||
|
||||
if not get_option('daemon-only')
|
||||
if x11_dep.found()
|
||||
pax11publish_sources = [
|
||||
'pax11publish.c',
|
||||
|
|
@ -121,3 +122,4 @@ if dbus_dep.found() and fftw_dep.found()
|
|||
endif
|
||||
|
||||
install_data('pa-info', install_dir : bindir)
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue