Make xwayland compile-time optional

This commit is contained in:
Versus Void 2017-10-06 21:50:25 +00:00
parent decd87043f
commit 9cab66f0f9
7 changed files with 57 additions and 28 deletions

View file

@ -1,17 +1,20 @@
sources = [
'config.c',
'cursor.c',
'desktop.c',
'ini.c',
'input.c',
'keyboard.c',
'main.c',
'output.c',
'pointer.c',
'tablet_tool.c',
'xdg_shell_v6.c',
'wl_shell.c',
]
if get_option('enable_xwayland')
sources += ['xwayland.c']
endif
executable(
'rootston', [
'config.c',
'cursor.c',
'desktop.c',
'ini.c',
'input.c',
'keyboard.c',
'main.c',
'output.c',
'pointer.c',
'tablet_tool.c',
'xdg_shell_v6.c',
'xwayland.c',
'wl_shell.c',
], dependencies: wlroots
'rootston', sources, dependencies: wlroots
)