Use wl_signal_emit_mutable()
[platform/core/uifw/libds.git] / meson.build
1 project('libds',
2   ['c', 'cpp'],
3   license: 'MIT',
4   version: '0.1.2',
5   default_options: [
6     'warning_level=3',
7     'c_std=gnu99',
8     'buildtype=debug'
9   ]
10 )
11
12 cc = meson.get_compiler('c')
13
14 global_args = []
15 global_args_maybe = [
16   '-Wno-unused-parameter',
17   '-Wno-pedantic',
18 ]
19 foreach a : global_args_maybe
20   if cc.has_argument(a)
21     global_args += a
22   endif
23 endforeach
24 add_global_arguments(global_args, language: 'c')
25
26 libds_version = meson.project_version()
27 version_arr = libds_version.split('.')
28 libds_version_major = version_arr[0]
29 libds_version_minor = version_arr[1]
30 libds_version_patch = version_arr[2]
31
32 dir_prefix = get_option('prefix')
33 libds_bindir = join_paths(dir_prefix, get_option('bindir'))
34
35 libds_inc = include_directories('include')
36 common_inc = [ include_directories('.'), libds_inc ]
37
38 cdata = configuration_data()
39 cdata.set('LIBDS_VERSION_MAJOR', libds_version_major)
40 cdata.set('LIBDS_VERSION_MINOR', libds_version_minor)
41 cdata.set('LIBDS_VERSION_PATCH', libds_version_patch)
42
43 wayland_protos = dependency('wayland-protocols',
44   fallback: ['wayland-protocols', 'wayland_protocols'],
45   default_options: ['tests=false'],
46 )
47 wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
48
49 wayland_scanner_dep = dependency('wayland-scanner', native: true)
50 wayland_scanner = find_program(
51   wayland_scanner_dep.get_variable('wayland_scanner'),
52   native: true,
53 )
54
55 subdir('src')
56 if get_option('tests')
57   subdir('tests')
58 endif
59 subdir('examples')
60 subdir('clients')
61 subdir('include')
62
63 configure_file(output: 'config.h', install: false, configuration: cdata)