[at-spi2-core: 25/30] xml/meson.build: New file with an introspection_generated custom target




commit 9e78c106aac3715e646baa4c89971711236a7db1
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Jul 4 13:08:19 2022 -0500

    xml/meson.build: New file with an introspection_generated custom target
    
    This creates introspection.[ch] like the ones we had scattered before.

 meson.build     |  1 +
 xml/meson.build | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)
---
diff --git a/meson.build b/meson.build
index ba73b59b..83da360f 100644
--- a/meson.build
+++ b/meson.build
@@ -209,6 +209,7 @@ endif
 install_data('at-spi2-atk.desktop',
              install_dir: join_paths(get_option('libdir'), 'gnome-settings-daemon-3.0', 'gtk-modules'))
 
+subdir('xml')
 subdir('dbind')
 subdir('atspi')
 subdir('bus')
diff --git a/xml/meson.build b/xml/meson.build
new file mode 100644
index 00000000..9cbc5a47
--- /dev/null
+++ b/xml/meson.build
@@ -0,0 +1,32 @@
+generator = find_program('generate-introspection.py')
+
+introspection_sources = [
+  'Accessible.xml',
+  'Action.xml',
+  'Application.xml',
+  'Cache.xml',
+  'Collection.xml',
+  'Component.xml',
+  'DeviceEventController.xml',
+  'DeviceEventListener.xml',
+  'Document.xml',
+  'EditableText.xml',
+  'Event.xml',
+  'Hyperlink.xml',
+  'Hypertext.xml',
+  'Image.xml',
+  'Registry.xml',
+  'Selection.xml',
+  'Socket.xml',
+  'Table.xml',
+  'TableCell.xml',
+  'Text.xml',
+  'Value.xml',
+]
+
+introspection_generated = custom_target(
+  'introspection_generated',
+  input: introspection_sources,
+  output: [ 'introspection.c', 'introspection.h' ],
+  command: [ generator, '@INPUT@', '--c-output=@OUTPUT0@', '--h-output=@OUTPUT1@' ],
+)


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