summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/ios/ios.pro
blob: 91ec3ae075b1a8ea6479ba4ae9578438310a12a0 (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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
TARGET = qtsensors_ios
QT = core sensors

OTHER_FILES = plugin.json

OBJECTIVE_SOURCES += main.mm
LIBS += -framework Foundation

uikit {
    ios {
        HEADERS += \
            ioscompass.h
        OBJECTIVE_SOURCES += \
            ioscompass.mm

        DEFINES += HAVE_COMPASS
        LIBS += -framework CoreLocation
    }

    !tvos {
        HEADERS += \
            iosaccelerometer.h \
            iosgyroscope.h \
            iosmagnetometer.h \
            iosmotionmanager.h
        OBJECTIVE_SOURCES += \
            iosaccelerometer.mm \
            iosgyroscope.mm \
            iosmagnetometer.mm \
            iosmotionmanager.mm

        DEFINES += HAVE_COREMOTION
        LIBS += -framework CoreMotion
    }

    !watchos {
        HEADERS += \
            iosproximitysensor.h
        OBJECTIVE_SOURCES += \
            iosproximitysensor.mm

        DEFINES += HAVE_UIDEVICE
        LIBS += -framework UIKit
    }
}

PLUGIN_TYPE = sensors
PLUGIN_CLASS_NAME = IOSSensorPlugin
load(qt_plugin)