From 5046d005e2048df6cfc16e60beaa27bb99d45f28 Mon Sep 17 00:00:00 2001 From: Michael Catanzaro Date: Mon, 11 Jan 2021 19:14:58 -0600 Subject: Fix build with X11 dep disabled --- atspi/meson.build | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/atspi/meson.build b/atspi/meson.build index a6f12384..ace8502c 100644 --- a/atspi/meson.build +++ b/atspi/meson.build @@ -28,13 +28,6 @@ atspi_sources = [ 'atspi-value.c', ] -x11_option = get_option('x11') -if x11_option != 'no' - if x11_dep.found() - atspi_sources += ['atspi-device-x11.c'] - endif -endif - atspi_headers = [ 'atspi.h', 'atspi-accessible.h', @@ -46,7 +39,6 @@ atspi_headers = [ 'atspi-device.h', 'atspi-device-legacy.h', 'atspi-device-listener.h', - 'atspi-device-x11.h', 'atspi-document.h', 'atspi-editabletext.h', 'atspi-event-listener.h', @@ -68,6 +60,14 @@ atspi_headers = [ 'atspi-value.h', ] +x11_option = get_option('x11') +if x11_option != 'no' + if x11_dep.found() + atspi_sources += ['atspi-device-x11.c'] + atspi_headers += ['atspi-device-x11.h'] + endif +endif + atspi_includedir = join_paths(get_option('prefix'), get_option('includedir'), 'at-spi-2.0', 'atspi') install_headers(atspi_headers, install_dir: atspi_includedir) -- cgit v1.2.1