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