feature/read_file #13
15
meson.build
15
meson.build
@ -11,19 +11,20 @@ project('obelisk',
|
|||||||
|
|
||||||
llvm = dependency('llvm', version: '>= 14.0.0', modules : ['core', 'target', 'mcjit', 'nativecodegen'], required : true, method: 'config-tool')
|
llvm = dependency('llvm', version: '>= 14.0.0', modules : ['core', 'target', 'mcjit', 'nativecodegen'], required : true, method: 'config-tool')
|
||||||
|
|
||||||
doxygen = find_program('doxygen', required : false)
|
|
||||||
|
|
||||||
cdata = configuration_data()
|
cdata = configuration_data()
|
||||||
cdata.set('VERSION', meson.project_version())
|
cdata.set('VERSION', meson.project_version())
|
||||||
|
|
||||||
if find_program('dot', required : false).found()
|
docs_enabled = get_option('docs')
|
||||||
|
if docs_enabled
|
||||||
|
doxygen = find_program('doxygen', required : false)
|
||||||
|
if doxygen.found()
|
||||||
|
if find_program('dot', required : false).found()
|
||||||
cdata.set('HAVE_DOT', 'YES')
|
cdata.set('HAVE_DOT', 'YES')
|
||||||
else
|
else
|
||||||
cdata.set('HAVE_DOT', 'NO')
|
cdata.set('HAVE_DOT', 'NO')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if doxygen.found()
|
|
||||||
subdir('doc')
|
subdir('doc')
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
subdir('src')
|
subdir('src')
|
||||||
|
4
meson_options.txt
Normal file
4
meson_options.txt
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
option('docs',
|
||||||
|
type: 'boolean',
|
||||||
|
value: true,
|
||||||
|
description: 'Build documentation for obelisk')
|
Loading…
Reference in New Issue
Block a user