summaryrefslogtreecommitdiffstats
path: root/examples/bluetooth/lowenergyscanner/lowenergyscanner.pro
diff options
context:
space:
mode:
Diffstat (limited to 'examples/bluetooth/lowenergyscanner/lowenergyscanner.pro')
-rw-r--r--examples/bluetooth/lowenergyscanner/lowenergyscanner.pro32
1 files changed, 26 insertions, 6 deletions
diff --git a/examples/bluetooth/lowenergyscanner/lowenergyscanner.pro b/examples/bluetooth/lowenergyscanner/lowenergyscanner.pro
index f3378b4c..1e798a55 100644
--- a/examples/bluetooth/lowenergyscanner/lowenergyscanner.pro
+++ b/examples/bluetooth/lowenergyscanner/lowenergyscanner.pro
@@ -1,25 +1,45 @@
+# Copyright (C) 2023 The Qt Company Ltd.
+# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+TEMPLATE = app
TARGET = lowenergyscanner
-INCLUDEPATH += .
QT += quick bluetooth
-# Input
+CONFIG += qmltypes
+QML_IMPORT_NAME = Scanner
+QML_IMPORT_MAJOR_VERSION = 1
+
SOURCES += main.cpp \
device.cpp \
deviceinfo.cpp \
serviceinfo.cpp \
characteristicinfo.cpp
-OTHER_FILES += assets/*.qml
-
HEADERS += \
device.h \
deviceinfo.h \
serviceinfo.h \
characteristicinfo.h
-RESOURCES += \
- resources.qrc
+qml_resources.files = \
+ qmldir \
+ Characteristics.qml \
+ Devices.qml \
+ Dialog.qml \
+ Header.qml \
+ Label.qml \
+ Main.qml \
+ Menu.qml \
+ Services.qml \
+ assets/busy_dark.png
+
+qml_resources.prefix = /qt/qml/Scanner
+
+RESOURCES = qml_resources
+
+ios: QMAKE_INFO_PLIST = ../shared/Info.qmake.ios.plist
+macos: QMAKE_INFO_PLIST = ../shared/Info.qmake.macos.plist
target.path = $$[QT_INSTALL_EXAMPLES]/bluetooth/lowenergyscanner
INSTALLS += target