Add build options of backends
[platform/core/uifw/libds-tizen.git] / src / libds / backend / tdm / meson.build
1 msg = ['Required for TDM backend support.']
2 if 'tdm' in backends
3   msg += 'Install "libtdm" and "libtbm", or disable the tdm backend'
4 endif
5
6 libtdm = dependency(
7   'libtdm',
8   required: 'tdm' in backends,
9   not_found_message: '\n'.join(msg)
10 )
11
12 libtbm = dependency(
13   'libtbm',
14   required: 'tdm' in backends,
15   not_found_message: '\n'.join(msg)
16 )
17
18 if not libtdm.found() or not libtbm.found()
19   subdir_done()
20 endif
21
22 libds_files += files(
23   'backend.c',
24   'output.c',
25 )
26
27 libds_deps += [
28   libtdm,
29   libtbm
30 ]
31
32 features += { 'tdm-backend': true }