-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardwareexpert.pro
199 lines (169 loc) · 5.63 KB
/
hardwareexpert.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
188
189
190
191
192
193
194
195
196
197
198
199
# -------------------------------------------------
# Project created by QtCreator 2010-05-19T23:30:35
# -------------------------------------------------
TARGET = hardwareexpert
VERSION = 0.9.5
TEMPLATE = app
SOURCES += main.cpp \
mainwindow.cpp \
slangthread.cpp \
exccominterface.cpp \
planetextconsoleinterface.cpp \
hexeditorwidget.cpp \
tabpagerinterface.cpp \
consolecomportinterface.cpp \
codeeditor/codeeditor.cpp \
consolelptportinterface.cpp \
winioprovider.cpp \
winiolptportinterface.cpp \
codefile.cpp \
consolei2cinterface.cpp \
lptdrvprovider.cpp \
lptdrvi2cinterface.cpp \
intelHexProvider/intelhexprovider.cpp \
aboutwindow.cpp \
helpwindow.cpp \
driverdialog.cpp \
optionsdialog.cpp \
slangwrapper.cpp \
qhexedit/qhexedit_p.cpp \
qhexedit/qhexedit.cpp \
searchdialog.cpp \
compairdialog.cpp \
Timer.cpp \
hexfilesmenager.cpp \
motorolaSRecordProvider/motorolasrecordprovider.cpp \
importexportmenager.cpp \
stOsdFile/stOsdFile.cpp \
ftdiinterfaceprovider.cpp \
consoledirectiointerface.cpp \
lptwiniodirectiointerface.cpp \
ftdidioportinterface.cpp
HEADERS += mainwindow.h \
slangthread.h \
comportinterface.h \
exccominterface.h \
consoleinterface.h \
planetextconsoleinterface.h \
hexeditorwidget.h \
memorypagerinterface.h \
tabpagerinterface.h \
consolecomportinterface.h \
codeeditor/codeeditor.h \
lptportinterface.h \
consolelptportinterface.h \
winioprovider.h \
winiolptportinterface.h \
codefile.h \
i2cportinterface.h \
consolei2cinterface.h \
lptdrvprovider.h \
lptdrvi2cinterface.h \
intelHexProvider/intelhexprovider.h \
aboutwindow.h \
helpwindow.h \
driverdialog.h \
optionsdialog.h \
settings.h \
hardwareinterface.h \
directiointerface.h \
usbinterface.h \
slangwrapper.h \
qhexedit/qhexedit_p.h \
qhexedit/qhexedit.h \
searchdialog.h \
compairdialog.h \
Timer.h \
hexfilesmenager.h \
codeeditor/slhsyntaxhighlighter.h \
motorolaSRecordProvider/motorolasrecordprovider.h \
importexportmenager.h \
stOsdFile/stOsdFile.h \
ftdiinterfaceprovider.h \
consoledirectiointerface.h \
lptwiniodirectiointerface.h \
ftdidioportinterface.h
FORMS += mainwindow.ui \
aboutwindow.ui \
helpwindow.ui \
driverdialog.ui \
optionsdialog.ui \
searchdialog.ui \
compairdialog.ui
DOCS += doc/index.t2t \
doc/syntax.t2t \
doc/api.t2t \
doc/gui.t2t \
doc/general.t2t \
LIBS += -lslang \
-lqextserialport
win32:QMAKE_LFLAGS+= -shared-libgcc
unix:DEFINES = _TTY_POSIX_
win32:DEFINES = _TTY_WIN_
CONFIG += qt \
thread \
warn_on \
TXT2TAGS = txt2tags
include( hardwareexpert-build-lib-paths.pri.user )
RESOURCES += \
resources.qrc
TRANSLATIONS += tr/hardwareexpert_ru.ts
doc.target = doc
doc.commands += mkdir $(OBJECTS_DIR)/doc ;
for(FILE,DOCS){
NFILE = $$replace(FILE,t2t,html)
doc.commands += $$TXT2TAGS -t html --encoding=utf-8 -o $(OBJECTS_DIR)$$NFILE $$PWD/$$FILE ;
doc.depends += $$PWD/$$FILE
}
QMAKE_EXTRA_TARGETS += doc
QMAKE_CLEAN += -rf doc
ver.target = ver
COMMIT = $$system(git --git-dir=$$PWD/.git rev-parse --short HEAD)
ver.commands += echo \"//Autogenetated file. Do not edit.\" > $(OBJECTS_DIR)/version.h ;
ver.commands += echo \"\" >> $(OBJECTS_DIR)/version.h ;
ver.commands += echo \"static const char * _current_ver =\\\"$$VERSION\\\";\" >> $(OBJECTS_DIR)/version.h ;
ver.commands += echo \"static const char * _current_commit =\\\"$$COMMIT\\\";\" >> $(OBJECTS_DIR)/version.h ;
ver.commands += echo \"\" >> $(OBJECTS_DIR)/version.h
doc.depends =
QMAKE_EXTRA_TARGETS += ver
PRE_TARGETDEPS += ver
QMAKE_CLEAN += -r version.h
tr.target = tr
isEmpty(QMAKE_LRELEASE) {
win32:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease.exe
else:QMAKE_LRELEASE = $$[QT_INSTALL_BINS]/lrelease
}
for(FILE,TRANSLATIONS){
NFILE = $$replace(FILE,ts,qm)
NFILE = $$replace(NFILE,tr/,)
tr.commands += $$QMAKE_LRELEASE $$PWD/$$FILE -qm $(OBJECTS_DIR)$$NFILE
tr.depends += $$PWD/$$FILE
}
QMAKE_EXTRA_TARGETS += tr
PRE_TARGETDEPS += tr
QMAKE_CLEAN += -r *.qm
deploy.target = deploy
deploy.commands += cp $$PWD/LICENSE $(OBJECTS_DIR) ;
win32:deploy.commands += cp $$SLANG_DLLDIR/*.dll $(OBJECTS_DIR) ;
win32:deploy.commands += cp $$QExtSerialPort_DLLDIR/*.dll $(OBJECTS_DIR) ;
win32:deploy.commands += cp $$WinIO_DLLDIR/*.dll $(OBJECTS_DIR) ;
win32:deploy.commands += cp $$WinIO_DLLDIR/*.sys $(OBJECTS_DIR) ;
win32:deploy.commands += cp \"$$[QT_INSTALL_PREFIX]/lib/QtCore4.dll\" $(OBJECTS_DIR) ;
win32:deploy.commands += cp \"$$[QT_INSTALL_PREFIX]/lib/QtGui4.dll\" $(OBJECTS_DIR) ;
win32:deploy.commands += cp \"$$[QT_INSTALL_PREFIX]/translations/qt_ru.qm\" $(OBJECTS_DIR) ;
win32:CPPPATH = $$system($$quote(for %i in (gcc.exe) do @echo.%~$PATH:i))
win32:CPPPATH = $$replace(CPPPATH,\\\\,/)
win32:CPPPATH = $$replace(CPPPATH,gcc.exe,)
win32:deploy.commands += cp \"$$CPPPATH\\libgcc_s_dw2-1.dll\" $(OBJECTS_DIR) ;
win32:deploy.commands += cp \"$$CPPPATH\\libstdc++-6.dll\" $(OBJECTS_DIR) ;
win32:deploy.commands += cp \"$$CPPPATH\\mingwm10.dll\" $(OBJECTS_DIR) ;
deploy.commands += mkdir $(OBJECTS_DIR)/scripts ;
deploy.commands += cp $$PWD/tests/* $(OBJECTS_DIR)/scripts/ ;
deploy.commands += cp $$PWD/scripts/* $(OBJECTS_DIR)/scripts/ ;
QMAKE_EXTRA_TARGETS += deploy
cleandeploy.target = cleandeploy
cleandeploy.commands += rm $(OBJECTS_DIR)/*.o ;
cleandeploy.commands += rm $(OBJECTS_DIR)/*.cpp ;
cleandeploy.commands += rm $(OBJECTS_DIR)/*.h ;
cleandeploy.commands += rm Makefile ;
QMAKE_EXTRA_TARGETS += cleandeploy