[at-spi2-core/mcatanzaro/build] Fix build with X11 dep disabled




commit 5046d005e2048df6cfc16e60beaa27bb99d45f28
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Mon Jan 11 19:14:58 2021 -0600

    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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]