-project('libds', 'c',
+project('libds_tizen', 'c',
license: 'MIT',
- version: '0.1.0',
+ version: '0.1.2',
default_options: [
'warning_level=1',
'c_std=gnu99',
]
)
-libds_version = meson.project_version()
-version_arr = libds_version.split('.')
-libds_version_major = version_arr[0]
-libds_version_minor = version_arr[1]
-libds_version_patch = version_arr[2]
+libds_tizen_version = meson.project_version()
+version_arr = libds_tizen_version.split('.')
+libds_tizen_version_major = version_arr[0]
+libds_tizen_version_minor = version_arr[1]
+libds_tizen_version_patch = version_arr[2]
dir_prefix = get_option('prefix')
-libds_bindir = join_paths(dir_prefix, get_option('bindir'))
+libds_tizen_bindir = join_paths(dir_prefix, get_option('bindir'))
-libds_inc = include_directories('include')
-common_inc = [ include_directories('.'), libds_inc ]
+libds_tizen_inc = include_directories('include')
+common_inc = [ include_directories('.'), libds_tizen_inc ]
cdata = configuration_data()
-cdata.set('LIBDS_VERSION_MAJOR', libds_version_major)
-cdata.set('LIBDS_VERSION_MINOR', libds_version_minor)
-cdata.set('LIBDS_VERSION_PATCH', libds_version_patch)
+cdata.set('LIBDS_VERSION_MAJOR', libds_tizen_version_major)
+cdata.set('LIBDS_VERSION_MINOR', libds_tizen_version_minor)
+cdata.set('LIBDS_VERSION_PATCH', libds_tizen_version_patch)
+wayland_protos = dependency('wayland-protocols',
+ fallback: ['wayland-protocols', 'wayland_protocols'],
+ default_options: ['tests=false'],
+)
+wl_protocol_dir = wayland_protos.get_variable('pkgdatadir')
+
+wayland_scanner_dep = dependency('wayland-scanner', native: true)
+wayland_scanner = find_program(
+ wayland_scanner_dep.get_variable('wayland_scanner'),
+ native: true,
+)
-subdir('include')
subdir('src')
+subdir('tests')
subdir('examples')
+subdir('clients')
+subdir('include')
configure_file(output: 'config.h', install: false, configuration: cdata)
-
-pkgconfig = import('pkgconfig')
-pkgconfig.generate(lib_libds,
- version: meson.project_version(),
- filebase: meson.project_name(),
- name: meson.project_name(),
- description: 'Wayland compositor library',
-)