forked from vedderb/vesc_tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvesc_tool.pro
116 lines (102 loc) · 2.48 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
#-------------------------------------------------
#
# Project created by QtCreator 2016-08-12T21:55:19
#
#-------------------------------------------------
# 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
QT += core gui
QT += printsupport
QT += network
contains(DEFINES, HAS_SERIALPORT) {
QT += serialport
}
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = vesc_tool
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
}
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 \
util.cpp \
startupwizard.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 \
util.h \
startupwizard.h
FORMS += mainwindow.ui \
parametereditor.ui
include(pages/pages.pri)
include(widgets/widgets.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
}