NSS/Build System: Difference between revisions

From MozillaWiki
< NSS
Jump to navigation Jump to search
(Created page with "=== Prerequisites to building with gyp === * a recent version of [https://chromium.googlesource.com/external/gyp gyp] and [https://ninja-build.org/ ninja]. * a build environme...")
 
(Fix typo)
Line 10: Line 10:
## <code>mkdir nspr-build && cd nspr-build</code>
## <code>mkdir nspr-build && cd nspr-build</code>
## <code>../nspr/configure</code> (with <code>--enable-64bit</code> on a 64-bit system)
## <code>../nspr/configure</code> (with <code>--enable-64bit</code> on a 64-bit system)
## <code>make</make>
## <code>make</code>
# Build NSS
# Build NSS
## <code>cd ../nss</code>
## <code>cd ../nss</code>

Revision as of 13:50, 22 August 2016

Prerequisites to building with gyp

  • a recent version of gyp and ninja.
  • a build environment with pkg-config, make, configure
  • the NSPR source
  • the NSS source

Steps to build with gyp

  1. Build NSPR
    1. mkdir nspr-build && cd nspr-build
    2. ../nspr/configure (with --enable-64bit on a 64-bit system)
    3. make
  2. Build NSS
    1. cd ../nss
    2. PKG_CONFIG_PATH=/path/to/nspr-build/config gyp -f ninja -Dnspr_cflags='-I/path/to/nspr-build/dist/include/nspr' -Dnspr_libs='-L/path/to/nspr-build/dist/lib -lplds4 -lplc4 -lnspr4' --depth=. nss.gyp
    3. ninja -C out/Debug/

Build Options

  • 32-bit builds on 64-bit machines: -Dtarget_arch=ia32
  • disable_tests
  • disable_dbm
  • disable_libpkix
  • ssl_enable_zlib
  • mozilla_client