forked from vedderb/vesc_tool
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvesc_tool.pro
159 lines (136 loc) · 3.35 KB
/
vesc_tool.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
156
157
158
159
#-------------------------------------------------
#
# Project created by QtCreator 2016-08-12T21:55:19
#
#-------------------------------------------------
# Version
VT_VERSION = 0.87
VT_INTRO_VERSION = 1
DEFINES += VT_VERSION=$$VT_VERSION
DEFINES += VT_INTRO_VERSION=$$VT_INTRO_VERSION
# Serial port available
DEFINES += HAS_SERIALPORT
# Options
#CONFIG += build_original
#CONFIG += build_platinum
#CONFIG += build_gold
#CONFIG += build_silver
#CONFIG += build_bronze
#CONFIG += build_free
# Build mobile GUI
#CONFIG += build_mobile
#CONFIG += qtquickcompiler
QT += core gui
QT += widgets
QT += printsupport
QT += network
QT += bluetooth
QT += quick
QT += quickcontrols2
contains(DEFINES, HAS_SERIALPORT) {
QT += serialport
}
android: QT += androidextras
android: TARGET = vesc_tool
!android: TARGET = vesc_tool_$$VT_VERSION
TEMPLATE = app
release_win {
DESTDIR = build/win
OBJECTS_DIR = build/win/obj
MOC_DIR = build/win/obj
RCC_DIR = build/win/obj
UI_DIR = build/win/obj
}
release_lin {
# http://micro.nicholaswilson.me.uk/post/31855915892/rules-of-static-linking-libstdc-libc-libgcc
# http://insanecoding.blogspot.se/2012/07/creating-portable-linux-binaries.html
QMAKE_LFLAGS += -static-libstdc++ -static-libgcc
DESTDIR = build/lin
OBJECTS_DIR = build/lin/obj
MOC_DIR = build/lin/obj
RCC_DIR = build/lin/obj
UI_DIR = build/lin/obj
}
release_android {
DESTDIR = build/android
OBJECTS_DIR = build/android/obj
MOC_DIR = build/android/obj
RCC_DIR = build/android/obj
UI_DIR = build/android/obj
}
build_mobile {
DEFINES += USE_MOBILE
}
SOURCES += main.cpp\
mainwindow.cpp \
packet.cpp \
vbytearray.cpp \
commands.cpp \
configparams.cpp \
configparam.cpp \
vescinterface.cpp \
parametereditor.cpp \
digitalfiltering.cpp \
setupwizardapp.cpp \
setupwizardmotor.cpp \
startupwizard.cpp \
bleuart.cpp \
utility.cpp
HEADERS += mainwindow.h \
packet.h \
vbytearray.h \
commands.h \
datatypes.h \
configparams.h \
configparam.h \
vescinterface.h \
parametereditor.h \
digitalfiltering.h \
setupwizardapp.h \
setupwizardmotor.h \
startupwizard.h \
bleuart.h \
utility.h
FORMS += mainwindow.ui \
parametereditor.ui
include(pages/pages.pri)
include(widgets/widgets.pri)
include(mobile/mobile.pri)
RESOURCES += res.qrc
build_original {
RESOURCES += res_original.qrc \
res_fw_original.qrc
DEFINES += VER_ORIGINAL
} else:build_platinum {
RESOURCES += res_platinum.qrc \
res_fw.qrc
DEFINES += VER_PLATINUM
} else:build_gold {
RESOURCES += res_gold.qrc \
res_fw.qrc
DEFINES += VER_GOLD
} else:build_silver {
RESOURCES += res_silver.qrc \
res_fw.qrc
DEFINES += VER_SILVER
} else:build_bronze {
RESOURCES += res_bronze.qrc \
res_fw.qrc
DEFINES += VER_BRONZE
} else:build_free {
RESOURCES += res_free.qrc \
res_fw.qrc
DEFINES += VER_FREE
} else {
RESOURCES += res_neutral.qrc \
res_fw.qrc
DEFINES += VER_NEUTRAL
}
DISTFILES += \
android/AndroidManifest.xml \
android/gradle/wrapper/gradle-wrapper.jar \
android/gradlew \
android/res/values/libs.xml \
android/build.gradle \
android/gradle/wrapper/gradle-wrapper.properties
ANDROID_PACKAGE_SOURCE_DIR = $$PWD/android