Trac is being migrated to new services! Issues can be found in our new YouTrack instance and WIKI pages can be found on our website.

BuildingWinNSS: build-x86.bat

File build-x86.bat, 2.1 KB (added by datallah, 11 years ago)

Build Batch file

Line 
1@echo off
2setlocal
3pushd .
4
5rem **************************************************************************
6rem *** This script is configured for use with Visual Studio 2010 Pro.     ***
7rem *** Adjust the paths below so that the makefile can find               ***
8rem *** mt.exe and lib.exe.                                                ***
9rem **************************************************************************
10set MOZBUILD_PATH=c:\devel\mozilla-build\
11set VS_PATH=%VS100COMNTOOLS%..\..
12set WINSDK_PATH=%PROGRAMFILES(X86)%\Microsoft SDKs\Windows\v7.0A
13
14rem *** Make sure we have the prerequisites ***
15if not exist "%MOZBUILD_PATH%" goto noprereqs
16if not exist "%VS_PATH%" goto noprereqs
17if not exist "%WINSDK_PATH%" goto noprereqs
18if not "%BUILD_ALT_DIR%" == "fre_wxp_x86" goto noprereqs
19
20rem *** Configure the build environment ***
21set INCLUDE=%SDK_INC_PATH%;%CRT_INC_PATH%
22set LIB=%SDK_LIB_DEST%\i386;%SDK_LIB_DEST%\..\crt\i386
23set PATH=
24set PATH=%PATH%;%MOZBUILD_PATH%\msys\bin;%MOZBUILD_PATH%\moztools\bin
25set PATH=%PATH%;%BASEDIR%\bin\x86;%BASEDIR%\bin\x86\x86
26set PATH=%PATH%;%WINSDK_PATH%\Bin
27set PATH=%PATH%;%VS_PATH%\VC\bin;%VS_PATH%\Common7\IDE
28set PATH=%PATH%;%SystemRoot%\system32;%SystemRoot%
29
30rem *** Perform the actual build ***
31if "%BUILD_OPT%" == "" set BUILD_OPT=1
32if "%BUILD_OPT%" == "0" set BUILD_OPT=
33if "%USE_DEBUG_RTL%" == "0" set USE_DEBUG_RTL=
34if "%NSS_DISABLE_DBM%" == "" set NSS_DISABLE_DBM=1
35if "%NSS_DISABLE_DBM%" == "0" set NSS_DISABLE_DBM=
36if "%NSS_ENABLE_ECC%" == "" set NSS_ENABLE_ECC=1
37if "%NSS_ENABLE_ECC%" == "0" set NSS_ENABLE_ECC=
38set USE_64=
39set WINDDK_BUILD=1
40cd %~dp0\mozilla\security\nss
41make nss_clean_all
42if errorlevel 1 goto error
43make nss_build_all
44if errorlevel 1 goto error
45
46rem *** Clean up and exit ***
47goto end
48:error
49echo ***
50echo *** Build failed
51echo ***
52goto end
53:noprereqs
54echo ***
55echo *** A required prerequisite was not available. Make sure that:
56echo ***
57echo ***  * This is a Windows XP x86 Free Build Environment window
58echo ***  * build-x86.bat contains your MozillaBuild, Visual C++, and
59echo ***    Windows SDK directory locations
60echo ***
61:end
62popd
63endlocal
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!