-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPacketForge.pro
More file actions
132 lines (114 loc) · 3.72 KB
/
PacketForge.pro
File metadata and controls
132 lines (114 loc) · 3.72 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
# ==============================================================================
# Project: PacketForge (formerly PacketTransmitter)
# Description: multi-protocol packet transmission utility
# ==============================================================================
TARGET = PacketForge
TEMPLATE = app
# --- Compiler Configuration ---
CONFIG += c++17
CONFIG -= console
# Platform-specific app bundle settings
macx {
CONFIG += app_bundle
# macOS specific settings
QMAKE_MACOSX_DEPLOYMENT_TARGET = 11.0
ICON = Files/Images/app_icon.icns
QMAKE_INFO_PLIST = Files/Info.plist
# Bundle identifier
QMAKE_TARGET_BUNDLE_PREFIX = com.packetforge
}
win32 {
CONFIG -= app_bundle
# Windows icon
RC_ICONS = Files/Images/app_icon.ico
}
unix:!macx {
CONFIG -= app_bundle
}
# Enable valid optimizations for Release builds
CONFIG(release, debug|release) {
QMAKE_CXXFLAGS_RELEASE += -O2
DEFINES += QT_NO_DEBUG_OUTPUT
}
# --- Dependencies ---
QT += core gui serialport network widgets serialbus
# --- Output Directories ---
# Keep build artifacts out of the source tree
DESTDIR = $$PWD/bin
MOC_DIR = $$PWD/build/moc
OBJECTS_DIR = $$PWD/build/obj
RCC_DIR = $$PWD/build/rcc
UI_DIR = $$PWD/build/ui
# --- Macros & Definitions ---
DEFINES += QT_DEPRECATED_WARNINGS
# --- Include Paths ---
INCLUDEPATH += $$PWD/src/ui \
$$PWD/src/network \
$$PWD/src/core \
$$PWD/src/macros \
$$PWD/src/modules/modbus \
$$PWD/src/modules/traffic \
$$PWD/src/modules/oscilloscope \
$$PWD/src/modules/visualizer \
$$PWD/src/modules/checksum
DEPENDPATH += $$PWD/src/ui \
$$PWD/src/network \
$$PWD/src/core \
$$PWD/src/macros
# --- Source Files ---
SOURCES += \
src/main.cpp \
src/ui/MainWindow.cpp \
src/ui/ConnectionTab.cpp \
src/network/SerialQTClass.cpp \
src/network/TcpClientClass.cpp \
src/network/TcpServer_SingleClientClass.cpp \
src/network/UdpClass.cpp \
src/network/AbstractCommunicationHandlerClass.cpp \
src/core/AutoUpdater.cpp \
src/ui/MacroDialog.cpp \
src/modules/modbus/ModbusClientWidget.cpp \
src/modules/traffic/TrafficMonitorWidget.cpp \
src/modules/oscilloscope/OscilloscopeWidget.cpp \
src/modules/visualizer/ByteVisualizerWidget.cpp \
src/modules/checksum/ChecksumWidget.cpp
# --- Header Files ---
HEADERS += \
src/ui/MainWindow.h \
src/ui/ConnectionTab.h \
src/network/SerialQTClass.h \
src/network/TcpClientClass.h \
src/network/TcpServer_SingleClientClass.h \
src/network/UdpClass.h \
src/network/AbstractCommunicationHandlerClass.h \
src/core/Debugger.h \
src/core/Paths.h \
src/core/AutoUpdater.h \
src/macros/macros.h \
src/ui/MacroDialog.h \
src/modules/modbus/ModbusClientWidget.h \
src/modules/traffic/TrafficMonitorWidget.h \
src/modules/oscilloscope/OscilloscopeWidget.h \
src/modules/visualizer/ByteVisualizerWidget.h \
src/modules/checksum/ChecksumWidget.h
# --- Forms & Resources ---
FORMS += \
src/ui/MainWindow.ui \
src/ui/ConnectionTab.ui \
src/ui/MacroDialog.ui \
src/modules/modbus/ModbusClientWidget.ui \
src/modules/traffic/TrafficMonitorWidget.ui \
src/modules/oscilloscope/OscilloscopeWidget.ui \
src/modules/visualizer/ByteVisualizerWidget.ui \
src/modules/checksum/ChecksumWidget.ui
RESOURCES += Files/Resources.qrc
# --- Deployment ---
# Install rules
target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
# --- Other Files ---
OTHER_FILES += \
scripts/deploy.bat \
scripts/PacketForge_Installer.bat \
scripts/PacketForge.iss \
scripts/create_setup_legacy.bat