meson: drop indent level from xwayland
Use the pattern to avoid identing everything, when everything in the file is under the one conditional. Helps readability. Signed-off-by: Pekka Paalanen <pq@iki.fi>
This commit is contained in:
+32
-30
@@ -1,31 +1,33 @@
|
|||||||
if get_option('xwayland')
|
if not get_option('xwayland')
|
||||||
srcs_xwayland = [
|
subdir_done()
|
||||||
'launcher.c',
|
|
||||||
'window-manager.c',
|
|
||||||
'selection.c',
|
|
||||||
'dnd.c',
|
|
||||||
'hash.c',
|
|
||||||
]
|
|
||||||
deps_xwayland = [
|
|
||||||
dependency('xcb'),
|
|
||||||
dependency('xcb-composite'),
|
|
||||||
dependency('xcb-shape'),
|
|
||||||
dependency('xcb-xfixes'),
|
|
||||||
dependency('xcursor'),
|
|
||||||
dependency('cairo-xcb'),
|
|
||||||
dep_libweston,
|
|
||||||
]
|
|
||||||
plugin_xwayland = shared_library(
|
|
||||||
'xwayland',
|
|
||||||
srcs_xwayland,
|
|
||||||
link_with: lib_cairo_shared,
|
|
||||||
include_directories: include_directories('..', '../shared'),
|
|
||||||
dependencies: deps_xwayland,
|
|
||||||
name_prefix: '',
|
|
||||||
install: true,
|
|
||||||
install_dir: dir_module_libweston
|
|
||||||
)
|
|
||||||
env_modmap += 'xwayland.so=@0@;'.format(plugin_xwayland.full_path())
|
|
||||||
|
|
||||||
install_headers('xwayland-api.h', subdir: dir_include_libweston)
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
srcs_xwayland = [
|
||||||
|
'launcher.c',
|
||||||
|
'window-manager.c',
|
||||||
|
'selection.c',
|
||||||
|
'dnd.c',
|
||||||
|
'hash.c',
|
||||||
|
]
|
||||||
|
deps_xwayland = [
|
||||||
|
dependency('xcb'),
|
||||||
|
dependency('xcb-composite'),
|
||||||
|
dependency('xcb-shape'),
|
||||||
|
dependency('xcb-xfixes'),
|
||||||
|
dependency('xcursor'),
|
||||||
|
dependency('cairo-xcb'),
|
||||||
|
dep_libweston,
|
||||||
|
]
|
||||||
|
plugin_xwayland = shared_library(
|
||||||
|
'xwayland',
|
||||||
|
srcs_xwayland,
|
||||||
|
link_with: lib_cairo_shared,
|
||||||
|
include_directories: include_directories('..', '../shared'),
|
||||||
|
dependencies: deps_xwayland,
|
||||||
|
name_prefix: '',
|
||||||
|
install: true,
|
||||||
|
install_dir: dir_module_libweston
|
||||||
|
)
|
||||||
|
env_modmap += 'xwayland.so=@0@;'.format(plugin_xwayland.full_path())
|
||||||
|
|
||||||
|
install_headers('xwayland-api.h', subdir: dir_include_libweston)
|
||||||
|
|||||||
Reference in New Issue
Block a user