summaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build11
1 files changed, 10 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index ad996e8..9dd9673 100644
--- a/meson.build
+++ b/meson.build
@@ -139,7 +139,6 @@ srcs_agl_compositor = [
'src/desktop.c',
'src/layout.c',
'src/policy.c',
- 'src/policy-default.c',
'src/shell.c',
'shared/option-parser.c',
'shared/os-compatibility.c',
@@ -150,6 +149,16 @@ srcs_agl_compositor = [
xdg_shell_protocol_c,
]
+policy_to_install = get_option('policy-default')
+if policy_to_install == 'auto' or policy_to_install == 'allow-all'
+ srcs_agl_compositor += 'src/policy-default.c'
+ message('Installing allow all policy')
+elif policy_to_install == 'deny-all'
+ srcs_agl_compositor += 'src/policy-deny.c'
+ message('Installing deny all policy')
+endif
+
+
# From meson documentation:
# In order to look for headers in a specific directory you can use args :
# '-I/extra/include/dir, but this should only be used in exceptional cases for