QT += core gui qml widgets CONFIG += c++11 TARGET = FortFirewall TEMPLATE = app SOURCES += \ main.cpp \ conf/addressgroup.cpp \ conf/appgroup.cpp \ conf/firewallconf.cpp \ driver/drivermanager.cpp \ driver/driverworker.cpp \ fortcommon.cpp \ fortmanager.cpp \ fortsettings.cpp \ log/logbuffer.cpp \ log/logentry.cpp \ log/logentryblocked.cpp \ log/logentryprocnew.cpp \ log/logentrystattraf.cpp \ log/logmanager.cpp \ log/model/appblockedmodel.cpp \ log/model/iplistmodel.cpp \ log/model/stringlistmodel.cpp \ mainwindow.cpp \ task/taskinfo.cpp \ task/taskmanager.cpp \ task/tasktasix.cpp \ task/taskuzonline.cpp \ task/taskworker.cpp \ translationmanager.cpp \ util/confutil.cpp \ util/device.cpp \ util/fileutil.cpp \ util/guiutil.cpp \ util/net/hostinfo.cpp \ util/net/hostinfocache.cpp \ util/net/hostinfoworker.cpp \ util/net/ip4range.cpp \ util/net/netdownloader.cpp \ util/net/netutil.cpp \ util/processinfo.cpp \ util/osutil.cpp \ util/stringutil.cpp HEADERS += \ conf/addressgroup.h \ conf/appgroup.h \ conf/firewallconf.h \ driver/drivermanager.h \ driver/driverworker.h \ fortcommon.h \ fortmanager.h \ fortsettings.h \ log/logbuffer.h \ log/logentry.h \ log/logentryblocked.h \ log/logentryprocnew.h \ log/logentrystattraf.h \ log/logmanager.h \ log/model/appblockedmodel.h \ log/model/iplistmodel.h \ log/model/stringlistmodel.h \ mainwindow.h \ task/taskinfo.h \ task/taskmanager.h \ task/tasktasix.h \ task/taskuzonline.h \ task/taskworker.h \ translationmanager.h \ util/confutil.h \ util/device.h \ util/fileutil.h \ util/guiutil.h \ util/net/hostinfo.h \ util/net/hostinfocache.h \ util/net/hostinfoworker.h \ util/net/ip4range.h \ util/net/netdownloader.h \ util/net/netutil.h \ util/processinfo.h \ util/osutil.h \ util/stringutil.h QML_FILES += \ qml/*.qml \ qml/controls/*.qml \ qml/pages/*.qml \ qml/pages/addresses/*.qml \ qml/pages/apps/*.qml \ qml/pages/schedule/*.qml OTHER_FILES += \ $${QML_FILES} # QML files RESOURCES += fort_qml.qrc # Images RESOURCES += fort_images.qrc # 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 } # Windows LIBS += -lfwpuclnt -lkernel32 -luser32 -luuid -lws2_32 RC_FILE = FortFirewall.rc # Kernel Driver installer_build { BUILDCMD = MSBuild $$PWD/../driver/fortdrv.vcxproj /p:OutDir=./;IntDir=$$OUT_PWD/driver/ fortdrv32.target = $$PWD/../driver/fortfw32.sys fortdrv32.commands = $$BUILDCMD /p:Platform=Win32 fortdrv64.target = $$PWD/../driver/fortfw64.sys fortdrv64.commands = $$BUILDCMD /p:Platform=x64 QMAKE_EXTRA_TARGETS += fortdrv32 fortdrv64 PRE_TARGETDEPS += $$fortdrv32.target $$fortdrv64.target } include(sqlite/sqlite.pri)