meson.build: Increase to libweston8 dependency
[src/agl-compositor.git] / meson.build
index aa69218..ccb649f 100644 (file)
@@ -1,6 +1,6 @@
 project('agl-compositor',
   'c',
-  version: '0.0.15',
+  version: '0.0.17',
   default_options: [
     'warning_level=3',
     'c_std=gnu99',
@@ -10,7 +10,7 @@ project('agl-compositor',
 )
 
 config_h = configuration_data()
-agl_compositor_version = '0.0.15'
+agl_compositor_version = '0.0.17'
 pkgconfig = import('pkgconfig')
 
 cc = meson.get_compiler('c')
@@ -46,6 +46,7 @@ dep_wp = dependency('wayland-protocols', version: '>= 1.18')
 dir_wp_base = dep_wp.get_pkgconfig_variable('pkgdatadir')
 
 agl_shell_xml = files('protocol/agl-shell.xml')
+agl_shell_desktop_xml = files('protocol/agl-shell-desktop.xml')
 xdg_shell_xml = join_paths(dir_wp_base, 'stable', 'xdg-shell', 'xdg-shell.xml')
 
 protocols = [
@@ -106,12 +107,12 @@ endif
 dir_data = join_paths(prefix_path, get_option('datadir'))
 dir_data_agl_compositor = join_paths('agl-compositor', 'protocols')
 dir_data_pc = join_paths(dir_data, 'pkgconfig')
-libweston_dep = dependency('libweston-7')
+libweston_dep = dependency('libweston-8')
 
 deps_libweston = [
   dependency('wayland-server'),
   libweston_dep,
-  dependency('libweston-desktop-7'),
+  dependency('libweston-desktop-8'),
   local_dep,
 ]
 
@@ -119,6 +120,8 @@ srcs_agl_compositor = [
        'src/main.c',
        'src/desktop.c',
        'src/layout.c',
+       'src/policy.c',
+       'src/policy-default.c',
        'src/shell.c',
        'shared/option-parser.c',
        'shared/os-compatibility.c',
@@ -177,6 +180,6 @@ pkgconfig.generate(
 )
 
 install_data(
-        [ agl_shell_xml ],
+        [ agl_shell_xml, agl_shell_desktop_xml ],
         install_dir: join_paths(dir_data, dir_data_agl_compositor)
 )