Driver: Fix .pro

This commit is contained in:
Nodir Temirkhodjaev 2020-09-01 14:34:50 +03:00
parent 3da3b7e355
commit eaae529932
3 changed files with 21 additions and 7 deletions

View File

@ -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

8
src/driver/dummy.c Normal file
View File

@ -0,0 +1,8 @@
/* Fort Firewall Driver: Dummy main() for .pro */
int main(int argc, char *argv[])
{
(void) argc;
(void) argv;
return 0;
}

View File

@ -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%