summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-05-22 15:54:24 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-05-24 14:18:55 +0100
commit8bedad030257b5d204c9f4ff7b1a130e2c512d00 (patch)
treef65c56c43c954b3af6d6d32064bbaa0da8c6befd /doc
parent6d468128c7a8a43f9b0930910a1e8c9c75820c2b (diff)
downloadat-spi2-core-8bedad030257b5d204c9f4ff7b1a130e2c512d00.tar.gz
Add Meson build system
Meson is a meta-build system which provides us with various advantages over Autotools: - it's portable to various platforms - it's easy to understand - it's fast - it's well maintained Various libraries in the GNOME stack have been ported to it, including GTK+ itself.
Diffstat (limited to 'doc')
-rw-r--r--doc/libatspi/meson.build32
1 files changed, 32 insertions, 0 deletions
diff --git a/doc/libatspi/meson.build b/doc/libatspi/meson.build
new file mode 100644
index 00000000..77a860cc
--- /dev/null
+++ b/doc/libatspi/meson.build
@@ -0,0 +1,32 @@
+version_xml_conf = configuration_data()
+version_xml_conf.set('PACKAGE_VERSION', meson.project_name())
+configure_file(input: 'version.xml.in',
+ output: 'version.xml',
+ configuration: version_xml_conf)
+
+glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
+glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
+docpath = join_paths(atspi_datadir, 'gtk-doc', 'html')
+
+gnome.gtkdoc('libatspi',
+ main_xml: 'libatspi-docs.sgml',
+ src_dir: [
+ join_paths(meson.source_root(), 'atspi'),
+ join_paths(meson.build_root(), 'atspi'),
+ ],
+ dependencies: atspi_dep,
+ gobject_typesfile: 'libatspi.types',
+ scan_args: [
+ '--rebuild-types',
+ ],
+ mkdb_args: [
+ '--sgml-mode',
+ '--output-format=xml',
+ ],
+ fixxref_args: [
+ '--html-dir=@0@'.format(docpath),
+ '--extra-dir=@0@'.format(join_paths(glib_docpath, 'glib')),
+ '--extra-dir=@0@'.format(join_paths(glib_docpath, 'gobject')),
+ ],
+ install: true)
+