build: get doxygen generating selective
[platform/core/uifw/aurum.git] / meson.build
1 project('aurum', ['cpp'],
2   version: '0.1.1',
3   default_options : ['buildtype=debugoptimized', 'cpp_std=c++17'],
4   meson_version : '>=0.47'
5 )
6
7 config_h = configuration_data()
8 if get_option('tizen') == true
9   config_h.set10('GBS_BUILD', true)
10   config_h.set10('GBSBUILD', true)
11   config_h.set10('TIZEN', true)
12 else
13   message('')
14 endif
15 if get_option('tizen_gcov') == true
16   config_h.set10('TIZEN_GCOV', true)
17 endif
18
19 root_inc = include_directories('./')
20
21 subdir('protocol')
22 subdir('libloguru')
23 subdir('libaurum')
24 subdir('org.tizen.aurum-bootstrap')
25 subdir('tests')
26
27 configure_file(
28   output: 'config.h',
29   configuration: config_h
30 )
31
32 dconf = configuration_data()
33 dconf.set('VERSION', meson.project_version())
34 if find_program('dot', required : false).found()
35    dconf.set('HAVE_DOT', 'YES')
36 else
37    dconf.set('HAVE_DOT', 'NO')
38 endif
39
40 if get_option('enable_documentation') == true
41   doxygen = find_program('doxygen', required: false)
42   if not doxygen.found()
43     error('doxygen not found')
44   endif
45   subdir('doc')
46 endif