input/meson.build: add libinput_basic.a

This is the middle ground between libinput_api.a (the raw API) and
libinput_glue.a (dependencies on all plugins).
This commit is contained in:
Max Kellermann
2025-03-10 17:06:11 +01:00
parent 59f9e0ca70
commit eafca183a6
3 changed files with 32 additions and 7 deletions
src
input
playlist

@ -5,10 +5,6 @@ input_api = static_library(
'Error.cxx', 'Error.cxx',
'InputPlugin.cxx', 'InputPlugin.cxx',
'InputStream.cxx', 'InputStream.cxx',
'ThreadInputStream.cxx',
'AsyncInputStream.cxx',
'ProxyInputStream.cxx',
'LastInputStream.cxx',
include_directories: inc, include_directories: inc,
dependencies: [ dependencies: [
thread_dep, thread_dep,
@ -19,6 +15,31 @@ input_api = static_library(
input_api_dep = declare_dependency( input_api_dep = declare_dependency(
link_with: input_api, link_with: input_api,
dependencies: [ dependencies: [
thread_dep,
],
)
input_basic = static_library(
'input_basic',
'AsyncInputStream.cxx',
'LastInputStream.cxx',
'ProxyInputStream.cxx',
'RewindInputStream.cxx',
'TextInputStream.cxx',
'ThreadInputStream.cxx',
include_directories: inc,
dependencies: [
input_api_dep,
thread_dep,
event_dep,
],
)
input_basic_dep = declare_dependency(
link_with: input_basic,
dependencies: [
input_api_dep,
thread_dep,
event_dep, event_dep,
], ],
) )
@ -34,8 +55,6 @@ input_glue = static_library(
'LocalOpen.cxx', 'LocalOpen.cxx',
'ScanTags.cxx', 'ScanTags.cxx',
'Reader.cxx', 'Reader.cxx',
'TextInputStream.cxx',
'RewindInputStream.cxx',
'BufferingInputStream.cxx', 'BufferingInputStream.cxx',
'BufferedInputStream.cxx', 'BufferedInputStream.cxx',
'MaybeBufferedInputStream.cxx', 'MaybeBufferedInputStream.cxx',
@ -45,6 +64,8 @@ input_glue = static_library(
'cache/Stream.cxx', 'cache/Stream.cxx',
include_directories: inc, include_directories: inc,
dependencies: [ dependencies: [
input_api_dep,
input_basic_dep,
log_dep, log_dep,
], ],
) )
@ -52,6 +73,8 @@ input_glue = static_library(
input_glue_dep = declare_dependency( input_glue_dep = declare_dependency(
link_with: input_glue, link_with: input_glue,
dependencies: [ dependencies: [
input_api_dep,
input_basic_dep,
input_plugins_dep, input_plugins_dep,
fs_dep, fs_dep,
config_dep, config_dep,

@ -68,6 +68,8 @@ input_plugins = static_library(
input_plugins_sources, input_plugins_sources,
include_directories: inc, include_directories: inc,
dependencies: [ dependencies: [
input_api_dep,
input_basic_dep,
log_dep, log_dep,
alsa_dep, alsa_dep,
curl_dep, curl_dep,

@ -8,7 +8,7 @@ playlist_plugins_deps = [
log_dep, log_dep,
expat_dep, expat_dep,
flac_dep, flac_dep,
input_api_dep, input_basic_dep,
config_dep, config_dep,
] ]