2013-08-26 19:31:21 +00:00
|
|
|
#!/bin/bash -e
|
2013-04-18 23:22:02 +00:00
|
|
|
|
|
|
|
|
# Copyright (c) 2013 The WebRTC project authors. All Rights Reserved.
|
|
|
|
|
#
|
|
|
|
|
# Use of this source code is governed by a BSD-style license
|
|
|
|
|
# that can be found in the LICENSE file in the root of the source
|
|
|
|
|
# tree. An additional intellectual property rights grant can be found
|
|
|
|
|
# in the file PATENTS. All contributing project authors may
|
|
|
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
|
|
2013-08-26 19:31:21 +00:00
|
|
|
# Work in trunk/.
|
|
|
|
|
cd "$(dirname $0)/../.."
|
2013-04-18 23:22:02 +00:00
|
|
|
|
2013-08-26 19:31:21 +00:00
|
|
|
export GYP_DEFINES="build_with_libjingle=1 build_with_chromium=0"
|
|
|
|
|
GYP_DEFINES="$GYP_DEFINES OS=ios target_arch=armv7 key_id=\"\""
|
|
|
|
|
export GYP_GENERATORS="ninja"
|
|
|
|
|
export GYP_CROSSCOMPILE=1
|
2013-04-18 23:22:02 +00:00
|
|
|
|
2013-04-20 13:04:05 +00:00
|
|
|
echo "@@@BUILD_STEP runhooks@@@"
|
2013-08-26 19:31:21 +00:00
|
|
|
gclient runhooks || { echo "@@@STEP_FAILURE@@@"; exit 2; }
|
2013-04-18 23:22:02 +00:00
|
|
|
|
2013-04-20 13:04:05 +00:00
|
|
|
echo "@@@BUILD_STEP compile@@@"
|
2013-08-26 19:31:21 +00:00
|
|
|
ninja -C out/Debug || { echo "@@@STEP_FAILURE@@@"; exit 2; }
|
2013-04-18 23:22:02 +00:00
|
|
|
|
|
|
|
|
exit 0
|