X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=meson.build;h=0cfdbef0763c3cf8031991f939bf3c0599fd9997;hb=2bb561302bdf42cb7f0b5373a97ef7e4dca831e4;hp=fab3d3557e783d968602c27f3b9de24dc9ca99f2;hpb=5c28111899c499306ad1d63b1910f40690b02082;p=platform%2Fupstream%2Fat-spi2-core.git diff --git a/meson.build b/meson.build index fab3d35..0cfdbef 100644 --- a/meson.build +++ b/meson.build @@ -1,5 +1,5 @@ project('at-spi2-core', 'c', - version: '2.25.90', + version: '2.26.1', license: 'LGPLv2.1+', default_options: [ 'buildtype=debugoptimized', @@ -53,23 +53,25 @@ glib_dep = dependency('glib-2.0', version: glib_req_version) gobject_dep = dependency('gobject-2.0', version: gobject_req_version) gio_dep = dependency('gio-2.0', version: gio_req_version) dl_dep = cc.find_library('dl', required: false) -x11_dep = dependency('x11', required: false) x11_deps = [] -if x11_dep.found() - x11_deps += x11_dep - - xtest_dep = dependency('xtst') - x11_deps += xtest_dep - - xkb_dep = dependency('xkbcommon-x11', required: false) - if xkb_dep.found() - x11_deps += xkb_dep - at_spi_conf.set('HAVE_XKB', 1) +x11_option = get_option('enable-x11') +if x11_option != 'no' + x11_dep = dependency('x11', required: false) + + if x11_dep.found() + x11_deps += x11_dep + at_spi_conf.set('HAVE_X11', 1) + xtest_dep = dependency('xtst') + x11_deps += xtest_dep + + if cc.has_function('XkbGetMap', dependencies: x11_deps) + at_spi_conf.set('HAVE_XKB', 1) + endif + + xinput_dep = dependency('xi') + x11_deps += xinput_dep endif - - xinput_dep = dependency('xi') - x11_deps += xinput_dep endif # Alignments @@ -103,6 +105,8 @@ if introspection_option != 'no' endif endif +xgettext = find_program('xgettext', required : false) + configure_file(output: 'config.h', configuration: at_spi_conf) # Compat variables for pkgconfig @@ -130,3 +134,7 @@ subdir('test') if get_option('enable_docs') subdir('doc/libatspi') endif + +if xgettext.found() + subdir('po') +endif