project('agl-compositor',
- 'c',
+ 'c','cpp',
version: '0.0.18',
default_options: [
'warning_level=3',
pkgconfig = import('pkgconfig')
cc = meson.get_compiler('c')
+cxx = meson.get_compiler('cpp')
+
add_project_arguments(
cc.get_supported_arguments([
'-Wno-unused-parameter',
elif policy_to_install == 'deny-all'
srcs_agl_compositor += 'src/policy-deny.c'
message('Installing deny all policy')
+elif policy_to_install == 'rba'
+ srcs_agl_compositor += ['src/policy-rba.c', 'src/rba_adapter.cpp']
+ deps_libweston += dependency('librba')
+ message('Installing rba policy')
endif
# '-I/extra/include/dir, but this should only be used in exceptional cases for
# includes that can't be detected via pkg-config and passed via dependencies.
if libweston_dep.found()
- if not prefix_path.contains('/usr')
- dir_path_x11_backend = join_paths(prefix_path, 'include', libweston_version, 'libweston', 'backend-x11.h')
+ if not meson.is_cross_build()
+ if not prefix_path.contains('/usr')
+ dir_path_x11_backend = join_paths(prefix_path, 'include', libweston_version, 'libweston', 'backend-x11.h')
+ else
+ dir_path_x11_backend = join_paths(libweston_version, 'libweston', 'backend-x11.h')
+ endif
else
+ message('Building with cross environment')
dir_path_x11_backend = join_paths(libweston_version, 'libweston', 'backend-x11.h')
endif