build: build service app for tizen only
[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 if get_option('tizen') == true
25   subdir('org.tizen.aurum-bootstrap')
26 endif
27 subdir('tests')
28
29 configure_file(
30   output: 'config.h',
31   configuration: config_h
32 )
33
34 dconf = configuration_data()
35 dconf.set('VERSION', meson.project_version())
36 if find_program('dot', required : false).found()
37    dconf.set('HAVE_DOT', 'YES')
38 else
39    dconf.set('HAVE_DOT', 'NO')
40 endif
41
42 if get_option('enable_documentation') == true
43   doxygen = find_program('doxygen', required: false)
44   if not doxygen.found()
45     error('doxygen not found')
46   endif
47   subdir('doc')
48 endif