NSS/Build System

From MozillaWiki
< NSS
Revision as of 13:01, 21 August 2016 by Franziskus (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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</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