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.
- Timestamp:
-
Mar 10, 2013, 6:00:04 PM (11 years ago)
- Author:
-
datallah
- Comment:
-
Update for NSS 3.14.3
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v39
|
v40
|
|
12 | 12 | 1. '''Windows SDK:'''[[BR]]Download the [https://www.microsoft.com/download/en/details.aspx?id=8279 Windows SDK for Windows 7 SP1] and install it to the default location. If you have Visual Studio 2010 Pro or Ultimate installed, this step can be ignored.[[BR]]''NOTE:'' The build script below is written for Visual Studio 2010 and its included SDK - it might be necessary to tweak the script for any other configuration. |
13 | 13 | 1. '''Windows Driver Kit (WDK):'''[[BR]]Download the [https://www.microsoft.com/download/en/details.aspx?displaylang=en&id=11800 WDK for Windows 7 SP1] and install it to the default location. |
14 | | 1. '''Netscape Portable Runtime (NSPR) source:'''[[BR]]Download the latest version of [ftp://ftp.mozilla.org/pub/mozilla.org/nspr/releases/ NSPR] (currently 4.9.2) and extract it to `c:\devel\pidgin-devel\win32-dev`. |
15 | | 1. '''Network Security Services (NSS) source:'''[[BR]]Download the latest version of [ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/ NSS] (currently 3.13.6) and extract it to the same location. |
| 14 | 1. '''Network Security Services (NSS) source :'''[[BR]]Download the latest version of [ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/ NSS with NSPR] (currently 3.14.3) and extract it to `c:\devel\pidgin-devel\win32-dev\nss`. |
16 | 15 | 1. '''MozillaBuild:'''[[BR]]Download the latest version of [ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-Latest.exe MozillaBuild] and install it to `c:\devel\mozilla-build`. |
17 | | 1. '''WDK build patch:'''[[BR]]Download the [http://www.hexchat.org/ HexChat project]'s [raw-attachment:nss-wdk.patch WDK build patch] to `c:\devel\pidgin-devel\win32-dev\nss-wdk.patch`. |
18 | | 1. '''WDK build script:'''[[BR]]Download [raw-attachment:build-x86.bat this build script] to `c:\devel\pidgin-devel\win32-dev\build-x86.bat`. |
| 16 | 1. '''WDK build patch:'''[[BR]]Download the [http://www.hexchat.org/ HexChat project]'s [raw-attachment:nss-wdk.patch WDK build patch] to `c:\devel\pidgin-devel\win32-dev\nss\nss-wdk.patch`. |
| 17 | 1. '''WDK build script:'''[[BR]]Download [raw-attachment:build-x86.bat this build script] to `c:\devel\pidgin-devel\win32-dev\nss\build-x86.bat`. |
19 | 18 | |
20 | 19 | == Prepare the build tree == |
… |
… |
|
22 | 21 | Open a command prompt at your NSS/NSPR directory and run `"%PROGRAMFILES(X86)%\GnuWin32\bin\patch" -p1 --dry-run --binary -i nss-wdk.patch`. If there aren't any problems, re-run the command without the `--dry-run` flag. |
23 | 22 | |
24 | | Once this is done, open `c:\devel\pidgin-devel\win32-dev\build-x86.bat` in your editor of choice and adjust it so that the WDK binaries, mt.exe from the Windows SDK, and lib.exe from the Visual C++ compiler package are all in the PATH. If you have Visual Studio 2010 installed, it should work without modification as long as the paths are correct. |
| 23 | Once this is done, open `c:\devel\pidgin-devel\win32-dev\nss\build-x86.bat` in your editor of choice and adjust it so that the WDK binaries, mt.exe from the Windows SDK, and lib.exe from the Visual C++ compiler package are all in the PATH. If you have Visual Studio 2010 installed, it should work without modification as long as the paths are correct. |
25 | 24 | |
26 | 25 | == Choose build configuration == |
… |
… |
|
41 | 40 | The version after WINNT is the target OS version - WINNT5.1 assumes you're building for Windows XP. |
42 | 41 | |
43 | | The second two options control which features are enabled. Normally, both `NSS_ENABLE_ECC` and `NSS_DISABLE_DBM should be selected. |
| 42 | The second two options control which features are enabled. Normally, both `NSS_ENABLE_ECC` and `NSS_DISABLE_DBM` should be selected. |
44 | 43 | |
45 | 44 | When using the build script below, the default build is `WINNT5.1_OPT.OBJ` with ECC enabled and DBM disabled. In order to override these settings, set the corresponding environment variables to 0 or 1 before performing the build. Note that this behavior is different than when using the Mozilla makefiles directly. More info about the build variables can be found on the [https://developer.mozilla.org/en/NSS_reference/Building_and_installing_NSS/Build_instructions build instructions] page of Mozilla Developer Central. |
… |
… |
|
47 | 46 | == Do the build == |
48 | 47 | |
49 | | Launch a Windows XP build environment window (Start > All Programs > Windows Driver Kits > WDK 7600.16385.1 > Build Environments > Windows XP > x86 Free Build Environment) and navigate to `c:\devel\pidgin-devel\win32-dev\`. When you're ready to build, run `build-x86` and wait for the build to complete! |
| 48 | Launch a Windows XP build environment window (Start > All Programs > Windows Driver Kits > WDK 7600.16385.1 > Build Environments > Windows XP > x86 Free Build Environment) and navigate to `c:\devel\pidgin-devel\win32-dev\nss`. When you're ready to build, run `build-x86` and wait for the build to complete! |
50 | 49 | |
51 | | The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss-<version>\mozilla\dist`. The contents of `private` and `public` are the same across all configurations so they can be distributed separately. The following files need to be distributed with Pidgin: |
| 50 | The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss\nss-<version>\mozilla\dist`. The contents of `private` and `public` are the same across all configurations so they can be distributed separately. The following files need to be distributed with Pidgin: |
52 | 51 | |
53 | 52 | * `libnspr4.dll` |
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!