-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmeson.build
More file actions
52 lines (46 loc) · 1.29 KB
/
meson.build
File metadata and controls
52 lines (46 loc) · 1.29 KB
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
project(
'tinybox',
'c',
version: '0.0.2',
license: 'MIT',
meson_version: '>=0.46.0',
default_options: [
'c_std=c11',
'warning_level=2',
'werror=true',
],
)
add_global_arguments(
[
'-DWLR_USE_UNSTABLE=1',
'-DHAVE_WAYLAND=1',
'-DPACKAGE_NAME="' + meson.project_name() + '"',
'-DPACKAGE_VERSION="' + meson.project_version() + '"',
'-Wno-unused-parameter',
'-Wno-unused-result',
'-Wno-missing-braces',
'-Wundef',
'-Wvla'
],
language: 'c',
)
tinybox_inc = include_directories('include')
cc = meson.get_compiler('c')
math = cc.find_library('m', required : true)
wayland_server = dependency('wayland-server')
wayland_cursor = dependency('wayland-cursor')
wayland_client = dependency('wayland-client')
wayland_egl = dependency('wayland-egl')
wayland_protos = dependency('wayland-protocols', version: '>=1.17')
xkbcommon = dependency('xkbcommon')
cairo = dependency('cairo')
pango = dependency('pango')
libinput = dependency('libinput')
pangocairo = dependency('pangocairo')
glesv2 = dependency('glesv2')
egl = dependency('egl')
xcb = dependency('xcb')
pixman = dependency('pixman-1')
wlroots = dependency('wlroots', version: '>=0.14.0')
subdir('protocols')
subdir('tinybox')