-
Notifications
You must be signed in to change notification settings - Fork 6
/
meson.build
66 lines (60 loc) · 1.94 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
project('qmpanel', ['c', 'cpp'], version: '0.1')
qt6 = import('qt6')
mocs = qt6.compile_moc(headers: [
'dbusmenu/dbusmenu_interface.h',
'dbusmenu/dbusmenuimporter.h',
'panel/statusnotifier/statusnotifieriteminterface.h',
'panel/statusnotifier/statusnotifierwatcher.h',
])
wayland_scanner = find_program('wayland-scanner')
wayland_scanner_c = generator(
wayland_scanner,
output: '@[email protected]',
arguments: ['private-code', '@INPUT@', '@OUTPUT@'],
)
wayland_scanner_h = generator(
wayland_scanner,
output: '@[email protected]',
arguments: ['client-header', '@INPUT@', '@OUTPUT@'],
)
protos = [
wayland_scanner_c.process('wlr-foreign-toplevel-management-unstable-v1.xml'),
wayland_scanner_h.process('wlr-foreign-toplevel-management-unstable-v1.xml'),
]
srcs = [
mocs,
protos,
'dbusmenu/dbusmenu_interface.cpp',
'dbusmenu/dbusmenuimporter.cpp',
'dbusmenu/dbusmenushortcut_p.cpp',
'dbusmenu/dbusmenutypes_p.cpp',
'dbusmenu/utils.cpp',
'panel/actionview.cpp',
'panel/clocklabel.cpp',
'panel/main.cpp',
'panel/mainmenu.cpp',
'panel/mainpanel.cpp',
'panel/quicklaunch.cpp',
'panel/resources.cpp',
'panel/statusnotifier/dbustypes.cpp',
'panel/statusnotifier/statusnotifier.cpp',
'panel/statusnotifier/statusnotifiericon.cpp',
'panel/statusnotifier/statusnotifieriteminterface.cpp',
'panel/statusnotifier/statusnotifierwatcher.cpp',
'panel/taskbar.cpp',
'panel/taskbutton.cpp',
]
deps = [
dependency('threads'),
dependency('gio-2.0'),
dependency('gio-unix-2.0'),
dependency('qt6', modules: ['Core', 'Gui', 'Widgets', 'DBus', 'WaylandClient'],
private_headers: true),
dependency('KF6WindowSystem'),
dependency('LayerShellQt', modules: ['LayerShellQt::Interface']),
dependency('wayland-client'),
dependency('xcb'),
]
# these are harmless and will be addressed later
add_global_arguments('-Wno-deprecated-declarations', language : 'cpp')
executable('qmpanel', srcs, dependencies: deps, install: true)