Changes:
- 25 wide shapes have been added,
so that every available layout now has a wide shape
- "PgUp" and "PgDn" on the terminal-layouts have been relabeled
to "Page ↑" and "Page ↓"
- The Spanish and French terminal-layouts now have translated key-names
- The Spanish terminal-layout has been updated with the additional
keys that are already available on the US-terminal-layout.
- The wide and base shapes of the German layout had a different
key-arrangement and the wide shape did not have a button to access
additional characters; this has been fixed.
Development:
- Squeekboard's versioning now follows Phosh's versioning
(for example: Squeekboard 1.38 was released in time for Phosh 0.38)
- The build-system has been simplified
- A single Cargo.toml file is used,
instead of assembling it from multiple parts
- Newer dependencies are now used for building Squeekboard by default
- Squeekboard's main development-platform is now Debian Testing
- The layout-files have been cleaned up,
so that those are easier to understand and edit
Part-of: <https://gitlab.gnome.org/World/Phosh/squeekboard/-/merge_requests/631>
108 lines
2.5 KiB
Meson
108 lines
2.5 KiB
Meson
project(
|
|
'squeekboard',
|
|
'c', 'rust',
|
|
version: '1.38.0',
|
|
license: 'GPLv3',
|
|
meson_version: '>=0.51.0',
|
|
default_options: [
|
|
'warning_level=1',
|
|
'buildtype=debugoptimized',
|
|
'c_std=gnu11'
|
|
]
|
|
)
|
|
|
|
add_project_arguments(
|
|
[
|
|
'-Werror=implicit-function-declaration',
|
|
'-Werror=implicit-fallthrough=3',
|
|
'-Werror=maybe-uninitialized',
|
|
'-Werror=missing-field-initializers',
|
|
'-Werror=incompatible-pointer-types',
|
|
'-Werror=int-conversion',
|
|
'-Werror=redundant-decls',
|
|
'-Werror=parentheses',
|
|
'-Wformat-nonliteral',
|
|
'-Wformat-security',
|
|
'-Wformat',
|
|
'-Winit-self',
|
|
'-Wmaybe-uninitialized',
|
|
'-Wold-style-definition',
|
|
'-Wredundant-decls',
|
|
'-Wstrict-prototypes',
|
|
'-Wunused',
|
|
],
|
|
language: 'c'
|
|
)
|
|
|
|
i18n = import('i18n')
|
|
|
|
if get_option('buildtype').startswith('debug')
|
|
add_project_arguments('-DDEBUG=1', language : 'c')
|
|
endif
|
|
|
|
if get_option('strict')
|
|
add_project_arguments(
|
|
[
|
|
'-Werror',
|
|
],
|
|
language: 'c'
|
|
)
|
|
endif
|
|
|
|
if get_option('buildtype') != 'plain'
|
|
add_project_arguments('-fstack-protector-strong', language: 'c')
|
|
endif
|
|
if get_option('buildtype') == 'release'
|
|
cargo_build_flags = ['--release'] # for artifacts
|
|
else
|
|
cargo_build_flags = []
|
|
endif
|
|
|
|
prefix = get_option('prefix')
|
|
bindir = join_paths(prefix, get_option('bindir'))
|
|
datadir = join_paths(prefix, get_option('datadir'))
|
|
localedir = join_paths(prefix, get_option('localedir'))
|
|
desktopdir = join_paths(datadir, 'applications')
|
|
pkgdatadir = join_paths(datadir, meson.project_name())
|
|
if get_option('depdatadir') == ''
|
|
depdatadir = datadir
|
|
else
|
|
depdatadir = get_option('depdatadir')
|
|
endif
|
|
dbusdir = join_paths(depdatadir, 'dbus-1/interfaces')
|
|
|
|
conf_data = configuration_data()
|
|
conf_data.set_quoted('GETTEXT_PACKAGE', 'squeekboard')
|
|
conf_data.set_quoted('LOCALEDIR', localedir)
|
|
|
|
summary = [
|
|
'',
|
|
'------------------',
|
|
'squeekboard @0@'.format(meson.project_version()),
|
|
'',
|
|
'------------------',
|
|
''
|
|
]
|
|
message('\n'.join(summary))
|
|
|
|
path_data = configuration_data()
|
|
path_data.set('path', meson.source_root())
|
|
cargo_toml = configure_file(
|
|
input: 'Cargo.toml',
|
|
output: 'Cargo.toml',
|
|
configuration: path_data,
|
|
)
|
|
|
|
cargo_build_flags += ['--features', 'zbus_v1_5,clap_v4']
|
|
|
|
dep_cargo = find_program('cargo')
|
|
cargo_script = find_program('cargo.sh')
|
|
cargo_build = find_program('cargo_build.py')
|
|
|
|
subdir('data')
|
|
subdir('po')
|
|
subdir('protocols')
|
|
subdir('src')
|
|
subdir('tools')
|
|
subdir('tests')
|