Skip to content

Commit

Permalink
Make qdoc dependency optional
Browse files Browse the repository at this point in the history
  • Loading branch information
z3ntu committed Oct 21, 2018
1 parent 2666d24 commit 72d58d7
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/libopenrazer/docs/meson.build
@@ -1,9 +1,11 @@
qdoc = find_program('qdoc')
qdoc = find_program('qdoc', required : false)

# TODO Fix up includes to work automatically (especially the gcc include)
mytarget = custom_target('docs',
output: 'html',
input : 'config.qdocconf',
command: [qdoc, '@INPUT@', '-I', meson.current_source_dir(),
'-I/usr/include/qt', '-I/usr/include/qt/QtCore', '-I/usr/include/qt/QtGui', '-I/usr/include/qt/QtDBus', '-I/usr/include/qt/QtXml',
'-I/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include'])
if qdoc.found()
# TODO Fix up includes to work automatically (especially the gcc include)
custom_target('docs',
output: 'html',
input : 'config.qdocconf',
command: [qdoc, '@INPUT@', '-I', meson.current_source_dir(),
'-I/usr/include/qt', '-I/usr/include/qt/QtCore', '-I/usr/include/qt/QtGui', '-I/usr/include/qt/QtDBus', '-I/usr/include/qt/QtXml',
'-I/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/include'])
endif

0 comments on commit 72d58d7

Please sign in to comment.