Skip to content

Commit

Permalink
New solution configs for ARM64 and Win8/8.1 driver
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed May 13, 2021
1 parent 3b6721f commit d36cc6e
Show file tree
Hide file tree
Showing 12 changed files with 2,348 additions and 10 deletions.
2 changes: 2 additions & 0 deletions create_lib.bat
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ echo Creating \Lib folder
mkdir %WPDPACKDESTDIR% >nul 2>nul
mkdir %WPDPACKDESTDIR%\Lib >nul 2>nul
mkdir %WPDPACKDESTDIR%\Lib\x64 >nul 2>nul
mkdir %WPDPACKDESTDIR%\Lib\ARM64 >nul 2>nul

xcopy /v /Y "%WPCAPBUILDDIR32%\Release\wpcap.lib" %WPDPACKDESTDIR%\Lib\ || goto :fail
xcopy /v /Y "%WPCAPBUILDDIR64%\Release\wpcap.lib" %WPDPACKDESTDIR%\Lib\x64 || goto :fail
xcopy /v /Y "%PACKETBUILDDIR%\Release\packet.lib" %WPDPACKDESTDIR%\Lib\ || goto :fail
xcopy /v /Y "%PACKETBUILDDIR%\x64\Release\packet.lib" %WPDPACKDESTDIR%\Lib\x64 || goto :fail
xcopy /v /Y "%PACKETBUILDDIR%\ARM64\Release No AirPcap\packet.lib" %WPDPACKDESTDIR%\Lib\ARM64 || goto :fail

echo Folder \Lib created successfully

Expand Down
8 changes: 8 additions & 0 deletions installer/Build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,22 @@ rem SET MODE="Debug"
for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version 16 -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" x86

msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE%" /p:Platform="x86"
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win8 driver" /p:Platform="x86"
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win10 driver" /p:Platform="x86"
msbuild "%NPCAPDIR%\wpcap\build-win32\wpcap.vcxproj" /m /t:Build /p:Configuration="%MODE%" /p:Platform="Win32"

for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version 16 -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" x64

msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE%" /p:Platform="x64"
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win8 driver" /p:Platform="x64"
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win10 driver" /p:Platform="x64"
msbuild "%NPCAPDIR%\wpcap\build-x64\wpcap.vcxproj" /m /t:Build /p:Configuration="%MODE%" /p:Platform="x64"

for /f "usebackq delims=#" %%a in (`"%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere" -version 16 -property installationPath`) do call "%%a\VC\Auxiliary\Build\vcvarsall.bat" ARM64

msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE%" /p:Platform="ARM64"
msbuild "%NPCAPDIR%\packetWin7\vs14\npcap.sln" /m /t:Build /p:Configuration="%MODE% Win10 driver" /p:Platform="ARM64"
rem msbuild "%NPCAPDIR%\wpcap\build-ARM64\wpcap.vcxproj" /m /t:Build /p:Configuration="%MODE%" /p:Platform="ARM64"

pause

552 changes: 552 additions & 0 deletions packetWin7/Dll/Project/Packet.vcxproj

Large diffs are not rendered by default.

168 changes: 167 additions & 1 deletion packetWin7/Helper/NpcapHelper/NpcapHelper.vcxproj

Large diffs are not rendered by default.

188 changes: 187 additions & 1 deletion packetWin7/NPFInstall/NPFInstall/NPFInstall.vcxproj

Large diffs are not rendered by default.

160 changes: 159 additions & 1 deletion packetWin7/WlanHelper/WlanHelper/WlanHelper.vcxproj

Large diffs are not rendered by default.

462 changes: 461 additions & 1 deletion packetWin7/npf/npf Package/npf Package.vcxproj

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packetWin7/npf/npf/npcap.inf
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ DriverVer=05/15/2015,14.48.38.905


[Manufacturer]
%Insecure%=Insecure,NTx86,NTia64,NTamd64
%Insecure%=Insecure,NTx86,NTARM64,NTamd64

[Insecure.NTx86]
%NPF_Desc_Standard%=FilterStandard, INSECURE_NPCAP
%NPF_Desc_WiFi%=FilterWiFi, INSECURE_NPCAP_WIFI

[Insecure.NTia64]
[Insecure.NTARM64]
%NPF_Desc_Standard%=FilterStandard, INSECURE_NPCAP
%NPF_Desc_WiFi%=FilterWiFi, INSECURE_NPCAP_WIFI

Expand Down
4 changes: 2 additions & 2 deletions packetWin7/npf/npf/npcap_wfp.inf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ DriverVer=05/15/2015,14.48.38.905


[Manufacturer]
%Insecure%=Insecure,NTx86,NTia64,NTamd64
%Insecure%=Insecure,NTx86,NTARM64,NTamd64

[Insecure.NTx86]
%NPF_Desc%=Install, INSECURE_NPCAP

[Insecure.NTia64]
[Insecure.NTARM64]
%NPF_Desc%=Install, INSECURE_NPCAP

[Insecure.NTamd64]
Expand Down
579 changes: 578 additions & 1 deletion packetWin7/npf/npf/npf.vcxproj

Large diffs are not rendered by default.

223 changes: 223 additions & 0 deletions packetWin7/vs14/npcap.sln

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion wpcap/wpcap-cmake.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set CMAKE="C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
set GENERATOR=Visual Studio 16 2019
set NPCAP_SDK=..\..\npcap-sdk-1.06
set NPCAP_SDK=..\npcap-sdk
set AIRPCAP_SDK=..\..\Airpcap_Devpack

mkdir build-win32
Expand All @@ -12,3 +12,9 @@ mkdir build-x64
cd build-x64
%CMAKE% -A x64 -DPacket_ROOT=..\%NPCAP_SDK% -DLIBRARY_NAME=wpcap -DAirPcap_ROOT=..\%AIRPCAP_SDK% -G "%GENERATOR%" ..\libpcap\
cd ..

rem AirPcap does not have ARM64 libs
mkdir build-ARM64
cd build-ARM64
%CMAKE% -A ARM64 -DPacket_ROOT=..\%NPCAP_SDK% -DLIBRARY_NAME=wpcap -G "%GENERATOR%" ..\libpcap\
cd ..

0 comments on commit d36cc6e

Please sign in to comment.