-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmeson.build
48 lines (43 loc) · 1.18 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
project(
'RDtype',
'cpp',
version: '0.1.0',
license: 'MIT',
default_options: [
'buildtype=release',
'cpp_std=c++20'
],
)
project_name = meson.project_name().to_lower()
qt6 = import('qt6')
qt6_deps = dependency('qt6', modules: ['Core', 'DBus'])
kconfig = dependency('KF6Config', method: 'cmake', modules: ['KF6::ConfigCore'])
kwaylandclient = dependency('KWaylandClient')
xkbcommon = dependency('xkbcommon')
qdbusxml2cpp = find_program('qdbusxml2cpp', dirs: ['/usr/lib/qt6/bin'])
remotedesktop_src = custom_target('remotedesktop',
input: ['dbus/org.freedesktop.portal.RemoteDesktop.xml'],
output: ['remotedesktop.h', 'remotedesktop.cpp'],
command: [qdbusxml2cpp, '@INPUT@', '-p', '@OUTPUT0@:@OUTPUT1@'])
qtprocessed = qt6.compile_moc(headers: [
'src/main.h',
'src/remote.h',
remotedesktop_src[0],
])
src_files = files(
'src/main.cpp',
'src/remote.cpp',
)
executable(
project_name,
src_files,
remotedesktop_src[1],
qtprocessed,
dependencies: [
qt6_deps,
kconfig,
kwaylandclient,
xkbcommon,
],
install : true,
)