NSS/Build System

From MozillaWiki
< NSS
Revision as of 12:41, 17 October 2016 by Franziskus (talk | contribs) (CC/CCC)
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

   ./build.sh
  • If NSS_GYP_GEN=1 is set, build.sh runs gyp to generate ninja files.

Build Options

  • 32-bit builds on 64-bit machines: -Dtarget_arch=ia32 (gyp argument)
  • disable_tests
  • disable_dbm
  • disable_libpkix
  • ssl_enable_zlib
  • mozilla_client
  • cross compiling -DOS=android (gyp argument)
  • CC and CCC can be used to set the used compiler