2018-03-15 15:35:49 +00:00
|
|
|
QT += charts core gui qml widgets
|
2017-08-23 13:52:22 +00:00
|
|
|
|
|
|
|
CONFIG += c++11
|
|
|
|
|
|
|
|
TEMPLATE = app
|
2018-01-11 04:25:17 +00:00
|
|
|
TARGET = FortFirewall
|
|
|
|
DESTDIR = ./
|
|
|
|
MOC_DIR = .moc
|
|
|
|
OBJECTS_DIR = .obj
|
2018-01-12 08:29:08 +00:00
|
|
|
RCC_DIR = .rcc
|
2017-08-23 13:52:22 +00:00
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
2017-09-02 10:17:51 +00:00
|
|
|
conf/addressgroup.cpp \
|
2017-08-28 10:35:15 +00:00
|
|
|
conf/appgroup.cpp \
|
|
|
|
conf/firewallconf.cpp \
|
2018-08-24 11:28:26 +00:00
|
|
|
control/controlmanager.cpp \
|
|
|
|
control/controlworker.cpp \
|
2017-12-01 14:13:06 +00:00
|
|
|
db/databasemanager.cpp \
|
2017-12-04 13:55:03 +00:00
|
|
|
db/databasesql.cpp \
|
2018-02-19 15:01:35 +00:00
|
|
|
db/quotamanager.cpp \
|
2017-09-04 11:39:15 +00:00
|
|
|
driver/drivermanager.cpp \
|
|
|
|
driver/driverworker.cpp \
|
2017-08-26 09:39:19 +00:00
|
|
|
fortcommon.cpp \
|
2017-09-01 15:13:17 +00:00
|
|
|
fortmanager.cpp \
|
2017-08-30 16:20:31 +00:00
|
|
|
fortsettings.cpp \
|
2018-03-15 15:35:49 +00:00
|
|
|
graph/graphwindow.cpp \
|
2017-11-17 03:46:35 +00:00
|
|
|
log/logbuffer.cpp \
|
|
|
|
log/logentry.cpp \
|
|
|
|
log/logentryblocked.cpp \
|
2017-11-24 09:46:35 +00:00
|
|
|
log/logentryprocnew.cpp \
|
2017-11-27 07:04:10 +00:00
|
|
|
log/logentrystattraf.cpp \
|
2017-11-17 03:46:35 +00:00
|
|
|
log/logmanager.cpp \
|
|
|
|
log/model/appblockedmodel.cpp \
|
2017-12-05 05:06:15 +00:00
|
|
|
log/model/appstatmodel.cpp \
|
2017-11-17 10:33:14 +00:00
|
|
|
log/model/iplistmodel.cpp \
|
2017-11-17 03:46:35 +00:00
|
|
|
log/model/stringlistmodel.cpp \
|
2017-12-06 13:40:58 +00:00
|
|
|
log/model/traflistmodel.cpp \
|
2017-09-07 10:44:15 +00:00
|
|
|
mainwindow.cpp \
|
2017-12-21 14:46:22 +00:00
|
|
|
task/taskdownloader.cpp \
|
2017-09-20 15:43:43 +00:00
|
|
|
task/taskinfo.cpp \
|
2017-09-19 08:35:43 +00:00
|
|
|
task/taskmanager.cpp \
|
2017-09-19 04:46:49 +00:00
|
|
|
task/tasktasix.cpp \
|
2017-12-21 14:46:22 +00:00
|
|
|
task/taskupdatechecker.cpp \
|
2017-09-21 13:24:45 +00:00
|
|
|
task/taskworker.cpp \
|
2017-09-07 10:44:15 +00:00
|
|
|
translationmanager.cpp \
|
2018-01-20 08:57:22 +00:00
|
|
|
util/conf/addressrange.cpp \
|
|
|
|
util/conf/confutil.cpp \
|
2017-12-06 13:40:58 +00:00
|
|
|
util/dateutil.cpp \
|
2017-08-29 13:00:18 +00:00
|
|
|
util/device.cpp \
|
2017-08-26 09:39:19 +00:00
|
|
|
util/fileutil.cpp \
|
2017-11-01 13:49:11 +00:00
|
|
|
util/guiutil.cpp \
|
2018-03-07 10:15:35 +00:00
|
|
|
util/hotkeymanager.cpp \
|
2018-01-11 08:54:38 +00:00
|
|
|
util/logger.cpp \
|
2018-03-07 10:12:58 +00:00
|
|
|
util/nativeeventfilter.cpp \
|
2017-11-07 07:42:42 +00:00
|
|
|
util/net/hostinfo.cpp \
|
2017-11-17 10:33:14 +00:00
|
|
|
util/net/hostinfocache.cpp \
|
2017-11-07 07:42:42 +00:00
|
|
|
util/net/hostinfoworker.cpp \
|
|
|
|
util/net/ip4range.cpp \
|
|
|
|
util/net/netdownloader.cpp \
|
|
|
|
util/net/netutil.cpp \
|
2017-09-09 04:24:04 +00:00
|
|
|
util/osutil.cpp \
|
2018-02-19 15:01:35 +00:00
|
|
|
util/processinfo.cpp \
|
2018-01-10 02:41:42 +00:00
|
|
|
util/stringutil.cpp \
|
2018-03-15 15:35:49 +00:00
|
|
|
util/window/basewindowstatewatcher.cpp \
|
|
|
|
util/window/widgetwindow.cpp \
|
|
|
|
util/window/widgetwindowstatewatcher.cpp \
|
|
|
|
util/window/windowstatewatcher.cpp
|
2017-08-23 13:52:22 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
2017-09-02 10:17:51 +00:00
|
|
|
conf/addressgroup.h \
|
2017-08-28 10:35:15 +00:00
|
|
|
conf/appgroup.h \
|
|
|
|
conf/firewallconf.h \
|
2018-08-24 11:28:26 +00:00
|
|
|
control/controlmanager.h \
|
|
|
|
control/controlworker.h \
|
2017-12-01 14:13:06 +00:00
|
|
|
db/databasemanager.h \
|
2017-12-04 13:55:03 +00:00
|
|
|
db/databasesql.h \
|
2018-02-19 15:01:35 +00:00
|
|
|
db/quotamanager.h \
|
2017-09-04 11:39:15 +00:00
|
|
|
driver/drivermanager.h \
|
|
|
|
driver/driverworker.h \
|
2017-08-26 09:39:19 +00:00
|
|
|
fortcommon.h \
|
2017-09-01 15:13:17 +00:00
|
|
|
fortmanager.h \
|
2017-08-30 16:20:31 +00:00
|
|
|
fortsettings.h \
|
2018-03-15 15:35:49 +00:00
|
|
|
graph/graphwindow.h \
|
2017-11-17 03:46:35 +00:00
|
|
|
log/logbuffer.h \
|
|
|
|
log/logentry.h \
|
|
|
|
log/logentryblocked.h \
|
2017-11-24 09:46:35 +00:00
|
|
|
log/logentryprocnew.h \
|
2017-11-27 07:04:10 +00:00
|
|
|
log/logentrystattraf.h \
|
2017-11-17 03:46:35 +00:00
|
|
|
log/logmanager.h \
|
|
|
|
log/model/appblockedmodel.h \
|
2017-12-05 05:06:15 +00:00
|
|
|
log/model/appstatmodel.h \
|
2017-11-17 10:33:14 +00:00
|
|
|
log/model/iplistmodel.h \
|
2017-11-17 03:46:35 +00:00
|
|
|
log/model/stringlistmodel.h \
|
2017-12-06 13:40:58 +00:00
|
|
|
log/model/traflistmodel.h \
|
2017-09-07 10:44:15 +00:00
|
|
|
mainwindow.h \
|
2017-12-21 14:46:22 +00:00
|
|
|
task/taskdownloader.h \
|
2017-09-20 15:43:43 +00:00
|
|
|
task/taskinfo.h \
|
2017-09-19 08:35:43 +00:00
|
|
|
task/taskmanager.h \
|
2017-09-19 04:46:49 +00:00
|
|
|
task/tasktasix.h \
|
2017-12-21 14:46:22 +00:00
|
|
|
task/taskupdatechecker.h \
|
2017-09-21 13:24:45 +00:00
|
|
|
task/taskworker.h \
|
2017-09-07 10:44:15 +00:00
|
|
|
translationmanager.h \
|
2018-01-20 08:57:22 +00:00
|
|
|
util/conf/addressrange.h \
|
|
|
|
util/conf/confutil.h \
|
2017-12-06 13:40:58 +00:00
|
|
|
util/dateutil.h \
|
2017-08-29 13:00:18 +00:00
|
|
|
util/device.h \
|
2017-08-26 09:39:19 +00:00
|
|
|
util/fileutil.h \
|
2017-11-01 13:49:11 +00:00
|
|
|
util/guiutil.h \
|
2018-03-07 10:15:35 +00:00
|
|
|
util/hotkeymanager.h \
|
2018-01-11 08:54:38 +00:00
|
|
|
util/logger.h \
|
2018-03-07 10:12:58 +00:00
|
|
|
util/nativeeventfilter.h \
|
2017-11-07 07:42:42 +00:00
|
|
|
util/net/hostinfo.h \
|
2017-11-17 10:33:14 +00:00
|
|
|
util/net/hostinfocache.h \
|
2017-11-07 07:42:42 +00:00
|
|
|
util/net/hostinfoworker.h \
|
|
|
|
util/net/ip4range.h \
|
|
|
|
util/net/netdownloader.h \
|
|
|
|
util/net/netutil.h \
|
2017-09-09 04:24:04 +00:00
|
|
|
util/osutil.h \
|
2018-02-19 15:01:35 +00:00
|
|
|
util/processinfo.h \
|
2018-01-10 02:41:42 +00:00
|
|
|
util/stringutil.h \
|
2018-03-15 15:35:49 +00:00
|
|
|
util/window/basewindowstatewatcher.h \
|
|
|
|
util/window/widgetwindow.h \
|
|
|
|
util/window/widgetwindowstatewatcher.h \
|
|
|
|
util/window/windowstatewatcher.h
|
2017-08-23 13:52:22 +00:00
|
|
|
|
|
|
|
QML_FILES += \
|
2017-09-01 13:13:12 +00:00
|
|
|
qml/*.qml \
|
2017-09-02 14:25:47 +00:00
|
|
|
qml/controls/*.qml \
|
|
|
|
qml/pages/*.qml \
|
|
|
|
qml/pages/addresses/*.qml \
|
2017-09-21 13:24:45 +00:00
|
|
|
qml/pages/apps/*.qml \
|
2017-12-05 13:23:44 +00:00
|
|
|
qml/pages/log/*.qml \
|
2017-09-21 13:24:45 +00:00
|
|
|
qml/pages/schedule/*.qml
|
2017-08-23 13:52:22 +00:00
|
|
|
|
|
|
|
OTHER_FILES += \
|
2017-09-09 00:08:11 +00:00
|
|
|
$${QML_FILES}
|
2017-08-23 13:52:22 +00:00
|
|
|
|
2017-09-01 13:13:12 +00:00
|
|
|
# QML files
|
|
|
|
RESOURCES += fort_qml.qrc
|
|
|
|
|
|
|
|
# Images
|
|
|
|
RESOURCES += fort_images.qrc
|
|
|
|
|
2017-09-09 04:24:04 +00:00
|
|
|
# Shadow Build: Copy i18n/ to build path
|
|
|
|
!equals(PWD, $${OUT_PWD}) {
|
|
|
|
i18n.files = i18n/*.qm
|
2018-01-11 04:25:17 +00:00
|
|
|
i18n.path = $${OUT_PWD}/i18n
|
2017-09-09 04:24:04 +00:00
|
|
|
COPIES += i18n
|
|
|
|
}
|
|
|
|
|
2017-08-25 10:59:13 +00:00
|
|
|
# Windows
|
2017-11-01 13:49:11 +00:00
|
|
|
LIBS += -lfwpuclnt -lkernel32 -luser32 -luuid -lws2_32
|
2017-10-19 09:05:37 +00:00
|
|
|
RC_FILE = FortFirewall.rc
|
2017-08-23 13:52:22 +00:00
|
|
|
|
2017-08-24 14:32:24 +00:00
|
|
|
# Kernel Driver
|
2017-09-11 10:49:25 +00:00
|
|
|
installer_build {
|
2017-08-24 14:32:24 +00:00
|
|
|
BUILDCMD = MSBuild $$PWD/../driver/fortdrv.vcxproj /p:OutDir=./;IntDir=$$OUT_PWD/driver/
|
|
|
|
|
2017-08-25 10:32:46 +00:00
|
|
|
fortdrv32.target = $$PWD/../driver/fortfw32.sys
|
2017-08-24 14:32:24 +00:00
|
|
|
fortdrv32.commands = $$BUILDCMD /p:Platform=Win32
|
|
|
|
|
2017-08-25 10:32:46 +00:00
|
|
|
fortdrv64.target = $$PWD/../driver/fortfw64.sys
|
2017-08-24 14:32:24 +00:00
|
|
|
fortdrv64.commands = $$BUILDCMD /p:Platform=x64
|
|
|
|
|
|
|
|
QMAKE_EXTRA_TARGETS += fortdrv32 fortdrv64
|
|
|
|
PRE_TARGETDEPS += $$fortdrv32.target $$fortdrv64.target
|
|
|
|
}
|
2017-11-04 04:45:14 +00:00
|
|
|
|
2017-12-01 14:13:06 +00:00
|
|
|
include(db/sqlite/sqlite.pri)
|