This repository has been archived by the owner on Mar 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SmartServer.pro
119 lines (96 loc) · 3.01 KB
/
SmartServer.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
#-------------------------------------------------
#
# Modbus RTU сервер чения смарт карт
#
# Copyright (C) 2021 АО "Нефтеавтоматика"
#
#-------------------------------------------------
QT += core gui widgets serialbus serialport
TARGET = SmartServer
TEMPLATE = app
VERSION_NUMBER = 0.0.4
GIT_REVISION = $$system(git --git-dir $$PWD/.git log --format="%h" -n 1)
GIT_BRANCH = $$system(git --git-dir $$PWD/.git rev-parse --abbrev-ref HEAD)
BUILD_NUMBER = $$system(git --git-dir $$PWD/.git rev-list main --count)
QMAKE_TARGET_COMPANY = "JSC Nefteavtomatika"
QMAKE_TARGET_PRODUCT = SmartServer
QMAKE_TARGET_DESCRIPTION = "Modbus RTU server for smart cards"
QMAKE_TARGET_COPYRIGHT = "Copyright (c) 2022 JSC Nefteavtomatika"
QMAKE_TARGET_DOMAIN = "nefteavtomatika.ru"
VERSION = $${VERSION_NUMBER}.$${BUILD_NUMBER}
win32
{
RC_ICONS += res/windows/app.ico
RC_CODEPAGE = 1200
RC_LANG = 0x0419
CONFIG += embed_manifest_exe
QMAKE_LFLAGS_WINDOWS += /MANIFESTUAC:"level='asInvoker'"
DEFINES += _WIN32_WINNT=0x601
}
CONFIG += c++11
CONFIG += debug_and_release
CONFIG += debug_and_release_target
# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
# Номер билда
DEFINES += APP_BUILD=\"\\\"$${BUILD_NUMBER}\\\"\"
# Ревизия
DEFINES += APP_REVISION=\"\\\"$${GIT_REVISION}\\\"\"
# Ветка
DEFINES += APP_BRANCH=\"\\\"$${GIT_BRANCH}\\\"\"
# Компания разработчик
DEFINES += TARGET_COMPANY=\"\\\"$${QMAKE_TARGET_COMPANY}\\\"\"
# Домен
DEFINES += TARGET_DOMAIN=\"\\\"$${QMAKE_TARGET_DOMAIN}\\\"\"
# Версия приложения
DEFINES += APP_VERSION=\\\"$${VERSION_NUMBER}\\\"
# Описание приложения
DEFINES += APP_DESCRIPTION=\"\\\"$${QMAKE_TARGET_DESCRIPTION}\\\"\"
# Копирайт
DEFINES += APP_COPYRIGHT=\"\\\"$${QMAKE_TARGET_COPYRIGHT}\\\"\"
SOURCES += \
application.cpp \
applicationbase.cpp \
applogger.cpp \
appsettings.cpp \
dialogabout.cpp \
dialogserialportsettings.cpp \
main.cpp \
mainwindow.cpp \
rtumodbusdatabuffer.cpp \
rtumodbusserver.cpp \
scc_getfirmware.cpp \
scc_getid.cpp \
serialportsettings.cpp \
smartcardcommand.cpp \
smartcarddevice.cpp \
smartcarddeviceemulator.cpp \
smartcarderror.cpp \
smartcardinfo.cpp
HEADERS += \
application.h \
applicationbase.h \
applogger.h \
appsettings.h \
dialogabout.h \
dialogserialportsettings.h \
mainwindow.h \
qwaitcursor.h \
rtumodbusdatabuffer.h \
rtumodbusserver.h \
scc_getfirmware.h \
scc_getid.h \
serialportsettings.h \
smartcardcommand.h \
smartcarddevice.h \
smartcarddeviceemulator.h \
smartcarderror.h \
smartcardinfo.h
FORMS += \
dialogabout.ui \
dialogserialportsettings.ui \
mainwindow.ui
RESOURCES += \
resources.qrc
LIBS += -lWinscard