-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmeson.build
60 lines (49 loc) · 1.22 KB
/
meson.build
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
project(
'sgflow',
'c',
license: 'MIT',
default_options: [
'c_std=c11',
'warning_level=2',
],
)
add_project_arguments('-DWLR_USE_UNSTABLE', language: 'c')
wayland_client = dependency('wayland-client')
wayland_cursor = dependency('wayland-cursor')
wayland_protos = dependency('wayland-protocols')
wlroots = dependency('wlroots', fallback: ['wlroots', 'wlroots'], version: '>=0.4.1')
gtk = dependency('gtk+-3.0')
xkbcommon = dependency('xkbcommon')
inc = include_directories('include')
src_files = files(
'src/main.c',
'src/result.c',
'src/layer.c'
)
gnome = import('gnome')
resources = gnome.compile_resources('sgflow-resources',
'ui/sgflow.gresource.xml',
source_dir : 'ui',
c_name : 'sgflow')
# Must define these here as gnome.compile_resources undefines them
add_project_arguments('-Wno-unused-parameter', language: 'c')
add_project_arguments('-Wno-unused-variable', language: 'c')
add_project_arguments('-Wno-deprecated-declarations', language: 'c')
subdir('protocol')
deps = [
client_protos,
wayland_client,
wayland_cursor,
wayland_protos,
wlroots,
gtk,
xkbcommon
]
executable(
'sgflow',
src_files,
resources,
include_directories: [inc],
dependencies: deps,
install: true
)