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:
-
Feb 5, 2013, 11:47:24 PM (11 years ago)
- Author:
-
datallah
- Comment:
-
Fix formatting and update slightly - I think we're going to need to use these again soon :P
Legend:
- Unmodified
- Added
- Removed
- Modified
-
|
v38
|
v39
|
|
| 15 | 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. |
| 16 | 16 | 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 [https://github.com/hexchat/hexchat/tree/master/win32/ext/nss-wdk WDK build patch] to `c:\devel\pidgin-devel\win32-dev\nss-wdk.patch`. |
| 18 | | 1. '''WDK build script:'''[[BR]]Download [https://gist.github.com/1289898 this build script] to `c:\devel\pidgin-devel\win32-dev\build-x86.bat`. |
| | 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`. |
| 19 | 19 | |
| 20 | 20 | == Prepare the build tree == |
| … |
… |
|
| 28 | 28 | The NSS build configuration is controlled by environment variables. The most important options are: |
| 29 | 29 | |
| 30 | | * Enable optimizations (BUILD_OPT) |
| 31 | | * Use debug runtime library (USE_DEBUG_RTL) |
| 32 | | * Enable elliptic curve cryptography (NSS_ENABLE_ECC) |
| 33 | | * Disable legacy DBM database (NSS_DISABLE_DBM) |
| | 30 | * Enable optimizations (`BUILD_OPT`) |
| | 31 | * Use debug runtime library (`USE_DEBUG_RTL`) |
| | 32 | * Enable elliptic curve cryptography (`NSS_ENABLE_ECC`) |
| | 33 | * Disable legacy DBM database (`NSS_DISABLE_DBM`) |
| 34 | 34 | |
| 35 | 35 | The first two options select the build type according to the matrix below: |
| 36 | 36 | |
| 37 | | {{{ |
| 38 | | #!rst |
| 39 | | +---------------+--------------------+---------------------+ |
| 40 | | | |``USE_DEBUG_RTL=0`` |``USE_DEBUG_RTL=1`` | |
| 41 | | +===============+====================+=====================+ |
| 42 | | |``BUILD_OPT=0``|``WINNT5.1_DBG.OBJ``|``WINNT5.1_DBG.OBJD``| |
| 43 | | +---------------+--------------------+---------------------+ |
| 44 | | |``BUILD_OPT=1``|``WINNT5.1_OPT.OBJ``|``N/A`` | |
| 45 | | +---------------+--------------------+---------------------+ |
| 46 | | }}} |
| | 37 | || ||= USE_DEBUG_RTL=0 =||= USE_DEBUG_RTL=1 =|| |
| | 38 | || BUILD_OPT=0 || WINNT5.1_DBG.OBJ || WINNT5.1_DBG.OBJD || |
| | 39 | || BUILD_OPT=1 || WINNT5.1_OPT.OBJ || N/A || |
| 47 | 40 | |
| 48 | 41 | The version after WINNT is the target OS version - WINNT5.1 assumes you're building for Windows XP. |
| 49 | 42 | |
| 50 | | The second two options control which features are enabled. Normally, both NSS_ENABLE_ECC and NSS_DISABLE_DBM should be selected. |
| | 43 | The second two options control which features are enabled. Normally, both `NSS_ENABLE_ECC` and `NSS_DISABLE_DBM should be selected. |
| 51 | 44 | |
| 52 | | 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. |
| | 45 | 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. |
| 53 | 46 | |
| 54 | 47 | == Do the build == |
| … |
… |
|
| 56 | 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! |
| 57 | 50 | |
| 58 | | The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss-3.12.8\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: |
| | 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: |
| 59 | 52 | |
| 60 | 53 | * `libnspr4.dll` |
| … |
… |
|
| 67 | 60 | * `nss3.dll` |
| 68 | 61 | * `ssl3.dll` |
| 69 | | * `nssckbi.dll` |
| 70 | 62 | * `softokn3.chk` |
| 71 | 63 | * `freebl3.chk` |
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!