diff --git a/src/driver/FortFirewallDriver.pro b/src/driver/FortFirewallDriver.pro index 3ea50616..409d9d2f 100644 --- a/src/driver/FortFirewallDriver.pro +++ b/src/driver/FortFirewallDriver.pro @@ -1,17 +1,21 @@ include(Driver.pri) +QT = core +SOURCES += dummy.c + OTHER_FILES += \ $$PWD/scripts/*.bat # Kernel Driver -installer_build { - BUILDCMD = MSBuild $$PWD/fortdrv.vcxproj /p:OutDir=./;IntDir=$$OUT_PWD/driver/ +{ + OUT_DIR = $$PWD/../../deploy/build/driver + BUILDCMD = $$PWD/msvcbuild.bat - fortdrv32.target = $$PWD/fortfw32.sys - fortdrv32.commands = $$BUILDCMD /p:Platform=Win32 + fortdrv32.target = $$OUT_DIR/fortfw32.sys + fortdrv32.commands = $$BUILDCMD Win32 - fortdrv64.target = $$PWD/fortfw64.sys - fortdrv64.commands = $$BUILDCMD /p:Platform=x64 + fortdrv64.target = $$OUT_DIR/fortfw64.sys + fortdrv64.commands = $$BUILDCMD x64 QMAKE_EXTRA_TARGETS += fortdrv32 fortdrv64 PRE_TARGETDEPS += $$fortdrv32.target $$fortdrv64.target diff --git a/src/driver/dummy.c b/src/driver/dummy.c new file mode 100644 index 00000000..3c5f60bb --- /dev/null +++ b/src/driver/dummy.c @@ -0,0 +1,8 @@ +/* Fort Firewall Driver: Dummy main() for .pro */ + +int main(int argc, char *argv[]) +{ + (void) argc; + (void) argv; + return 0; +} diff --git a/src/driver/msvcbuild.bat b/src/driver/msvcbuild.bat index f7ff6b59..3231eca8 100644 --- a/src/driver/msvcbuild.bat +++ b/src/driver/msvcbuild.bat @@ -2,11 +2,13 @@ @setlocal +@cd %~dp0 + @rem PLAT: x64, Win32 @set PLAT=%1 @set OutDir=..\..\deploy\build\driver -@set IntDir=.\build +@set IntDir=.\build-%PLAT% MSBuild fortdrv.vcxproj /p:OutDir=%OutDir%\;IntDir=%IntDir%\;Platform=%PLAT%