summaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2017-01-25 16:38:02 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2017-02-03 11:03:13 +0000
commit59d9c2d83db722599d612f4339d9d8405f0c13e7 (patch)
tree1e6e9d6c4ad42d5f6959a5d42faf106aaf0130e5 /meson.build
parent3d1193fd30da12bcf1591bce18ccc615055424c1 (diff)
downloadlibepoxy-59d9c2d83db722599d612f4339d9d8405f0c13e7.tar.gz
Generate the Epoxy API reference using Doxygen
The build is conditional on: * using the Meson build * passing the `-Denable-docs=true` configuration switch * having `doxygen` installed Currently, the generated HTML is kind of empty, but it works.
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build9
1 files changed, 9 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index c75622c..c8e45cd 100644
--- a/meson.build
+++ b/meson.build
@@ -170,3 +170,12 @@ libepoxy_inc = [
subdir('include/epoxy')
subdir('src')
subdir('test')
+
+if get_option('enable-docs')
+ doxygen = find_program('doxygen', required: false)
+ if doxygen.found()
+ subdir('doc')
+ else
+ message('Documentation disabled without doxygen')
+ endif
+endif