mirror of
https://github.com/swaywm/sway.git
synced 2026-04-18 06:46:56 -04:00
Clean up build scaffolding for libsfdo and add the creation and
destruction of an sfdo data structure associated with a sway server with a view to future use of icon themes in places such as titlebars
This commit is contained in:
parent
f3cca0d86f
commit
34d2020042
4 changed files with 559 additions and 425 deletions
56
meson.build
56
meson.build
|
|
@ -38,34 +38,6 @@ if is_freebsd
|
|||
add_project_arguments('-D_C11_SOURCE', language: 'c')
|
||||
endif
|
||||
|
||||
# Check for (currrently) optional libsfdo
|
||||
sfdo_basedir = dependency(
|
||||
'libsfdo-basedir',
|
||||
default_options: ['default_library=static', 'examples=false', 'tests=false'],
|
||||
version: '>=0.1.3',
|
||||
required: get_option('sfdo'),
|
||||
)
|
||||
sfdo_desktop = dependency(
|
||||
'libsfdo-desktop',
|
||||
default_options: ['default_library=static', 'examples=false', 'tests=false'],
|
||||
version: '>=0.1.3',
|
||||
required: get_option('sfdo'),
|
||||
)
|
||||
sfdo_desktop_file = dependency(
|
||||
'libsfdo-desktop-file',
|
||||
default_options: ['default_library=static', 'examples=false', 'tests=false'],
|
||||
version: '>=0.1.3',
|
||||
required: get_option('sfdo'),
|
||||
)
|
||||
sfdo_icon = dependency(
|
||||
'libsfdo-icon',
|
||||
default_options: ['default_library=static', 'examples=false', 'tests=false'],
|
||||
version: '>=0.1.3',
|
||||
required: get_option('sfdo'),
|
||||
)
|
||||
have_libsfdo = sfdo_basedir.found() and sfdo_desktop.found() and sfdo_desktop_file.found() and sfdo_icon.found()
|
||||
|
||||
|
||||
# Execute the wlroots subproject, if any
|
||||
wlroots_version = ['>=0.20.0', '<0.21.0']
|
||||
subproject(
|
||||
|
|
@ -88,6 +60,34 @@ endforeach
|
|||
|
||||
null_dep = dependency('', required: false)
|
||||
|
||||
# Check for (currrently) optional libsfdo
|
||||
sfdo_basedir = dependency(
|
||||
'libsfdo-basedir',
|
||||
version: '>=0.1.3',
|
||||
required: get_option('sfdo')
|
||||
)
|
||||
sfdo_desktop = dependency(
|
||||
'libsfdo-desktop',
|
||||
version: '>=0.1.3',
|
||||
required: get_option('sfdo')
|
||||
)
|
||||
sfdo_desktop_file = dependency(
|
||||
'libsfdo-desktop-file',
|
||||
version: '>=0.1.3',
|
||||
required: get_option('sfdo')
|
||||
)
|
||||
sfdo_icon = dependency(
|
||||
'libsfdo-icon',
|
||||
version: '>=0.1.3',
|
||||
required: get_option('sfdo')
|
||||
)
|
||||
have_libsfdo = (
|
||||
sfdo_basedir.found() and
|
||||
sfdo_desktop.found() and
|
||||
sfdo_desktop_file.found() and
|
||||
sfdo_icon.found()
|
||||
)
|
||||
|
||||
jsonc = dependency('json-c', version: '>=0.13')
|
||||
pcre2 = dependency('libpcre2-8')
|
||||
wayland_server = dependency('wayland-server', version: '>=1.21.0')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue