Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Bug 1294417 - add gyp builds to linux64-debug TC, r=ttaubert
--HG-- extra : rebase_source : bbd85cbfd718a53c0b69c73c16418f104c532f13 extra : amend_source : ecf4fbc7177e58a4b172cd414eb8752c50a16b64
- Loading branch information
1 parent
9f99504
commit ce56d93
Showing
7 changed files
with
92 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/usr/bin/env bash | ||
|
||
source $(dirname $0)/tools.sh | ||
|
||
if [[ $(id -u) -eq 0 ]]; then | ||
# Set compiler. | ||
switch_compilers | ||
|
||
# Drop privileges by re-running this script. | ||
exec su worker $0 | ||
fi | ||
|
||
# Clone NSPR if needed. | ||
hg_clone https://hg.mozilla.org/projects/nspr nspr default | ||
|
||
# Build. | ||
cd nss && NSS_GYP_GEN=1 ./build.sh | ||
if [ $? != 0 ]; then | ||
exit 1 | ||
fi | ||
|
||
# Package. | ||
cd .. && mkdir artifacts | ||
tar cvfjh artifacts/dist.tar.bz2 dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/bash | ||
|
||
CWD="$PWD/$(dirname $0)" | ||
OBJ_DIR="$(make platform)" | ||
DIST_DIR="$CWD/../dist/$OBJ_DIR" | ||
|
||
# do NSPR things | ||
NSS_GYP=1 make install_nspr | ||
|
||
if [ -z "${USE_64}" ]; then | ||
GYP_PARAMS="-Dtarget_arch=ia32" | ||
fi | ||
|
||
# generate NSS build files only if asked for it | ||
if [ -n "${NSS_GYP_GEN}" -o ! -d out/Debug ]; then | ||
PKG_CONFIG_PATH="$CWD/../nspr/$OBJ_DIR/config" gyp -f ninja $GYP_PARAMS --depth=. nss.gyp | ||
fi | ||
# build NSS | ||
# TODO: only doing this for debug build for now | ||
ninja -C out/Debug/ | ||
if [ $? != 0 ]; then | ||
exit 1 | ||
fi | ||
|
||
# sign libs | ||
# TODO: this is done every time at the moment. | ||
cd out/Debug/ | ||
LD_LIBRARY_PATH=$DIST_DIR/lib/ ./shlibsign -v -i lib/libfreebl3.so | ||
LD_LIBRARY_PATH=$DIST_DIR/lib/ ./shlibsign -v -i lib/libfreeblpriv3.so | ||
LD_LIBRARY_PATH=$DIST_DIR/lib/ ./shlibsign -v -i lib/libnssdbm3.so | ||
LD_LIBRARY_PATH=$DIST_DIR/lib/ ./shlibsign -v -i lib/libsoftokn3.so | ||
|
||
# copy files over to the right directory | ||
cp * "$DIST_DIR/bin/" | ||
cp lib/* "$DIST_DIR/lib/" | ||
find . -name "*.a" | xargs cp -t "$DIST_DIR/lib/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters