forked from Comer352L/FreeSSM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FreeSSM.pro
189 lines (171 loc) · 6.48 KB
/
FreeSSM.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
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
CONFIG += debug_and_release # warning: specifying EITHER release OR debug breaks the dll installation target on Windows !
TEMPLATE = app
TARGET = FreeSSM
DESTDIR = ./
DEPENDPATH += . src ui
INCLUDEPATH += . src src/tinyxml
# Input
HEADERS += src/FreeSSM.h \
src/Languages.h \
src/EngineDialog.h \
src/TransmissionDialog.h \
src/ABSdialog.h \
src/CruiseControlDialog.h \
src/AirConDialog.h \
src/Preferences.h \
src/About.h \
src/FSSMdialogs.h \
src/ActuatorTestDlg.h \
src/AbstractDiagInterface.h \
src/ATcommandControlledDiagInterface.h \
src/SerialPassThroughDiagInterface.h \
src/J2534DiagInterface.h \
src/J2534.h \
src/SSMP1communication.h \
src/SSMP1communication_procedures.h \
src/SSMP1base.h \
src/SSMP2communication.h \
src/SSMP2communication_core.h \
src/SSMprotocol.h \
src/SSMprotocol1.h \
src/SSMprotocol2.h \
src/AddMBsSWsDlg.h \
src/ControlUnitDialog.h \
src/CUinfo_Engine.h \
src/CUinfo_Transmission.h \
src/CUinfo_simple.h \
src/CUcontent_DCs_abstract.h \
src/CUcontent_DCs_engine.h \
src/CUcontent_DCs_twoMemories.h \
src/CUcontent_DCs_stopCodes.h \
src/CUcontent_MBsSWs.h \
src/CUcontent_MBsSWs_tableView.h \
src/CUcontent_Adjustments.h \
src/CUcontent_sysTests.h \
src/DiagInterfaceStatusBar.h \
src/SSM1definitionsInterface.h \
src/SSM2definitionsInterface.h \
src/SSMprotocol2_ID.h \
src/SSMprotocol2_def_en.h \
src/SSMprotocol2_def_de.h \
src/ClearMemoryDlg.h \
src/libFSSM.h \
src/tinyxml/tinyxml.h \
src/tinyxml/tinystr.h
SOURCES += src/main.cpp \
src/FreeSSM.cpp \
src/EngineDialog.cpp \
src/TransmissionDialog.cpp \
src/ABSdialog.cpp \
src/CruiseControlDialog.cpp \
src/AirConDialog.cpp \
src/Preferences.cpp \
src/About.cpp \
src/FSSMdialogs.cpp \
src/ActuatorTestDlg.cpp \
src/AbstractDiagInterface.cpp \
src/ATcommandControlledDiagInterface.cpp \
src/SerialPassThroughDiagInterface.cpp \
src/J2534DiagInterface.cpp \
src/SSMP1communication.cpp \
src/SSMP1communication_procedures.cpp \
src/SSMP1base.cpp \
src/SSMP2communication.cpp \
src/SSMP2communication_core.cpp \
src/SSMprotocol.cpp \
src/SSMprotocol1.cpp \
src/SSMprotocol2.cpp \
src/AddMBsSWsDlg.cpp \
src/ControlUnitDialog.cpp \
src/CUinfo_Engine.cpp \
src/CUinfo_Transmission.cpp \
src/CUinfo_simple.cpp \
src/CUcontent_DCs_abstract.cpp \
src/CUcontent_DCs_engine.cpp \
src/CUcontent_DCs_twoMemories.cpp \
src/CUcontent_DCs_stopCodes.cpp \
src/CUcontent_MBsSWs.cpp \
src/CUcontent_MBsSWs_tableView.cpp \
src/CUcontent_Adjustments.cpp \
src/CUcontent_sysTests.cpp \
src/DiagInterfaceStatusBar.cpp \
src/SSM1definitionsInterface.cpp \
src/SSM2definitionsInterface.cpp \
src/SSMprotocol2_ID.cpp \
src/SSMprotocol2_def_en.cpp \
src/SSMprotocol2_def_de.cpp \
src/ClearMemoryDlg.cpp \
src/libFSSM.cpp \
src/tinyxml/tinyxml.cpp \
src/tinyxml/tinystr.cpp \
src/tinyxml/tinyxmlerror.cpp \
src/tinyxml/tinyxmlparser.cpp
FORMS += ui/FreeSSM.ui \
ui/Preferences.ui \
ui/About.ui \
ui/ControlUnitDialog.ui \
ui/CUinfo_Engine.ui \
ui/CUinfo_Transmission.ui \
ui/CUinfo_simple.ui \
ui/CUcontent_DCs_engine.ui \
ui/CUcontent_DCs_twoMemories.ui \
ui/CUcontent_DCs_stopCodes.ui \
ui/CUcontent_MBsSWs.ui \
ui/CUcontent_MBsSWs_tableView.ui \
ui/CUcontent_Adjustments.ui \
ui/CUcontent_sysTests.ui \
ui/AddMBsSWsDlg.ui \
ui/ActuatorTestDlg.ui
RESOURCES += resources/FreeSSM.qrc
TRANSLATIONS = FreeSSM_en.ts \
FreeSSM_de.ts
translation.commands = lrelease FreeSSM.pro & qmake
QMAKE_EXTRA_TARGETS += translation
DEFINES += TIXML_USE_STL
# Add pre-processor-define if we compile as debug:
CONFIG(debug, debug|release): DEFINES += __FSSM_DEBUG__ __SERIALCOM_DEBUG__ __J2534_API_DEBUG__
# disable gcse-optimization (regressions with gcc-versions >= 4.2)
QMAKE_CXXFLAGS += -fno-gcse # disable gcse-optimization (regressions with gcc-versions >= 4.2)
# Installation
unix:INSTALLDIR = $$system(echo ~)/FreeSSM
win32:INSTALLDIR = $$system(echo %homedrive%)/FreeSSM
target.path = $$INSTALLDIR
filestarget.path = $$INSTALLDIR
filestarget.files = background.png LiberationSans*.ttf *.qm
unix:filestarget.files += resources/icons/freessm/48x48/FreeSSM.png
doctarget.path = $$INSTALLDIR/doc
doctarget.files = doc/*
defstarget.path = $$INSTALLDIR/definitions
defstarget.files = definitions/*.xml
win32 {
dllstarget.path = $$INSTALLDIR
dllstarget.files = $$[QT_INSTALL_BINS]/mingwm10.dll $$[QT_INSTALL_BINS]/libgcc_s_dw2-1.dll
CONFIG(release, debug|release): dllstarget.files += $$[QT_INSTALL_BINS]/QtCore4.dll $$[QT_INSTALL_BINS]/QtGui4.dll
CONFIG(debug, debug|release): dllstarget.files += $$[QT_INSTALL_BINS]/QtCored4.dll $$[QT_INSTALL_BINS]/QtGuid4.dll
}
INSTALLS += target doctarget defstarget filestarget
win32:INSTALLS += dllstarget
# OS-specific options
unix {
DEPENDPATH += src/linux
INCLUDEPATH += src/linux
HEADERS += src/linux/serialCOM.h \
src/linux/TimeM.h \
src/linux/J2534_API.h
SOURCES += src/linux/serialCOM.cpp \
src/linux/TimeM.cpp \
src/linux/J2534_API.cpp
LIBS += -ldl -lrt
}
win32 {
CONFIG(debug, debug|release): CONFIG += console
DEPENDPATH += src/windows
INCLUDEPATH += src/windows
HEADERS += src/windows/serialCOM.h \
src/windows/TimeM.h \
src/windows/J2534_API.h
SOURCES += src/windows/serialCOM.cpp \
src/windows/TimeM.cpp \
src/windows/J2534_API.cpp
RC_FILE = resources/FreeSSM_WinAppIcon.rc
}