project('at-spi2-core', 'c',
- version: '2.25.90',
+ version: '2.25.92',
license: 'LGPLv2.1+',
default_options: [
'buildtype=debugoptimized',
root_inc = include_directories('.')
registryd_inc = include_directories('registryd')
-atspi_datadir = join_paths(get_option('prefix'), get_option('datadir'))
-atspi_libexecdir = join_paths(get_option('prefix'), get_option('libexecdir'))
-atspi_sysconfdir = join_paths(get_option('prefix'), get_option('sysconfdir'))
+atspi_prefix = get_option('prefix')
+atspi_datadir = join_paths(atspi_prefix, get_option('datadir'))
+atspi_libexecdir = join_paths(atspi_prefix, get_option('libexecdir'))
+atspi_sysconfdir = join_paths(atspi_prefix, get_option('sysconfdir'))
+atspi_libdir = join_paths(atspi_prefix, get_option('libdir'))
+atspi_includedir = join_paths(atspi_prefix, get_option('includedir'))
if get_option('dbus_services_dir') != 'default'
dbus_services_dir = get_option('dbus_services_dir')
endif
endif
+xgettext = find_program('xgettext', required : false)
+
configure_file(output: 'config.h', configuration: at_spi_conf)
# Compat variables for pkgconfig
pkgconf = configuration_data()
pkgconf.set('prefix', get_option('prefix'))
pkgconf.set('exec_prefix', get_option('prefix'))
-pkgconf.set('libdir', get_option('libdir'))
-pkgconf.set('includedir', get_option('includedir'))
+pkgconf.set('libdir', atspi_libdir)
+pkgconf.set('includedir', atspi_includedir)
pkgconf.set('VERSION', meson.project_version())
configure_file(input: 'atspi-2.pc.in',
if get_option('enable_docs')
subdir('doc/libatspi')
endif
+
+if xgettext.found()
+ subdir('po')
+endif