Skip to content

Commit

Permalink
Now Npcap can generate its own SDK (Npcap mode) by running "build_wpd…
Browse files Browse the repository at this point in the history
…pack.bat".
  • Loading branch information
hsluoyz committed Jun 1, 2016
1 parent a5dc95f commit 21a5abb
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ sdv/
/installer/win7_winpcap/
/installer/win8_above/
/installer/win8_above_winpcap/
/WpdPack/
/dox/prj/
/packetWin7/Dll/Project/Debug*/
/packetWin7/Dll/Project/Release*/
/packetWin7/Dll/Project/x64/Debug*/
Expand Down
8 changes: 4 additions & 4 deletions build_wpdpack.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
if "%2"== "" ( rd /s/q ./wpdpack 2>nul >nul) else ( rd /s /q "%2" 2>nul >nul)

call create_include.bat %1 %2
PAUSE

call create_lib.bat %1 %2
PAUSE

call create_examples.bat %1 %2
PAUSE
call create_docs.bat %1 %2

call create_docs.bat %1 %2
PAUSE

10 changes: 4 additions & 6 deletions create_lib.bat
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,10 @@ mkdir %WPDPACKDESTDIR% >nul 2>nul
mkdir %WPDPACKDESTDIR%\Lib >nul 2>nul
mkdir %WPDPACKDESTDIR%\Lib\x64 >nul 2>nul

xcopy /v /Y %WINPCAPSOURCEDIR%\wpcap\PRJ\Release\x86\wpcap.lib %WPDPACKDESTDIR%\Lib\ >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\wpcap\PRJ\Release\x64\wpcap.lib %WPDPACKDESTDIR%\Lib\x64 >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\packetNtx\Dll\Project\Release\x86\packet.lib %WPDPACKDESTDIR%\Lib\ >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\packetNtx\Dll\Project\Release\x64\packet.lib %WPDPACKDESTDIR%\Lib\x64 >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\packetNtx\Dll\Project\libpacket.a %WPDPACKDESTDIR%\Lib\ >nul
xcopy /v /Y %WINPCAPSOURCEDIR%\wpcap\LIB\libwpcap.a %WPDPACKDESTDIR%\Lib\ >nul
xcopy /v /Y "%WINPCAPSOURCEDIR%\wpcap\PRJ\Release No AirPcap\x86\wpcap.lib" %WPDPACKDESTDIR%\Lib\ >nul
xcopy /v /Y "%WINPCAPSOURCEDIR%\wpcap\PRJ\Release No AirPcap\x64\wpcap.lib" %WPDPACKDESTDIR%\Lib\x64 >nul
xcopy /v /Y "%WINPCAPSOURCEDIR%\packetWin7\Dll\Project\Release No NetMon and AirPcap\packet.lib" %WPDPACKDESTDIR%\Lib\ >nul
xcopy /v /Y "%WINPCAPSOURCEDIR%\packetWin7\Dll\Project\x64\Release No NetMon and AirPcap\packet.lib" %WPDPACKDESTDIR%\Lib\x64 >nul

echo Folder \Lib created successfully

Expand Down

0 comments on commit 21a5abb

Please sign in to comment.