-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
92 lines (81 loc) · 1.88 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
project('compositor', 'cpp', default_options : [
'warning_level=3',
'werror=true',
'cpp_std=c++2a',
'c_std=c11'
])
add_global_arguments('-Wno-unused-parameter', language : 'cpp')
add_project_arguments(['-DWLR_USE_UNSTABLE'], language: 'cpp')
dbuscpp = dependency('dbus-c++-1')
gtk = dependency('gtk+-3.0')
libinput = dependency('libinput')
pixman = dependency('pixman-1')
spdlog = dependency('spdlog')
wayland_client = dependency('wayland-client')
wayland_protocols = dependency('wayland-protocols', version: '>=1.17')
wayland_server = dependency('wayland-server')
wlroots = dependency('wlroots')
xkbcommon = dependency('xkbcommon')
yamlcpp = dependency('yaml-cpp')
dependencies = [
dbuscpp,
gtk,
libinput,
pixman,
spdlog,
wayland_client,
wayland_protocols,
wayland_server,
wlroots,
xkbcommon,
yamlcpp
]
includes = include_directories(['include', 'protocols', 'vendor', 'dbus'])
sources = [
'src/wlroots_platform.cpp',
'src/posix_os.cpp',
'src/display_config.cpp',
'src/cursor.cpp',
'src/gtk_shell/gtk_shell_wl.cpp',
'src/gtk_shell/gtk_shell.cpp',
'src/gtk_shell/gtk_surface.cpp',
'src/key_binding.cpp',
'src/keyboard.cpp',
'src/xdg_shell_wl.cpp',
'src/output.cpp',
'src/seat.cpp',
'src/server.cpp',
'src/view.cpp',
'src/xdg_view.cpp',
]
compositor = shared_library(
'compositor',
sources,
include_directories: includes,
dependencies: dependencies
)
executable(
'compositor',
'src/main.cpp',
include_directories: includes,
link_with: compositor,
dependencies: dependencies
)
gtest = dependency('gtest')
gmock = dependency('gmock')
tests_dependencies = [
gtest,
gmock
]
tests_sources = [
'tests/server_tests.cpp',
'tests/display_config_tests.cpp',
'tests/main.cpp'
]
executable(
'tests',
tests_sources,
include_directories: ['tests', includes],
dependencies: [dependencies, tests_dependencies],
link_with: compositor
)