summaryrefslogtreecommitdiff
path: root/src/imports/location/location.pro
blob: 1ebd78103722549229f7f25ba067e74c6d9c9397 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
TARGET  = declarative_location
TARGETPATH = QtLocation

include(qlocationimport.pri)

QT += declarative-private network location qtquick1 declarative qt3d

DESTDIR = $$QT.location.imports/$$TARGETPATH
target.path = $$[QT_INSTALL_IMPORTS]/$$TARGETPATH

#INCLUDEPATH += ../../../../qtdeclarative/include
INCLUDEPATH += ../../../../qtdeclarative/include/QtDeclarative/5.0.0/QtDeclarative
INCLUDEPATH += ../../../../qtdeclarative/include/QtDeclarative/5.0.0/QtDeclarative/private
INCLUDEPATH *= $$PWD

# On some platforms, build both versions because debug and release
# versions are incompatible
#win32|mac:!wince*:!win32-msvc:!macx-xcode:CONFIG += debug_and_release

HEADERS += qdeclarativeposition_p.h \
           qdeclarativepositionsource_p.h \
           qdeclarativecoordinate_p.h \
           qdeclarativegeolocation_p.h \
           qdeclarativegeomapobjectview_p.h \
           qdeclarativegeomapmouseevent_p.h \
           qdeclarativegeomapmousearea_p.h \
           qdeclarativegeoserviceprovider_p.h \
           qdeclarativegeoaddress_p.h \
           qdeclarativegeoboundingarea_p.h \
           qdeclarativegeoboundingbox_p.h \
           qdeclarativegeocodemodel_p.h \
           qdeclarativegeoroutemodel_p.h \
           qdeclarativegeoroute_p.h \
           qdeclarativegeoroutesegment_p.h \
           qdeclarativegeomaneuver_p.h \
           qdeclarativegeoboundingcircle_p.h \
           qdeclarative3dgraphicsgeomap_p.h \
           qdeclarativegeomapflickable_p.h \
           qdeclarativegeomappincharea_p.h \
           qdeclarativegeomapitem_p.h

SOURCES += qdeclarativeposition.cpp \
           location.cpp \
           qdeclarativepositionsource.cpp \
           qdeclarativecoordinate.cpp \
           qdeclarativegeolocation.cpp \
           qdeclarativegeomapobjectview.cpp \
           qdeclarativegeomapmouseevent.cpp \
           qdeclarativegeomapmousearea.cpp \
           qdeclarativegeoserviceprovider.cpp \
           qdeclarativegeoaddress.cpp \
           qdeclarativegeoboundingbox.cpp \
           qdeclarativegeocodemodel.cpp \
           qdeclarativegeoroutemodel.cpp \
           qdeclarativegeoroute.cpp \
           qdeclarativegeoroutesegment.cpp \
           qdeclarativegeomaneuver.cpp \
           qdeclarativegeoboundingcircle.cpp \
           qdeclarative3dgraphicsgeomap.cpp \
           qdeclarativegeomapflickable.cpp \
           qdeclarativegeomappincharea.cpp \
           qdeclarativegeomapitem.cpp

include(declarativeplaces/declarativeplaces.pri)

# Tell qmake to create such makefile that qmldir and target (i.e. declarative_location)
# are both copied to qt/imports/QtMobility/location -directory,
# as the "/imports" is the default place where qmlviewer looks for plugins
# (otherwise qmlviewer -I <path> -option is needed)

qmldir.files += $$PWD/qmldir
qmldir.path +=  $$[QT_INSTALL_IMPORTS]/$$TARGETPATH

INSTALLS += target qmldir

# manually enable mouse area and map items (shader effect source) if you know symbols to be
# present in your environment
#message('Will try to build QML Map 3D with QML2 user interaction elements and Map Items.')
#DEFINES += QSGMOUSEAREA_AVAILABLE
#DEFINES += QSGSHADEREFFECTSOURCE_AVAILABLE
message('QML2 3D Map user interaction elements and MapItems not available. Check location.pro - file for instructions.')