summaryrefslogtreecommitdiff
path: root/src/qcam/meson.build
blob: 21f91f25cec0f79332230716d38693d6c1940df2 (plain)
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
qcam_sources = files([
    'format_converter.cpp',
    'main.cpp',
    'main_window.cpp',
    '../cam/options.cpp',
    'qt_event_dispatcher.cpp',
    'viewfinder.cpp',
])

qcam_moc_headers = files([
    'main_window.h',
])

qt5 = import('qt5')
qt5_dep = dependency('qt5',
                     method : 'pkg-config',
                     modules : ['Core', 'Gui', 'Widgets'],
                     required : false)

if qt5_dep.found()
    moc_files = qt5.preprocess(moc_headers: qcam_moc_headers,
                               dependencies: qt5_dep)

    qcam  = executable('qcam', qcam_sources, moc_files,
                       install : true,
                       dependencies : [libcamera_dep, qt5_dep],
                       cpp_args : '-DQT_NO_KEYWORDS')
endif