summaryrefslogtreecommitdiff
path: root/src/modules/wl_desktop_shell/meson.build
blob: 255c92adafe68d5f61b3506284ab5cb263325dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
wl_desktop_shell_src = [
	'e_mod_input_panel.c',
	'e_mod_main.c',
	'wl_shell.c',
	'xdg5.c',
	'xdg6.c',
	'e_mod_main.h',
]

wl_desktop_shell_dir = join_paths(dir_module_e, 'wl_desktop_shell', module_arch)
if get_option('wl-desktop-shell') == true and get_option('wayland') == true
	config_h.set('USE_MODULE_WL_DESKTOP_SHELL', '1')

	protos = [
		'@0@/unstable/xdg-shell/xdg-shell-unstable-v5.xml'.format(dir_wayland_protocols),
		'@0@/unstable/xdg-shell/xdg-shell-unstable-v6.xml'.format(dir_wayland_protocols),
		'@0@/unstable/input-method/input-method-unstable-v1.xml'.format(dir_wayland_protocols),
	]

	foreach proto: protos
		wl_desktop_shell_src += gen_scanner_server.process(proto)
		wl_desktop_shell_src += gen_scanner_impl.process(proto)
	endforeach

        module_files += join_paths(wl_desktop_shell_dir, 'wl_desktop_shell.so')
	shared_module('wl_desktop_shell',
                wl_desktop_shell_src,
                include_directories: include_directories(module_includes),
                name_prefix: '',
                dependencies: module_deps,
                install_dir: wl_desktop_shell_dir,
                install: true
        )
endif