-
Notifications
You must be signed in to change notification settings - Fork 1
/
meson.build
47 lines (42 loc) · 992 Bytes
/
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
project(
'qtphy', 'cpp',
version : '0.3.2',
license : 'MIT',
meson_version : '>=0.63.0'
)
qt6 = import('qt6')
qt6_dep = dependency('qt6', modules : ['Core', 'Qml', 'Quick', 'Gui', 'DBus', 'Multimedia'])
exec_dep = [qt6_dep]
headers = [
'src/device_info.hpp',
'src/rauc.hpp'
]
src = [
'src/main.cpp',
'src/device_info.cpp',
'src/rauc.cpp'
]
qmlsink_option = get_option('qmlsink')
if qmlsink_option.enabled()
gst_dep = dependency('gstreamer-1.0')
exec_dep += [gst_dep]
add_project_arguments('-DQML_SINK', language : 'cpp')
headers += ['src/multimedia_qmlsink.hpp']
src += ['src/multimedia_qmlsink.cpp']
endif
inc = include_directories('src')
moc = qt6.compile_moc(
headers : headers,
include_directories : inc,
dependencies : qt6_dep
)
res = qt6.compile_resources(
sources : 'resources/resources.qrc'
)
executable(
meson.project_name(),
sources : [src, res, moc],
include_directories : inc,
dependencies : exec_dep,
install : true
)