summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorManatsawin Hanmongkolchai <[email protected]>2022-11-14 01:35:12 +0700
committerraveit65 <[email protected]>2023-04-20 18:07:49 +0200
commitbbcbca9eb1240c3493895dbdcf03a4b2c2803d29 (patch)
tree9719912dab8fdd4238045f739a821fba2630a4b9 /doc
parent2c38b75e422a41cfa180d1f4a5a55d52577b2989 (diff)
downloadeom-bbcbca9eb1240c3493895dbdcf03a4b2c2803d29.tar.bz2
eom-bbcbca9eb1240c3493895dbdcf03a4b2c2803d29.tar.xz
Add meson build support
Diffstat (limited to 'doc')
-rw-r--r--doc/meson.build1
-rw-r--r--doc/reference/meson.build30
2 files changed, 31 insertions, 0 deletions
diff --git a/doc/meson.build b/doc/meson.build
new file mode 100644
index 0000000..ead14c4
--- /dev/null
+++ b/doc/meson.build
@@ -0,0 +1 @@
+subdir('reference')
diff --git a/doc/reference/meson.build b/doc/reference/meson.build
new file mode 100644
index 0000000..6805b3c
--- /dev/null
+++ b/doc/reference/meson.build
@@ -0,0 +1,30 @@
+ignore_headers = [
+ 'eom-image-private.h',
+ 'eom-image-jpeg.h',
+ 'eom-marshal.h',
+ 'eom-application-service.h',
+ 'eom-enum-types.h',
+]
+
+if not exif.found()
+ ignore_headers += [
+ 'eom-exif-util.h',
+ 'eom-metadata-details.h',
+ ]
+endif
+
+sgml = configure_file(input: 'eom-docs.sgml.in', configuration: pkg_info, output: 'eom-docs.sgml')
+versionsxml = configure_file(input: 'version.xml.in', configuration: pkg_info, output: 'version.xml')
+
+gnome.gtkdoc(
+ 'eom',
+ src_dir: src_inc,
+ include_directories: include_dirs,
+ main_sgml: 'eom-docs.sgml.in',
+ scan_args: ['--rebuild-types'],
+ mkdb_args: ['--sgml-mode', '--output-format=xml'],
+ ignore_headers: ignore_headers,
+ content_files: [versionsxml],
+ dependencies: [all_deps, libeom],
+ install: true,
+)