-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathWaoStats.pro
155 lines (138 loc) · 4.4 KB
/
WaoStats.pro
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
QT += core gui network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
greaterThan(QT_MAJOR_VERSION, 5): QT += dbus
CONFIG += c++17
macx{
equals(QT_ARCH, arm64) {
QMAKE_CC = /opt/homebrew/opt/llvm/bin/clang
QMAKE_CXX = /opt/homebrew/opt/llvm/bin/clang++
QMAKE_LINK = /opt/homebrew/opt/llvm/bin/clang++
QMAKE_CFLAGS += -fopenmp -ftree-vectorize
QMAKE_CXXFLAGS += -fopenmp -std=c++17 -ftree-vectorize
INCLUDEPATH += -I/opt/homebrew/opt/llvm/include
LIBS += -L/opt/homebrew/opt/llvm/lib -lomp -L/opt/homebrew/opt/openssl/lib -lssl
QMAKE_APPLE_DEVICE_ARCHS = arm64
}
else
{
lessThan(QT_MAJOR_VERSION, 6): QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.13
else {
#QMAKE_CC = /usr/local/opt/llvm/bin/clang
#QMAKE_CXX = /usr/local/opt/llvm/bin/clang++
#QMAKE_LINK = /usr/local/opt/llvm/bin/clang++
#QMAKE_CFLAGS += -fopenmp -ftree-vectorize
#QMAKE_CXXFLAGS += -fopenmp -std=c++17 -ftree-vectorize
#INCLUDEPATH += -I/usr/local/opt/llvm/include
#LIBS += -L/usr/local/opt/llvm/lib -lomp -L/usr/local/opt/openssl/lib -lssl
QMAKE_MACOSX_DEPLOYMENT_TARGET = 11.7
}
}
}
#Define for FIT C SDK
DEFINES += FIT_USE_STDINT_H
DEFINES += FITC
include( fitc.pri )
#Define for FIT CPP SDK
#include( fitcpp.pri )
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
include( QMapControl/QMapControl.pro )
#dropbox (run qmake and make in dropboxQt/prj/ before!)
INCLUDEPATH += dropboxQt/src
macx: LIBS += -L$${PWD}/dropboxQt/prj/ -ldropboxQt
win32: LIBS += -L$${PWD}/dropboxQt/prj/release/ -ldropboxQt
linux-g++: LIBS += -L$${PWD}/dropboxQt/prj/ -ldropboxQt
SOURCES += \
AdbDownloadDialog.cpp \
AdbSelectDeviceDialog.cpp \
AdbWrapper.cpp \
DropBoxAuthDialog.cpp \
DropBoxDownloadDialog.cpp \
GpxParser.cpp \
LineEditEscDelete.cpp \
OsmWidget.cpp \
ProgressDialog.cpp \
ServiceCostPieDialog.cpp \
TrackSearch.cpp \
ServiceDialog.cpp \
ServiceEntryDialog.cpp \
Splash.cpp \
StatisticsDialog.cpp \
StatisticsPlot.cpp \
ThreadTrack2Point.cpp \
TourData.cpp \
TourDataPlot.cpp \
VScrollArea.cpp \
custompiechart/custompiechart.cpp \
qcustomplot/qcustomplot.cpp \
main.cpp \
MainWindow.cpp
HEADERS += \
AdbDownloadDialog.h \
AdbSelectDeviceDialog.h \
AdbWrapper.h \
BikeEditingDelegate.h \
DropBoxAuthDialog.h \
DropBoxDownloadDialog.h \
Globals.h \
GpxParser.h \
HelperFunctions.h \
LineEditEscDelete.h \
MainWindow.h \
OsmWidget.h \
ProgressDialog.h \
ServiceCostPieDialog.h \
TrackSearch.h \
ServiceDialog.h \
ServiceEntryDialog.h \
Splash.h \
StatisticsDialog.h \
StatisticsPlot.h \
ThreadTrack2Point.h \
TourData.h \
TourDataPlot.h \
VScrollArea.h \
custompiechart/custompiechart.h \
qcustomplot/qcustomplot.h
FORMS += \
AdbSelectDeviceDialog.ui \
DropBoxAuthDialog.ui \
MainWindow.ui \
ProgressDialog.ui \
ServiceCostPieDialog.ui \
ServiceDialog.ui \
ServiceEntryDialog.ui \
StatisticsDialog.ui
INCLUDEPATH += -I FitSDKRelease_21.105.00/cpp/
#Application version
VERSION_MAJOR = 1
VERSION_MINOR = 3
VERSION_PATCH = 0
VERSION_BUILD = 0
#Target version
DEFINES += "VERSION_MAJOR=$$VERSION_MAJOR"\
"VERSION_MINOR=$$VERSION_MINOR"\
"VERSION_PATCH=$$VERSION_PATCH"\
"VERSION_BUILD=$$VERSION_BUILD"
VERSION = $${VERSION_MAJOR}.$${VERSION_MINOR}.$${VERSION_PATCH}.$${VERSION_BUILD}
win32{
RC_ICONS = WaoStatsLogoMapSmall.ico
QMAKE_TARGET_COMPANY = masc
QMAKE_TARGET_DESCRIPTION = "Tool for Wahoo ELEMNT track statistics"
QMAKE_TARGET_PRODUCT = WaoStats
RC_CODEPAGE = 1252
}
macx{
ICON = WaoStatsLogoMapSmall.icns
QMAKE_INFO_PLIST = Info.plist
}
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
Resources.qrc
#unpack & install adb on OSX
macx: QMAKE_POST_LINK += unzip -o ../WaoStats/adb/macOS/adb.zip $$escape_expand(\n\t)
macx: QMAKE_POST_LINK += "mv adb WaoStats.app/Contents/MacOS/" $$escape_expand(\n\t)