2017-08-23 13:52:22 +00:00
|
|
|
QT += core gui qml widgets
|
|
|
|
|
|
|
|
CONFIG += c++11
|
|
|
|
|
|
|
|
TARGET = FortFirewall
|
|
|
|
TEMPLATE = app
|
|
|
|
|
|
|
|
SOURCES += \
|
|
|
|
main.cpp \
|
2017-10-26 04:34:52 +00:00
|
|
|
log/logbuffer.cpp \
|
|
|
|
log/logentry.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 \
|
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 \
|
2017-09-07 10:44:15 +00:00
|
|
|
mainwindow.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-10-25 09:51:35 +00:00
|
|
|
task/taskuzonline.cpp \
|
2017-09-21 13:24:45 +00:00
|
|
|
task/taskworker.cpp \
|
2017-09-07 10:44:15 +00:00
|
|
|
translationmanager.cpp \
|
2017-08-29 08:40:23 +00:00
|
|
|
util/confutil.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 \
|
2017-09-05 13:56:11 +00:00
|
|
|
util/hostinfo.cpp \
|
2017-08-28 09:03:45 +00:00
|
|
|
util/ip4range.cpp \
|
2017-10-25 12:39:01 +00:00
|
|
|
util/netdownloader.cpp \
|
2017-08-28 09:03:45 +00:00
|
|
|
util/netutil.cpp \
|
2017-09-05 11:06:21 +00:00
|
|
|
util/processinfo.cpp \
|
2017-09-09 04:24:04 +00:00
|
|
|
util/osutil.cpp \
|
|
|
|
util/stringutil.cpp
|
2017-08-23 13:52:22 +00:00
|
|
|
|
|
|
|
HEADERS += \
|
2017-10-26 04:34:52 +00:00
|
|
|
log/logbuffer.h \
|
|
|
|
log/logentry.h \
|
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 \
|
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 \
|
2017-09-07 10:44:15 +00:00
|
|
|
mainwindow.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-10-25 09:51:35 +00:00
|
|
|
task/taskuzonline.h \
|
2017-09-21 13:24:45 +00:00
|
|
|
task/taskworker.h \
|
2017-09-07 10:44:15 +00:00
|
|
|
translationmanager.h \
|
2017-08-29 08:40:23 +00:00
|
|
|
util/confutil.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 \
|
2017-09-05 13:56:11 +00:00
|
|
|
util/hostinfo.h \
|
2017-08-28 09:03:45 +00:00
|
|
|
util/ip4range.h \
|
2017-10-25 12:39:01 +00:00
|
|
|
util/netdownloader.h \
|
2017-08-28 09:03:45 +00:00
|
|
|
util/netutil.h \
|
2017-09-05 11:06:21 +00:00
|
|
|
util/processinfo.h \
|
2017-09-09 04:24:04 +00:00
|
|
|
util/osutil.h \
|
|
|
|
util/stringutil.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 \
|
|
|
|
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}) {
|
|
|
|
CONFIG(debug, debug|release) {
|
|
|
|
OUTDIR = debug
|
|
|
|
} else {
|
|
|
|
OUTDIR = release
|
|
|
|
}
|
|
|
|
|
|
|
|
i18n.files = i18n/*.qm
|
|
|
|
i18n.path = $${OUT_PWD}/$${OUTDIR}/i18n
|
|
|
|
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
|
|
|
|
|
|
|
include(sqlite/sqlite.pri)
|