-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathimflasher.pro
More file actions
43 lines (36 loc) · 1.03 KB
/
imflasher.pro
File metadata and controls
43 lines (36 loc) · 1.03 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
QT += widgets serialport network
requires(qtConfig(combobox))
TARGET = imflasher
TEMPLATE = app
GIT_TAG = $$system(git --git-dir $$PWD/.git --work-tree $$PWD describe --always --tags)
GIT_TAG ~= s/-.*//
GIT_HASH = $$system(git --git-dir $$PWD/.git --work-tree $$PWD rev-parse --verify HEAD)
GIT_BRANCH = $$system(git --git-dir $$PWD/.git --work-tree $$PWD rev-parse --abbrev-ref HEAD)
DEFINES += GIT_TAG=\\\"$$GIT_TAG\\\"
DEFINES += GIT_HASH=\\\"$$GIT_HASH\\\"
DEFINES += GIT_BRANCH=\\\"$$GIT_BRANCH\\\"
SOURCES += \
crc32.cpp \
file_downloader.cpp \
flasher.cpp \
main.cpp \
mainwindow.cpp \
serial_port.cpp \
socket_client.cpp \
worker.cpp
HEADERS += \
crc32.h \
file_downloader.h \
flasher.h \
flasher_states.h \
flashing_info.h \
mainwindow.h \
serial_port.h \
socket_client.h \
worker.h
FORMS += \
mainwindow.ui
RESOURCES += \
imflasher.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/serialport/imflasher
INSTALLS += target