Repository navigation
Expand file tree
/
Copy pathFastECU.pro
More file actions
364 lines (342 loc) · 14.2 KB
/
Copy pathFastECU.pro
File metadata and controls
364 lines (342 loc) · 14.2 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
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
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
QT += core gui xml serialport remoteobjects websockets
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
QT += charts
CONFIG += c++11
# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS #QT_SSL
# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
#Windows common
win32 {
SOURCES += serial_port/J2534_win.cpp
HEADERS += serial_port/J2534_win.h \
serial_port/J2534_tactrix_win.h
}
#Windows x32 specific
win32:contains(QT_ARCH, i386):{
#LIBS += -LC:\Qt\5.9.9\mingw53_32\lib\libQt5OpenGL.a -lopengl32 -lsetupapi
message(Building x32)
contains(QMAKE_HOST.os, Windows) {
#OpenSSL library must be stated first because in case
#of static build it cannot be linked static, dynamic only
QMAKE_LFLAGS += -L$$shell_quote(C:\Program Files (x86)\OpenSSL-Win32\bin) \
-L$$shell_quote(C:\Program Files\OpenSSL-Win32\bin) \
-lcrypto-3
INCLUDEPATH += $$quote(C:\Program Files (x86)\OpenSSL-Win32\include) \
$$quote(C:\Program Files\OpenSSL-Win32\include)
} else {
# Cross-compiling on Linux (MXE): OpenSSL comes from the toolchain
# sysroot and links statically into the .exe
LIBS += -lcrypto -lws2_32 -lcrypt32 -luser32 -ladvapi32
}
LIBS += -lopengl32 -lsetupapi
}
#Windows x64 specific
win32:contains(QT_ARCH, x86_64):{
message(Building x64)
contains(QMAKE_HOST.os, Windows) {
INCLUDEPATH += $$[QT_INSTALL_PREFIX]/../../Tools/OpenSSLv3/Win_x64/include \
$$[QT_INSTALL_PREFIX]/../Tools/OpenSSLv3/Win_x64/include \
$$quote(C:\Program Files\OpenSSL-Win64\include)
LIBS += -L$$[QT_INSTALL_PREFIX]/../../Tools/OpenSSLv3/Win_x64/lib \
-L$$[QT_INSTALL_PREFIX]/../Tools/OpenSSLv3/Win_x64/lib \
-L$$shell_quote(C:\Program Files\OpenSSL-Win64\lib)
} else {
# Cross-compiling on Linux (MXE): OpenSSL comes from the toolchain
# sysroot and links statically into the .exe
}
LIBS += -lcrypto
}
unix {
LIBS += -lcrypto
SOURCES += \
serial_port/J2534_linux.cpp
HEADERS += \
serial_port/J2534_linux.h
HEADERS += \
serial_port/J2534_tactrix_linux.h
}
# Do static build for Windows to have only on portable .exe file that
# includes everything. On Linux x86_64 and aarch64 use AppImage and/or Flatpack.
static {
message(win32 static build)
# For static build
# -static enables static builg globally, for all libs
#CONFIG += -static
#-Wl,-Bstatic means that -Bstatic is passed to linker
#and it affects library searching for -l options which follow it.
QMAKE_LFLAGS += -Wl,-static -static-libgcc -static-libstdc++ -lstdc++
win32:QMAKE_LFLAGS += \
-Wl,--whole-archive \
-lwinpthread \
-Wl,--no-whole-archive
DEFINES += STATIC
}
REPC_REPLICA = \
serial_port/serial_port_actions.rep \
remote_utility/remote_utility.rep
SOURCES += \
calibration_maps.cpp \
calibration_treewidget.cpp \
cipher.cpp \
dataterminal.cpp \
definition_file_convert.cpp \
dtc_operations.cpp \
file_actions.cpp \
file_defs_ecuflash.cpp \
file_defs_romraider.cpp \
get_key_operations_subaru.cpp \
hexedit/hexedit.cpp \
hexedit/optionsdialog.cpp \
hexedit/qhexedit/chunks.cpp \
hexedit/qhexedit/commands.cpp \
hexedit/qhexedit/qhexedit.cpp \
hexedit/searchdialog.cpp \
log_operations_ssm.cpp \
logbox.cpp \
logvalues.cpp \
main.cpp \
mainwindow.cpp \
menu_actions.cpp \
modules/bdm/flash_ecu_subaru_denso_mc68hc16y5_02_bdm.cpp \
modules/biu/biu_operations_subaru.cpp \
modules/biu/biu_ops_subaru_data.cpp \
modules/biu/biu_ops_subaru_dtcs.cpp \
modules/biu/biu_ops_subaru_input1.cpp \
modules/biu/biu_ops_subaru_input2.cpp \
modules/biu/biu_ops_subaru_switches.cpp \
modules/bootmode/flash_ecu_subaru_unisia_jecs_m32r_bootmode.cpp \
modules/checksum/checksum_ecu_subaru_denso_sh705x_diesel.cpp \
modules/checksum/checksum_ecu_subaru_denso_sh7xxx.cpp \
modules/checksum/checksum_ecu_subaru_hitachi_m32r_can.cpp \
modules/checksum/checksum_ecu_subaru_hitachi_m32r_kline.cpp \
modules/checksum/checksum_ecu_subaru_hitachi_sh7058.cpp \
modules/checksum/checksum_ecu_subaru_hitachi_sh72543r.cpp \
modules/checksum/checksum_ecu_subaru_rh850_di.cpp \
modules/checksum/checksum_tcu_mitsu_mh8104_can.cpp \
modules/checksum/checksum_tcu_subaru_denso_sh7055.cpp \
modules/checksum/checksum_tcu_subaru_hitachi_m32r_can.cpp \
modules/checksum/checksum_tcu_subaru_hitachi_m32r_kline.cpp \
modules/ecu/flash_ecu_subaru_denso_1n83m_1_5m_can.cpp \
modules/ecu/flash_ecu_subaru_denso_1n83m_4m_can.cpp \
modules/ecu/flash_ecu_subaru_denso_mc68hc16y5_02.cpp \
modules/ecu/flash_ecu_subaru_denso_sh7055_02.cpp \
modules/ecu/flash_ecu_subaru_denso_sh7058_can.cpp \
modules/ecu/flash_ecu_subaru_denso_sh7058_can_diesel.cpp \
modules/ecu/flash_ecu_subaru_denso_sh705x_densocan.cpp \
modules/ecu/flash_ecu_subaru_denso_sh705x_kline.cpp \
modules/ecu/flash_ecu_subaru_denso_sh72531_can.cpp \
modules/ecu/flash_ecu_subaru_denso_sh72543_can_diesel.cpp \
modules/ecu/flash_ecu_subaru_hitachi_m32r_can.cpp \
modules/ecu/flash_ecu_subaru_hitachi_m32r_kline.cpp \
modules/ecu/flash_ecu_subaru_hitachi_sh7058_can.cpp \
modules/ecu/flash_ecu_subaru_hitachi_sh72543r_can.cpp \
modules/ecu/flash_ecu_subaru_rh850_di_can.cpp \
modules/ecu/flash_ecu_subaru_mitsu_m32r_kline.cpp \
modules/ecu/flash_ecu_subaru_unisia_jecs.cpp \
modules/ecu/flash_ecu_subaru_unisia_jecs_m32r.cpp \
modules/eeprom/eeprom_ecu_subaru_denso_sh705x_can.cpp \
modules/eeprom/eeprom_ecu_subaru_denso_sh705x_kline.cpp \
modules/jtag/flash_ecu_subaru_hitachi_m32r_jtag.cpp \
modules/tcu/flash_tcu_cvt_subaru_hitachi_m32r_can.cpp \
modules/tcu/flash_tcu_cvt_subaru_mitsu_mh8104_can.cpp \
modules/tcu/flash_tcu_cvt_subaru_mitsu_mh8111_can.cpp \
modules/tcu/flash_tcu_subaru_denso_sh705x_can.cpp \
modules/tcu/flash_tcu_subaru_denso_sh705x_kline.cpp \
modules/tcu/flash_tcu_subaru_denso_sh7054_kline.cpp \
modules/tcu/flash_tcu_subaru_hitachi_m32r_can.cpp \
modules/tcu/flash_tcu_subaru_hitachi_m32r_kline.cpp \
protocol_select.cpp \
remote_utility/remote_utility.cpp \
serial_port/serial_port_actions.cpp \
serial_port/serial_port_actions_direct.cpp \
serial_port/websocketiodevice.cpp \
settings.cpp \
systemlogger.cpp \
vehicle_select.cpp \
verticallabel.cpp
HEADERS += \
calibration_maps.h \
calibration_treewidget.h \
cipher.h \
dataterminal.h \
definition_file_convert.h \
dtc_operations.h \
error_codes.h \
file_actions.h \
get_key_operations_subaru.h \
hexedit/hexedit.h \
hexedit/optionsdialog.h \
hexedit/qhexedit/chunks.h \
hexedit/qhexedit/commands.h \
hexedit/qhexedit/qhexedit.h \
hexedit/searchdialog.h \
kernelcomms.h \
kernelmemorymodels.h \
logbox.h \
mainwindow.h \
modules/bdm/flash_ecu_subaru_denso_mc68hc16y5_02_bdm.h \
modules/biu/biu_operations_subaru.h \
modules/biu/biu_ops_subaru_data.h \
modules/biu/biu_ops_subaru_dtcs.h \
modules/biu/biu_ops_subaru_input1.h \
modules/biu/biu_ops_subaru_input2.h \
modules/biu/biu_ops_subaru_switches.h \
modules/bootmode/flash_ecu_subaru_unisia_jecs_m32r_bootmode.h \
modules/checksum/checksum_ecu_subaru_denso_sh705x_diesel.h \
modules/checksum/checksum_ecu_subaru_denso_sh7xxx.h \
modules/checksum/checksum_ecu_subaru_hitachi_m32r_can.h \
modules/checksum/checksum_ecu_subaru_hitachi_m32r_kline.h \
modules/checksum/checksum_ecu_subaru_hitachi_sh7058.h \
modules/checksum/checksum_ecu_subaru_hitachi_sh72543r.h \
modules/checksum/checksum_ecu_subaru_rh850_di.h \
modules/checksum/checksum_tcu_mitsu_mh8104_can.h \
modules/checksum/checksum_tcu_subaru_denso_sh7055.h \
modules/checksum/checksum_tcu_subaru_hitachi_m32r_can.h \
modules/checksum/checksum_tcu_subaru_hitachi_m32r_kline.h \
modules/ecu/flash_ecu_subaru_denso_1n83m_1_5m_can.h \
modules/ecu/flash_ecu_subaru_denso_1n83m_4m_can.h \
modules/ecu/flash_ecu_subaru_denso_mc68hc16y5_02.h \
modules/ecu/flash_ecu_subaru_denso_sh7055_02.h \
modules/ecu/flash_ecu_subaru_denso_sh7058_can.h \
modules/ecu/flash_ecu_subaru_denso_sh7058_can_diesel.h \
modules/ecu/flash_ecu_subaru_denso_sh705x_densocan.h \
modules/ecu/flash_ecu_subaru_denso_sh705x_kline.h \
modules/ecu/flash_ecu_subaru_denso_sh72531_can.h \
modules/ecu/flash_ecu_subaru_denso_sh72543_can_diesel.h \
modules/ecu/flash_ecu_subaru_hitachi_m32r_can.h \
modules/ecu/flash_ecu_subaru_hitachi_m32r_kline.h \
modules/ecu/flash_ecu_subaru_hitachi_sh7058_can.h \
modules/ecu/flash_ecu_subaru_hitachi_sh72543r_can.h \
modules/ecu/flash_ecu_subaru_rh850_di_can.h \
modules/ecu/flash_ecu_subaru_mitsu_m32r_kline.h \
modules/ecu/flash_ecu_subaru_unisia_jecs.h \
modules/ecu/flash_ecu_subaru_unisia_jecs_m32r.h \
modules/eeprom/eeprom_ecu_subaru_denso_sh705x_can.h \
modules/eeprom/eeprom_ecu_subaru_denso_sh705x_kline.h \
modules/jtag/flash_ecu_subaru_hitachi_m32r_jtag.h \
modules/tcu/flash_tcu_cvt_subaru_hitachi_m32r_can.h \
modules/tcu/flash_tcu_cvt_subaru_mitsu_mh8104_can.h \
modules/tcu/flash_tcu_cvt_subaru_mitsu_mh8111_can.h \
modules/tcu/flash_tcu_subaru_denso_sh705x_can.h \
modules/tcu/flash_tcu_subaru_denso_sh705x_kline.h \
modules/tcu/flash_tcu_subaru_denso_sh7054_kline.h \
modules/tcu/flash_tcu_subaru_hitachi_m32r_can.h \
modules/tcu/flash_tcu_subaru_hitachi_m32r_kline.h \
protocol_select.h \
remote_utility/remote_utility.h \
serial_port/qtrohelper.hpp \
serial_port/serial_port_actions.h \
serial_port/serial_port_actions_direct.h \
serial_port/websocketiodevice.h \
settings.h \
systemlogger.h \
vehicle_select.h \
verticallabel.h
FORMS += \
calibration_map_table.ui \
data_terminal.ui \
definition_file_convert.ui \
dtc_operations.ui \
ecu_operations.ui \
hexedit/optionsdialog.ui \
hexedit/searchdialog.ui \
logvalues.ui \
mainwindow.ui \
modules/biu/biu_operations_subaru.ui \
modules/biu/biu_ops_subaru_data.ui \
modules/biu/biu_ops_subaru_dtcs.ui \
modules/biu/biu_ops_subaru_input1.ui \
modules/biu/biu_ops_subaru_input2.ui \
modules/biu/biu_ops_subaru_switches.ui \
protocol_select.ui \
settings.ui \
vehicle_select.ui
# Default rules for deployment.
flatpak {
target.path = /app/bin
!isEmpty(target.path): INSTALLS += target
} else {
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
}
RESOURCES += \
config.qrc \
fonts.qrc \
hexedit/qhexedit.qrc \
icons.qrc \
images.qrc \
kernels.qrc
DISTFILES += \
LICENSE \
README.md \
USING.txt \
appdata/fastecu_128x128.png \
appdata/fastecu_16x16.png \
appdata/fastecu_256x256.png \
appdata/fastecu_32x32.png \
appdata/fastecu_64x64.png \
appdata/fi.fastecu.fastecu.desktop \
appdata/fi.fastecu.fastecu.metainfo.xml \
config/fastecu.cfg \
config/logger.cfg \
config/menu.cfg \
config/protocols.cfg \
external/FastECU-mc68hc16-bdm.ino \
fastecu.rc \
deployment/build_flatpak.sh \
deployment/build_linux_appimage.sh \
deployment/build_windows.sh \
deployment/flatpak/fi.fastecu.FastECU.yml \
deployment/flatpak/resources/fi.fastecu.FastECU.desktop \
deployment/flatpak/resources/fi.fastecu.FastECU.ico \
deployment/flatpak/resources/fi.fastecu.FastECU.metainfo.xml \
deployment/flatpak/resources/fi.fastecu.FastECU_128x128.png \
deployment/flatpak/resources/fi.fastecu.FastECU_16x16.png \
deployment/flatpak/resources/fi.fastecu.FastECU_256x256.png \
deployment/flatpak/resources/fi.fastecu.FastECU_32x32.png \
deployment/flatpak/resources/fi.fastecu.FastECU_64x64.png \
deployment/linux/Containerfile \
hexedit/images/find.png \
hexedit/images/open.png \
hexedit/images/qhexedit.ico \
hexedit/images/qhexedit.svg \
hexedit/images/qhexedit16.png \
hexedit/images/qhexedit32.png \
hexedit/images/qhexedit64.png \
hexedit/images/redo.png \
hexedit/images/save.png \
hexedit/images/undo.png \
hexedit/translations/qhexedit_cs.qm \
hexedit/translations/qhexedit_de.qm \
hexedit/translations/qhexedit_es.qm \
hexedit/translations/qhexedit_fr.qm \
hexedit/translations/qhexedit_it.qm \
hexedit/translations/qhexedit_ru.qm \
kernels/ssmk_can_sh7055.bin \
kernels/ssmk_can_sh7058.bin \
kernels/ssmk_can_sh7059d_euro5.bin \
kernels/ssmk_can_tp_sh7058.bin \
kernels/ssmk_can_tp_sh7058d_euro4.bin \
kernels/ssmk_can_tp_sh7059d_euro5.bin \
kernels/ssmk_kline_sh7055.bin \
kernels/ssmk_kline_sh7058.bin \
kernels/ssmk_mc68hc916y5.bin \
kernels/ssmk_tcu_can_sh7055_35.bin \
kernels/ssmk_tcu_can_sh7058.bin \
kernels/ssmk_tcu_kline_sh7055.bin \
kernels/ssmk_tcu_kline_sh7054.bin
RC_FILE = fastecu.rc
TRANSLATIONS += \
hexedit/translations/qhexedit_cs.ts \
hexedit/translations/qhexedit_de.ts \
hexedit/translations/qhexedit_es.ts \
hexedit/translations/qhexedit_fr.ts \
hexedit/translations/qhexedit_it.ts \
hexedit/translations/qhexedit_ru.ts