summaryrefslogtreecommitdiff
path: root/src/qcam/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'src/qcam/meson.build')
-rw-r--r--src/qcam/meson.build44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/qcam/meson.build b/src/qcam/meson.build
deleted file mode 100644
index c256d06f..00000000
--- a/src/qcam/meson.build
+++ /dev/null
@@ -1,44 +0,0 @@
-qcam_sources = files([
- 'format_converter.cpp',
- 'main.cpp',
- 'main_window.cpp',
- '../cam/options.cpp',
- 'viewfinder.cpp',
-])
-
-qcam_moc_headers = files([
- 'main_window.h',
- 'viewfinder.h',
-])
-
-qcam_resources = files([
- 'assets/feathericons/feathericons.qrc',
-])
-
-qt5 = import('qt5')
-qt5_dep = dependency('qt5',
- method : 'pkg-config',
- modules : ['Core', 'Gui', 'Widgets'],
- required : false)
-
-if qt5_dep.found()
- qt5_cpp_args = [ '-DQT_NO_KEYWORDS' ]
-
- # gcc 9 introduced a deprecated-copy warning that is triggered by Qt until
- # Qt 5.13. clang 10 introduced the same warning, but detects more issues
- # that are not fixed in Qt yet. Disable the warning manually in both cases.
- if ((cc.get_id() == 'gcc' and cc.version().version_compare('>=9.0') and
- qt5_dep.version().version_compare('<5.13')) or
- (cc.get_id() == 'clang' and cc.version().version_compare('>=10.0')))
- qt5_cpp_args += [ '-Wno-deprecated-copy' ]
- endif
-
- resources = qt5.preprocess(moc_headers: qcam_moc_headers,
- qresources : qcam_resources,
- dependencies: qt5_dep)
-
- qcam = executable('qcam', qcam_sources, resources,
- install : true,
- dependencies : [libcamera_dep, qt5_dep],
- cpp_args : qt5_cpp_args)
-endif