OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright 2015 The WebRTC project authors. All Rights Reserved. | 3 # Copyright 2015 The WebRTC project authors. All Rights Reserved. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license | 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 | 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 | 7 # tree. An additional intellectual property rights grant can be found |
8 # in the file PATENTS. All contributing project authors may | 8 # in the file PATENTS. All contributing project authors may |
9 # be found in the AUTHORS file in the root of the source tree. | 9 # be found in the AUTHORS file in the root of the source tree. |
10 | 10 |
11 # Generates static FAT libraries for ios in out_ios_libs. | 11 # Generates static FAT libraries for ios in out_ios_libs. |
12 | 12 |
13 # Exit on errors. | 13 # Exit on errors. |
14 set -e | 14 set -e |
15 | 15 |
16 # Environment | 16 # Environment |
17 export PATH=/usr/libexec:$PATH | 17 export PATH=/usr/libexec:$PATH |
18 | 18 |
19 SCRIPT_DIR=$(cd $(dirname $0) && pwd) | 19 SCRIPT_DIR=$(cd $(dirname $0) && pwd) |
20 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../../.. | 20 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../.. |
21 | 21 |
22 function clean_artifacts { | 22 function clean_artifacts { |
23 local output_dir=$1 | 23 local output_dir=$1 |
24 if [[ -d ${output_dir} ]]; then | 24 if [[ -d ${output_dir} ]]; then |
25 echo "Deleting ${output_dir}" | 25 echo "Deleting ${output_dir}" |
26 rm -r ${output_dir} | 26 rm -r ${output_dir} |
27 fi | 27 fi |
28 } | 28 } |
29 | 29 |
30 function build_webrtc { | 30 function build_webrtc { |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 VERSION_NUMBER="${MAJOR_MINOR}.${WEBRTC_REVISION}" | 204 VERSION_NUMBER="${MAJOR_MINOR}.${WEBRTC_REVISION}" |
205 echo "Substituting revision number: ${VERSION_NUMBER}" | 205 echo "Substituting revision number: ${VERSION_NUMBER}" |
206 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} | 206 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} |
207 plutil -convert binary1 ${INFOPLIST_PATH} | 207 plutil -convert binary1 ${INFOPLIST_PATH} |
208 else | 208 else |
209 echo "BUILD_TYPE ${BUILD_TYPE} not supported." | 209 echo "BUILD_TYPE ${BUILD_TYPE} not supported." |
210 exit 1 | 210 exit 1 |
211 fi | 211 fi |
212 | 212 |
213 echo "Done." | 213 echo "Done." |
OLD | NEW |