summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-05-20 15:36:44 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2017-05-22 13:44:20 +0100
commit6adb5fa877a36014a05a755f1cf12d549c8f0fb3 (patch)
tree629c27f2d96635ba9bb126664314eb1f4e1357c8 /docs
parent1831a7b3e49bdaf206a613d7bdf3a48288b87735 (diff)
downloadatk-6adb5fa877a36014a05a755f1cf12d549c8f0fb3.tar.gz
Add Meson build system
Meson is a meta-build system that has several advantages over Autotools: - faster - simpler to use and understand - portable to various platforms - tailored to the needs of GNOME libraries - well maintained and supported Various other libraries in the GNOME stack have already adopted Meson in parallel, or exclusively, including GTK+. https://bugzilla.gnome.org/show_bug.cgi?id=782871
Diffstat (limited to 'docs')
-rw-r--r--docs/meson.build49
-rw-r--r--docs/xml/gtkdocentities.ent.in8
-rw-r--r--docs/xml/meson.build10
3 files changed, 67 insertions, 0 deletions
diff --git a/docs/meson.build b/docs/meson.build
new file mode 100644
index 0000000..d2dac1c
--- /dev/null
+++ b/docs/meson.build
@@ -0,0 +1,49 @@
+subdir('xml')
+
+version_xml_conf = configuration_data()
+version_xml_conf.set('ATK_VERSION', meson.project_version())
+configure_file(input: 'version.xml.in',
+ output: 'version.xml',
+ configuration: version_xml_conf)
+
+private_headers = [
+ 'atkmarshal.h',
+ 'atkintl.h',
+]
+
+content_files = [
+ 'version.xml',
+]
+
+html_images = [
+]
+
+glib_prefix = dependency('glib-2.0').get_pkgconfig_variable('prefix')
+glib_docpath = join_paths(glib_prefix, 'share', 'gtk-doc', 'html')
+docpath = join_paths(atk_datadir, 'gtk-doc', 'html')
+
+gnome.gtkdoc('atk',
+ main_xml: 'atk-docs.sgml',
+ src_dir: [
+ join_paths(meson.source_root(), 'atk'),
+ join_paths(meson.build_root(), 'atk'),
+ ],
+ dependencies: libatk_dep,
+ gobject_typesfile: 'atk.types',
+ scan_args: [
+ '--rebuild-types',
+ '--deprecated-guards=ATK_DISABLE_DEPRECATED',
+ '--ignore-decorators=_ATK_EXTERN',
+ '--ignore-headers=' + ' '.join(private_headers),
+ ],
+ 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')),
+ ],
+ html_assets: html_images,
+ install: true)
diff --git a/docs/xml/gtkdocentities.ent.in b/docs/xml/gtkdocentities.ent.in
new file mode 100644
index 0000000..f12c9ff
--- /dev/null
+++ b/docs/xml/gtkdocentities.ent.in
@@ -0,0 +1,8 @@
+<!ENTITY package "@PACKAGE@">
+<!ENTITY package_bugreport "@PACKAGE_BUGREPORT@">
+<!ENTITY package_name "@PACKAGE_NAME@">
+<!ENTITY package_string "@PACKAGE_STRING@">
+<!ENTITY package_tarname "@PACKAGE_TARNAME@">
+<!ENTITY package_url "@PACKAGE_URL@">
+<!ENTITY package_version "@PACKAGE_VERSION@">
+<!ENTITY package_api_version "@PACKAGE_API_VERSION@">
diff --git a/docs/xml/meson.build b/docs/xml/meson.build
new file mode 100644
index 0000000..91280ef
--- /dev/null
+++ b/docs/xml/meson.build
@@ -0,0 +1,10 @@
+ent_conf = configuration_data()
+ent_conf.set('PACKAGE', meson.project_name())
+ent_conf.set('PACKAGE_BUGREPORT', 'https://bugzilla.gnome.org/enter_bug.cgi?product=atk')
+ent_conf.set('PACKAGE_NAME', meson.project_name())
+ent_conf.set('PACKAGE_STRING', meson.project_name())
+ent_conf.set('PACKAGE_TARNAME', '@0@-@1@'.format(meson.project_name(), meson.project_version()))
+ent_conf.set('PACKAGE_URL', 'https://developer.gnome.org/atk/stable')
+ent_conf.set('PACKAGE_VERSION', meson.project_version())
+ent_conf.set('PACKAGE_API_VERSION', atk_api_version)
+configure_file(input: 'gtkdocentities.ent.in', output: 'gtkdocentities.ent', configuration: ent_conf)