mirror of https://github.com/nirenjan/libx52.git
build: Add language files to Meson build
parent
1d78cf4349
commit
0d7972dbc1
10
meson.build
10
meson.build
|
@ -5,11 +5,9 @@ project('libx52', 'C',
|
|||
# Internationalization
|
||||
i18n = import('i18n')
|
||||
# # define GETTEXT_PACKAGE
|
||||
# add_project_arguments(
|
||||
# '-DPACKAGE="libx52"',
|
||||
# '-DLOCALEDIR=""',
|
||||
# language:'C')
|
||||
i18n.gettext(meson.project_name())
|
||||
add_project_arguments(
|
||||
'-DGETTEXT_PACKAGE="@0@"'.format(meson.project_name()),
|
||||
language:'C')
|
||||
|
||||
dep_libusb = dependency('libusb-1.0', required: true)
|
||||
dep_hidapi = dependency('hidapi-hidraw', required: false)
|
||||
|
@ -336,3 +334,5 @@ if dep_udev.found()
|
|||
install_data(udev_file, install_dir: udev_rules_dir)
|
||||
meson.add_install_script('udev/install-hook.sh')
|
||||
endif
|
||||
|
||||
subdir('po')
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
i18n.gettext(meson.project_name(),
|
||||
args: '--directory=' + meson.source_root(),
|
||||
preset: 'glib'
|
||||
)
|
Loading…
Reference in New Issue