forked from wireshark/wireshark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build4windows.bat
29 lines (26 loc) · 1.18 KB
/
build4windows.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
REM Build preparation script for wireshark for windows with Visual Studio 2015
REM See https://www.wireshark.org/docs/wsdg_html_chunked/ChSetupWin32.html
REM Call this script in the directory where you want to run the build - NOT in the source directory!
REM Modify this script to your needs and run it from the MSVC command prompt
set repo-root=%~dp0
rem // remove trailing slash
set repo-root=%repo-root:~0,-1%
echo Building from source in %repo-root% ...
set CYGWIN=nodosfilewarning
set WIRESHARK_BASE_DIR=%repo-root%\..
set WIRESHARK_TARGET_PLATFORM=win32
set QT5_BASE_DIR=C:\Qt\5.6\msvc2015
set WIRESHARK_CYGWIN_INSTALL_PATH=C:\cygwin64
set WIRESHARK_VERSION_EXTRA=-s7commplus
REM Ensure that cygwin bash is found before Windows10 Ubunutu bash:
set PATH=%WIRESHARK_CYGWIN_INSTALL_PATH%\bin;%PATH%
"C:\Program Files\CMake\bin\cmake" -DENABLE_CHM_GUIDES=on %repo-root%
if !ERRORLEVEL! == 0 exit /b !ERRORLEVEL!
pause
Rem build wireshark
msbuild /m /p:Configuration=RelWithDebInfo Wireshark.sln
if !ERRORLEVEL! == 0 exit /b !ERRORLEVEL!
pause
Rem build the installer
msbuild /m /p:Configuration=RelWithDebInfo nsis_package_prep.vcxproj
msbuild /m /p:Configuration=RelWithDebInfo nsis_package.vcxproj