summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDoris Verria <doris.verria@qt.io>2021-05-11 16:41:21 +0200
committerLars Knoll <lars.knoll@qt.io>2021-05-14 10:11:43 +0000
commitbe4150b2c4e80b670d3ab280ed3f556e71669b13 (patch)
treed510ec92b16b2480e45671af5072240a52483148 /tests
parent9a4822037def3b9d48abea8bbfd7ea20fd19849b (diff)
Add an Info.plist to tst_camerabackend
Change-Id: Id4e1507923103213b5f08efd516d3d9d9dba3da7 Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/integration/qcamerabackend/CMakeLists.txt7
-rw-r--r--tests/auto/integration/qcamerabackend/Info.plist25
2 files changed, 32 insertions, 0 deletions
diff --git a/tests/auto/integration/qcamerabackend/CMakeLists.txt b/tests/auto/integration/qcamerabackend/CMakeLists.txt
index f5bf1063f..c2684abd4 100644
--- a/tests/auto/integration/qcamerabackend/CMakeLists.txt
+++ b/tests/auto/integration/qcamerabackend/CMakeLists.txt
@@ -12,3 +12,10 @@ qt_add_test(tst_qcamerabackend
Qt::MultimediaPrivate
Qt::Widgets
)
+
+# special case begin
+if (APPLE)
+ set_property(TARGET tst_qcamerabackend PROPERTY MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/Info.plist")
+ set_property(TARGET tst_qcamerabackend PROPERTY PROPERTY MACOSX_BUNDLE TRUE)
+endif()
+# special case end
diff --git a/tests/auto/integration/qcamerabackend/Info.plist b/tests/auto/integration/qcamerabackend/Info.plist
new file mode 100644
index 000000000..30623235f
--- /dev/null
+++ b/tests/auto/integration/qcamerabackend/Info.plist
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>CFBundleDisplayName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleExecutable</key>
+ <string>${EXECUTABLE_NAME}</string>
+ <key>CFBundleIdentifier</key>
+ <string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
+ <key>CFBundleName</key>
+ <string>${PRODUCT_NAME}</string>
+ <key>CFBundleVersion</key>
+ <string>${MACOSX_BUNDLE_BUNDLE_VERSION}</string>
+ <key>CFBundleShortVersionString</key>
+ <string>${MACOSX_BUNDLE_SHORT_VERSION_STRING}</string>
+ <key>CFBundleLongVersionString</key>
+ <string>${MACOSX_BUNDLE_LONG_VERSION_STRING}</string>
+
+ <key>NSCameraUsageDescription</key>
+ <string>Qt Multimedia Test</string>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>Qt Multimedia Test</string>
+</dict>
+</plist>