NSS/Build System: Difference between revisions

no edit summary
(Fix typo)
No edit summary
Line 6: Line 6:


=== Steps to build with gyp ===
=== Steps to build with gyp ===
    ./build.sh


# Build NSPR
* If <code>NSS_GYP_GEN=1</code> is set, <code>build.sh</code> runs gyp to generate ninja files.
## <code>mkdir nspr-build && cd nspr-build</code>
## <code>../nspr/configure</code> (with <code>--enable-64bit</code> on a 64-bit system)
## <code>make</code>
# Build NSS
## <code>cd ../nss</code>
## <code>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</code>
## <code>ninja -C out/Debug/</code>


==== Build Options ====
==== Build Options ====
* 32-bit builds on 64-bit machines: <code>-Dtarget_arch=ia32</code>
* 32-bit builds on 64-bit machines: <code>-Dtarget_arch=ia32</code> (gyp argument)
* disable_tests
* disable_tests
* disable_dbm
* disable_dbm
Line 23: Line 17:
* ssl_enable_zlib
* ssl_enable_zlib
* mozilla_client
* mozilla_client
* cross compiling <code>-DOS=android</code> (gyp argument)
71

edits