-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
dengxiayehu
committed
Jan 18, 2017
1 parent
ff8ecae
commit e0b1fd8
Showing
11 changed files
with
215 additions
and
119 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,21 @@ | ||
#! /usr/bin/env bash | ||
# compile.sh | ||
|
||
ABS_DIR="$(cd "$(dirname "$0")"; pwd)" | ||
|
||
if [ -z "$WEBRTC_ROOT" ]; then | ||
echo "You should source envsetup.sh first." | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$MKFLAGS" ]; then | ||
UNAMES=$(uname -s) | ||
MKFLAGS= | ||
if which nproc >/dev/null; then | ||
export MKFLAGS=-j`nproc` | ||
elif [ "$UNAMES" == "Darwin" ] && which sysctl >/dev/null; then | ||
export MKFLAGS=-j`sysctl -n machdep.cpu.thread_count` | ||
fi | ||
export MKFLAGS="$MKFLAGS VERBOSE=1" | ||
|
||
export MKFLAGS="$MKFLAGS VERBOSE=1" | ||
fi | ||
CONTRIB_DIR="$ABS_DIR"/contrib | ||
bash "$CONTRIB_DIR"/compile-contrib.sh | ||
|
||
bash contrib/compile-contrib.sh | ||
BUILD_DIR="$ABS_DIR"/build | ||
|
||
[ ! -d build ] && mkdir build | ||
cd build && cmake .. && make "$MKFLAGS" | ||
[ ! -d "$BUILD_DIR" ] && mkdir "$BUILD_DIR" | ||
cd "$BUILD_DIR" && cmake .. && make $MKFLAGS | ||
|
||
$CONTRIB_LINUX_INSTALL_DIR/bin/omxregister-bellagio $CONTRIB_LINUX_INSTALL_DIR/lib/bellagio:$TARGET_OUT |
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
Binary file not shown.
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
Oops, something went wrong.