install_dir: join_paths(mandir, 'man' + page[1]))
endforeach
endif
+
+# API Docs (Doxygen)
+if want_api_docs
+ doxygen = find_program('doxygen', required: true)
+
+ api_docs = custom_target(
+ 'api-docs',
+ input: files('api/Doxyfile'),
+ output: 'api-docs.stamp',
+ command: [doxygen, '@INPUT@'],
+ build_by_default: true
+ )
+endif
\ No newline at end of file
want_io_uring = get_option('io-uring-event-loop')
want_pam_cgroup = get_option('pam-cgroup')
want_mans = get_option('man')
+want_api_docs = get_option('api-docs')
want_tests = get_option('tests')
want_tools = get_option('tools')
want_tools_multicall = get_option('tools-multicall')
endif
endif
+## API Docs.
+doxygen = find_program('doxygen', required: false)
+if not doxygen.found() and want_api_docs
+ error('missing required doxygen dependency')
+endif
+
## Threads.
threads = dependency('threads')
liblxc_dependencies += threads
option('man', type: 'boolean', value: true,
description: 'build and install manpages')
+# was --{disable,enable}-api-docs in autotools
+option('api-docs', type: 'boolean', value: false,
+ description: 'build and install API documentation (Doxygen)')
+
# was --{disable,enable}-pam in autotools
option('pam-cgroup', type: 'boolean', value: false,
description: 'build and install the pam cgroup module')