aboutsummaryrefslogtreecommitdiffstats
path: root/meson/test cases/frameworks/14 doxygen/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson/test cases/frameworks/14 doxygen/meson.build')
-rw-r--r--meson/test cases/frameworks/14 doxygen/meson.build28
1 files changed, 28 insertions, 0 deletions
diff --git a/meson/test cases/frameworks/14 doxygen/meson.build b/meson/test cases/frameworks/14 doxygen/meson.build
new file mode 100644
index 000000000..023aa0e63
--- /dev/null
+++ b/meson/test cases/frameworks/14 doxygen/meson.build
@@ -0,0 +1,28 @@
+project('doxygen test', 'cpp', version : '0.1.0')
+
+spede_inc = include_directories('include')
+
+spede_src = [ 'src/spede.cpp' ]
+
+spede_lib = library('spede', spede_src, include_directories: spede_inc)
+
+doxygen = find_program('doxygen', required : false)
+if not doxygen.found()
+ error('MESON_SKIP_TEST doxygen not found.')
+endif
+
+cdata = configuration_data()
+cdata.set('VERSION', meson.project_version())
+
+if find_program('dot', required : false).found()
+ # In the real world this would set the variable
+ # to YES. However we set it to NO so that the
+ # list of generated files is always the same
+ # so tests always pass.
+ cdata.set('HAVE_DOT', 'NO')
+else
+ cdata.set('HAVE_DOT', 'NO')
+endif
+
+subdir('doc')
+