Skip to content

Commit

Permalink
input/meson.build: add libinput_basic.a
Browse files Browse the repository at this point in the history
This is the middle ground between libinput_api.a (the raw API) and
libinput_glue.a (dependencies on all plugins).
  • Loading branch information
MaxKellermann committed Mar 10, 2025
1 parent 59f9e0c commit eafca18
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 7 deletions.
35 changes: 29 additions & 6 deletions src/input/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ input_api = static_library(
'Error.cxx',
'InputPlugin.cxx',
'InputStream.cxx',
'ThreadInputStream.cxx',
'AsyncInputStream.cxx',
'ProxyInputStream.cxx',
'LastInputStream.cxx',
include_directories: inc,
dependencies: [
thread_dep,
Expand All @@ -19,6 +15,31 @@ input_api = static_library(
input_api_dep = declare_dependency(
link_with: input_api,
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,
],
)
Expand All @@ -34,8 +55,6 @@ input_glue = static_library(
'LocalOpen.cxx',
'ScanTags.cxx',
'Reader.cxx',
'TextInputStream.cxx',
'RewindInputStream.cxx',
'BufferingInputStream.cxx',
'BufferedInputStream.cxx',
'MaybeBufferedInputStream.cxx',
Expand All @@ -45,13 +64,17 @@ input_glue = static_library(
'cache/Stream.cxx',
include_directories: inc,
dependencies: [
input_api_dep,
input_basic_dep,
log_dep,
],
)

input_glue_dep = declare_dependency(
link_with: input_glue,
dependencies: [
input_api_dep,
input_basic_dep,
input_plugins_dep,
fs_dep,
config_dep,
Expand Down
2 changes: 2 additions & 0 deletions src/input/plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ input_plugins = static_library(
input_plugins_sources,
include_directories: inc,
dependencies: [
input_api_dep,
input_basic_dep,
log_dep,
alsa_dep,
curl_dep,
Expand Down
2 changes: 1 addition & 1 deletion src/playlist/plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ playlist_plugins_deps = [
log_dep,
expat_dep,
flac_dep,
input_api_dep,
input_basic_dep,
config_dep,
]

Expand Down

0 comments on commit eafca18

Please sign in to comment.