Skip to content

Commit

Permalink
Add build log files
Browse files Browse the repository at this point in the history
  • Loading branch information
chebur committed Apr 14, 2015
1 parent 6cf4ca5 commit 03d33db
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions openh264.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,15 @@ function build() {
MAKEFILE="${TARGET_PATH}/Makefile"
MAKEFILE_BAK="${TARGET_PATH}/Makefile.bak"
PREFIX="${BASEDIR_PATH}/build/${ARCH}"
LOG="${PREFIX}/build.log"

pushd . > /dev/null
cd "${TARGET_PATH}"

if [ -d "${PREFIX}" ]; then
rm -rf ${PREFIX}
fi
mkdir -p ${PREFIX}

echo "Builing for ${ARCH}..."

Expand All @@ -45,9 +47,9 @@ function build() {
sed -i.deleteme "s/${SED_SRC}/${SED_DST}/" "${MAKEFILE}"
rm ${MAKEFILE}.deleteme

make OS=ios ARCH=${ARCH} SDK_MIN=7.0 V=No > /dev/null
make OS=ios ARCH=${ARCH} SDK_MIN=7.0 V=No install > /dev/null
make OS=ios ARCH=${ARCH} SDK_MIN=7.0 V=No clean > /dev/null
make OS=ios ARCH=${ARCH} SDK_MIN=7.0 V=No >> "${LOG}"
make OS=ios ARCH=${ARCH} SDK_MIN=7.0 V=No install >> "${LOG}"
make OS=ios ARCH=${ARCH} SDK_MIN=7.0 V=No clean >> "${LOG}"

popd > /dev/null

Expand Down Expand Up @@ -82,4 +84,4 @@ function headers() {
download ${TARGET_URL} ${TARGET_PATH}
build armv7 && build armv7s && build arm64 && build i386 && build x86_64
lipo armv7 armv7s arm64 i386 x86_64
headers arm64
headers arm64

0 comments on commit 03d33db

Please sign in to comment.