mirror of
https://github.com/tnodir/fort
synced 2024-11-15 16:15:50 +00:00
Driver: Fix .pro
This commit is contained in:
parent
3da3b7e355
commit
eaae529932
@ -1,17 +1,21 @@
|
|||||||
include(Driver.pri)
|
include(Driver.pri)
|
||||||
|
|
||||||
|
QT = core
|
||||||
|
SOURCES += dummy.c
|
||||||
|
|
||||||
OTHER_FILES += \
|
OTHER_FILES += \
|
||||||
$$PWD/scripts/*.bat
|
$$PWD/scripts/*.bat
|
||||||
|
|
||||||
# Kernel Driver
|
# 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.target = $$OUT_DIR/fortfw32.sys
|
||||||
fortdrv32.commands = $$BUILDCMD /p:Platform=Win32
|
fortdrv32.commands = $$BUILDCMD Win32
|
||||||
|
|
||||||
fortdrv64.target = $$PWD/fortfw64.sys
|
fortdrv64.target = $$OUT_DIR/fortfw64.sys
|
||||||
fortdrv64.commands = $$BUILDCMD /p:Platform=x64
|
fortdrv64.commands = $$BUILDCMD x64
|
||||||
|
|
||||||
QMAKE_EXTRA_TARGETS += fortdrv32 fortdrv64
|
QMAKE_EXTRA_TARGETS += fortdrv32 fortdrv64
|
||||||
PRE_TARGETDEPS += $$fortdrv32.target $$fortdrv64.target
|
PRE_TARGETDEPS += $$fortdrv32.target $$fortdrv64.target
|
||||||
|
8
src/driver/dummy.c
Normal file
8
src/driver/dummy.c
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
/* Fort Firewall Driver: Dummy main() for .pro */
|
||||||
|
|
||||||
|
int main(int argc, char *argv[])
|
||||||
|
{
|
||||||
|
(void) argc;
|
||||||
|
(void) argv;
|
||||||
|
return 0;
|
||||||
|
}
|
@ -2,11 +2,13 @@
|
|||||||
|
|
||||||
@setlocal
|
@setlocal
|
||||||
|
|
||||||
|
@cd %~dp0
|
||||||
|
|
||||||
@rem PLAT: x64, Win32
|
@rem PLAT: x64, Win32
|
||||||
@set PLAT=%1
|
@set PLAT=%1
|
||||||
|
|
||||||
@set OutDir=..\..\deploy\build\driver
|
@set OutDir=..\..\deploy\build\driver
|
||||||
@set IntDir=.\build
|
@set IntDir=.\build-%PLAT%
|
||||||
|
|
||||||
MSBuild fortdrv.vcxproj /p:OutDir=%OutDir%\;IntDir=%IntDir%\;Platform=%PLAT%
|
MSBuild fortdrv.vcxproj /p:OutDir=%OutDir%\;IntDir=%IntDir%\;Platform=%PLAT%
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user