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
|
# SPDX-License-Identifier: CC0-1.0
qt6 = import('qt6')
qt6_dep = dependency('qt6',
method : 'pkg-config',
modules : ['Core', 'Gui', 'OpenGL', 'OpenGLWidgets', 'Widgets'],
required : get_option('qcam'),
version : '>=6.2')
if not qt6_dep.found()
qcam_enabled = false
subdir_done()
endif
qcam_enabled = true
qcam_sources = files([
'cam_select_dialog.cpp',
'format_converter.cpp',
'main.cpp',
'main_window.cpp',
'message_handler.cpp',
'viewfinder_gl.cpp',
'viewfinder_qt.cpp',
])
qcam_moc_headers = files([
'cam_select_dialog.h',
'main_window.h',
'viewfinder_gl.h',
'viewfinder_qt.h',
])
qcam_resources = files([
'assets/feathericons/feathericons.qrc',
'assets/shader/shaders.qrc',
])
qt6_cpp_args = [apps_cpp_args, '-DQT_NO_KEYWORDS']
resources = qt6.preprocess(moc_headers : qcam_moc_headers,
qresources : qcam_resources,
dependencies : qt6_dep)
qcam = executable('qcam', qcam_sources, resources,
install : true,
install_tag : 'bin',
link_with : apps_lib,
dependencies : [
libatomic,
libcamera_public,
libtiff,
qt6_dep,
],
cpp_args : qt6_cpp_args)
|