X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=meson.build;h=8fed991ee2762a7fd2c78198112e6a27b96e2681;hb=376e88a463ad9d1f5110808879b68d6bb0a50910;hp=351b207384e83d30228ec2eed36ff7d61f7eb690;hpb=70280c8010a04900fc0f9f67d08fc9464b639615;p=platform%2Fupstream%2Fat-spi2-core.git diff --git a/meson.build b/meson.build index 351b207..8fed991 100644 --- a/meson.build +++ b/meson.build @@ -1,12 +1,12 @@ project('at-spi2-core', 'c', - version: '2.31.1', + version: '2.34.0', license: 'LGPLv2.1+', default_options: [ 'buildtype=debugoptimized', 'warning_level=1', 'c_std=c99', ], - meson_version: '>= 0.40.1') + meson_version: '>= 0.50.0') add_project_arguments([ '-D_POSIX_C_SOURCE=200809L', '-D_DEFAULT_SOURCE' ], language: 'c') @@ -28,6 +28,7 @@ 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_bindir = join_paths(atspi_prefix, get_option('bindir')) atspi_includedir = join_paths(atspi_prefix, get_option('includedir')) if get_option('dbus_services_dir') != 'default' @@ -47,15 +48,23 @@ libdbus_req_version = '>= 1.5' glib_req_version = '>= 2.32.0' gobject_req_version = '>= 2.0.0' gio_req_version = '>= 2.28.0' +app_svc_req_version = '>= 0.0.0' libdbus_dep = dependency('dbus-1', version: libdbus_req_version) 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) +app_svc_dep = dependency('appsvc', version: app_svc_req_version) +if cc.has_function('dlopen') + dl_dep = [] +elif cc.has_function('dlopen', args: '-ldl') + dl_dep = cc.find_library('dl') +else + error('Could not find a library with the dlopen function') +endif x11_deps = [] -x11_option = get_option('enable-x11') +x11_option = get_option('x11') if x11_option != 'no' x11_dep = dependency('x11', required: false) @@ -96,7 +105,7 @@ at_spi_conf.set('ALIGNOF_DBIND_STRUCT', cc.alignment('dbind_struct', prefix: 'ty # introspection support have_gir = false -introspection_option = get_option('enable-introspection') +introspection_option = get_option('introspection') if introspection_option != 'no' gir_dep = dependency('gobject-introspection-1.0', version: '>= 0.6.7', required: false) @@ -117,7 +126,7 @@ subdir('bus') subdir('registryd') subdir('test') -if get_option('enable_docs') +if get_option('docs') subdir('doc/libatspi') endif