mirror of https://github.com/nirenjan/libx52.git
Cleanup feature flags
parent
c0f4a8ae12
commit
a11b6a3160
11
meson.build
11
meson.build
|
@ -5,9 +5,14 @@ project('libx52', 'C',
|
||||||
# Internationalization
|
# Internationalization
|
||||||
i18n = import('i18n')
|
i18n = import('i18n')
|
||||||
# # define GETTEXT_PACKAGE
|
# # define GETTEXT_PACKAGE
|
||||||
|
if get_option('nls').enabled()
|
||||||
add_project_arguments(
|
add_project_arguments(
|
||||||
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
||||||
language:'C')
|
language:'C')
|
||||||
|
add_project_arguments('-DENABLE_NLS=1', language:'C')
|
||||||
|
|
||||||
|
subdir('po')
|
||||||
|
endif
|
||||||
|
|
||||||
dep_libusb = dependency('libusb-1.0', required: true)
|
dep_libusb = dependency('libusb-1.0', required: true)
|
||||||
dep_hidapi = dependency('hidapi-hidraw', required: false)
|
dep_hidapi = dependency('hidapi-hidraw', required: false)
|
||||||
|
@ -100,7 +105,9 @@ version_info_h = configure_file(
|
||||||
|
|
||||||
# pinelog
|
# pinelog
|
||||||
pinelog_options = []
|
pinelog_options = []
|
||||||
if dep_systemd.found() and not get_option('disable-systemd')
|
if dep_systemd.found() and not get_option('systemd-logs').disabled()
|
||||||
|
# If systemd logs is enabled or auto, and systemd is found, then hide
|
||||||
|
# the timestamps in log messages
|
||||||
pinelog_options = ['show-date=false']
|
pinelog_options = ['show-date=false']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -346,5 +353,3 @@ if dep_udev.found()
|
||||||
install_data(udev_file, install_dir: udev_rules_dir)
|
install_data(udev_file, install_dir: udev_rules_dir)
|
||||||
meson.add_install_script('udev/install-hook.sh')
|
meson.add_install_script('udev/install-hook.sh')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('po')
|
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
option('disable-systemd',
|
option('systemd-logs',
|
||||||
type: 'boolean', value: false,
|
type: 'feature',
|
||||||
description: 'Disable systemd integration (show timestamps in logs)')
|
description: 'Hide timestamps in log messages, needed for systemd')
|
||||||
|
|
||||||
|
option('nls',
|
||||||
|
type: 'feature',
|
||||||
|
description: 'Enable message translations')
|
||||||
|
|
||||||
option('input-group',
|
option('input-group',
|
||||||
type: 'string', value: 'plugdev',
|
type: 'string', value: 'plugdev',
|
||||||
|
|
Loading…
Reference in New Issue