~sircmpwn/wio

ref: ec6567e899a5bbb8e6fe59afd9d62c1892ad894b wio/meson.build -rw-r--r-- 1.1 KiB
ec6567e8Leon Plickat Bug-Fix: Can no longer select borders hidden under views 1 year, 2 months ago
                                                                                
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
project(
	'wio',
	'c',
	license: 'BSD-3-Clause',
	default_options: [
		'c_std=c11',
		'warning_level=2',
		'werror=true',
	],
)

add_project_arguments(
	[
		'-DWL_HIDE_DEPRECATED',
		'-DWLR_USE_UNSTABLE',

		'-Wno-unused-parameter',
		'-Wno-unused-result',
		'-Wundef',
	],
	language: 'c',
)

cc = meson.get_compiler('c')

# Prefer wlroots subproject if it is available.
wlroots_proj = subproject(
	'wlroots',
	default_options: ['rootston=false', 'examples=false'],
	required: false,
)
if wlroots_proj.found()
	wlroots = wlroots_proj.get_variable('wlroots')
else
	wlroots = dependency('wlroots')
endif

cairo = dependency('cairo')
math = cc.find_library('m')
wayland_server = dependency('wayland-server')
wayland_protos = dependency('wayland-protocols')
xkbcommon = dependency('xkbcommon')

wio_inc = include_directories('include')

subdir('protocols')

wio_sources = files(
	'main.c',
	'layers.c',
	'input.c',
	'output.c',
	'view.c',
)

executable(
	'wio',
	wio_sources,
	include_directories: [wio_inc],
	dependencies: [
		cairo,
		math,
		server_protos,
		wayland_server,
		wlroots,
		xkbcommon,
	],
	install: true
)