| 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 or dynamic FAT libraries for ios in out_ios_libs. | 11 # Generates static or dynamic 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 |
| 17 export PATH=/usr/libexec:$PATH |
| 18 |
| 16 # Globals. | 19 # Globals. |
| 17 SCRIPT_DIR=$(cd $(dirname $0) && pwd) | 20 SCRIPT_DIR=$(cd $(dirname $0) && pwd) |
| 18 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../../.. | 21 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../../.. |
| 19 GYP_WEBRTC_SCRIPT=${WEBRTC_BASE_DIR}/webrtc/build/gyp_webrtc.py | 22 GYP_WEBRTC_SCRIPT=${WEBRTC_BASE_DIR}/webrtc/build/gyp_webrtc.py |
| 20 MERGE_SCRIPT=${SCRIPT_DIR}/merge_ios_libs.py | 23 MERGE_SCRIPT=${SCRIPT_DIR}/merge_ios_libs.py |
| 21 LICENSE_SCRIPT=${SCRIPT_DIR}/generate_licenses.py | 24 LICENSE_SCRIPT=${SCRIPT_DIR}/generate_licenses.py |
| 22 | 25 |
| 23 function check_preconditions { | 26 function check_preconditions { |
| 24 # Check for Darwin. | 27 # Check for Darwin. |
| 25 if [[ ! $(uname) = "Darwin" ]]; then | 28 if [[ ! $(uname) = "Darwin" ]]; then |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 else | 268 else |
| 266 mkdir -p ${OUTPUT_HEADER_DIR} | 269 mkdir -p ${OUTPUT_HEADER_DIR} |
| 267 ln -sf ${INPUT_HEADER_DIR} ${OUTPUT_HEADER_DIR}/WebRTC | 270 ln -sf ${INPUT_HEADER_DIR} ${OUTPUT_HEADER_DIR}/WebRTC |
| 268 fi | 271 fi |
| 269 fi | 272 fi |
| 270 | 273 |
| 271 echo "Generating LICENSE.html." | 274 echo "Generating LICENSE.html." |
| 272 ${LICENSE_SCRIPT} ${OUTPUT_DIR}/arm64_libs ${OUTPUT_DIR} | 275 ${LICENSE_SCRIPT} ${OUTPUT_DIR}/arm64_libs ${OUTPUT_DIR} |
| 273 | 276 |
| 274 echo "Done!" | 277 echo "Done!" |
| OLD | NEW |