-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathOfflineMapTest.pro
More file actions
90 lines (67 loc) · 2.16 KB
/
Copy pathOfflineMapTest.pro
File metadata and controls
90 lines (67 loc) · 2.16 KB
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
83
84
85
86
87
88
89
90
TEMPLATE = app
QT += qml quick
QT += location positioning
QT += core gui
QT += network widgets
QT += multimedia multimediawidgets #add video and music
QT += quickwidgets
QT += network #add network
QT += charts
QT += qml-private quick-private gui-private core-private
CONFIG += c++11
SOURCES += main.cpp
RESOURCES += qml.qrc
# Additional import path used to resolve QML modules in Qt Creator's code model
QML_IMPORT_PATH =
include(QtLocationPlugin/LocationPlugin.pri)
include(test/test.pri)
include(MainWindows/MainWindows.pri)
include(VideoPlayer/VideoPlayer.pri)
include(MapItems/MapItems.pri)
#add ffmpeg and QtAV
#windows
win32 {
INCLUDEPATH += $$PWD/3rdpart/ffmpeg/include
LIBS += $$PWD/3rdpart/ffmpeg/lib/avcodec.lib \
$$PWD/3rdpart/ffmpeg/lib/avdevice.lib \
$$PWD/3rdpart/ffmpeg/lib/avfilter.lib \
$$PWD/3rdpart/ffmpeg/lib/avformat.lib \
$$PWD/3rdpart/ffmpeg/lib/avutil.lib \
$$PWD/3rdpart/ffmpeg/lib/postproc.lib \
$$PWD/3rdpart/ffmpeg/lib/swresample.lib \
$$PWD/3rdpart/ffmpeg/lib/swscale.lib
INCLUDEPATH += $$PWD/3rdpart/QtAV/include
LIBS += $$PWD/3rdpart/QtAV/lib/Qt5AVd.lib \
$$PWD/3rdpart/QtAV/lib/Qt5AVWidgetsd.lib \
$$PWD/3rdpart/QtAV/lib/QtAVd1.lib \
$$PWD/3rdpart/QtAV/lib/QtAVWidgetsd1.lib
}
#linux
unix:!macx: {
FFMPEGDIR=$$PWD/3rdpart/ffmpeg-linux
INCLUDEPATH += $$FFMPEGDIR/include
LIBS += -L$$FFMPEGDIR/lib -lavcodec \
-lavfilter \
-lavformat \
-lavresample \
-lavutil \
-lpostproc \
-lswresample \
-lswscale
INCLUDEPATH += $$PWD/3rdpart/QtAV-linux/include
LIBS += -L$$PWD/3rdpart/QtAV-linux/lib/ -lQmlAV -lQtAV -lQtAVWidgets
}
INCLUDEPATH += \
QtLocationPlugin \
MainWindows \
MapItems \
VideoPlayer \
test
#地图相关插件
LOCATION_PLUGIN_DESTDIR = $${OUT_PWD}/QtLocationPlugin
LOCATION_PLUGIN_NAME = GeoServiceProviderFactory
MOC_DIR = temp/moc
RCC_DIR = temp/rcc
UI_DIR = temp/ui
OBJECTS_DIR = temp/obj
DESTDIR = bin