NSS/Build System: Difference between revisions
< NSS
Jump to navigation
Jump to search
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...") |
(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</ | ## <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
- Build NSPR
mkdir nspr-build && cd nspr-build../nspr/configure(with--enable-64biton a 64-bit system)make
- Build NSS
cd ../nssPKG_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.gypninja -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