7 'c_std=gnu99', 'cpp_std=c++20',
12 cc = meson.get_compiler('c')
14 add_project_arguments(cc.get_supported_arguments([
15 '-Wno-missing-field-initializers',
16 '-Wno-unused-parameter',
18 '-Wno-missing-braces',
19 ]), language: ['c', 'cpp'])
21 libds_tizen_version = meson.project_version()
22 version_arr = libds_tizen_version.split('.')
23 libds_tizen_version_major = version_arr[0]
24 libds_tizen_version_minor = version_arr[1]
25 libds_tizen_version_patch = version_arr[2]
27 dir_prefix = get_option('prefix')
28 libds_tizen_bindir = join_paths(dir_prefix, get_option('bindir'))
30 libds_tizen_inc = include_directories('include')
32 cdata = configuration_data()
33 cdata.set('LIBDS_VERSION_MAJOR', libds_tizen_version_major)
34 cdata.set('LIBDS_VERSION_MINOR', libds_tizen_version_minor)
35 cdata.set('LIBDS_VERSION_PATCH', libds_tizen_version_patch)
37 wayland_protos = dependency('wayland-protocols',
38 fallback: ['wayland-protocols', 'wayland_protocols'],
39 default_options: ['tests=false'],
41 wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
43 wayland_scanner_dep = dependency('wayland-scanner', native: true)
44 wayland_scanner = find_program(
45 wayland_scanner_dep.get_variable('wayland_scanner'),
55 configure_file(output: 'config.h', install: false, configuration: cdata)