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 # Globals. | 16 # Globals. |
17 SCRIPT_DIR=$(cd $(dirname $0) && pwd) | 17 SCRIPT_DIR=$(cd $(dirname $0) && pwd) |
18 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../../.. | 18 WEBRTC_BASE_DIR=${SCRIPT_DIR}/../../.. |
19 GYP_WEBRTC_SCRIPT=${WEBRTC_BASE_DIR}/webrtc/build/gyp_webrtc.py | 19 GYP_WEBRTC_SCRIPT=${WEBRTC_BASE_DIR}/webrtc/build/gyp_webrtc.py |
20 MERGE_SCRIPT=${SCRIPT_DIR}/merge_ios_libs.py | 20 MERGE_SCRIPT=${SCRIPT_DIR}/merge_ios_libs.py |
| 21 LICENSE_SCRIPT=${SCRIPT_DIR}/generate_licenses.py |
21 | 22 |
22 function check_preconditions { | 23 function check_preconditions { |
23 # Check for Darwin. | 24 # Check for Darwin. |
24 if [[ ! $(uname) = "Darwin" ]]; then | 25 if [[ ! $(uname) = "Darwin" ]]; then |
25 echo "OS/X required." >&2 | 26 echo "OS/X required." >&2 |
26 exit 1 | 27 exit 1 |
27 fi | 28 fi |
28 | 29 |
29 # Check for libtool. | 30 # Check for libtool. |
30 if [[ -z $(which libtool) ]]; then | 31 if [[ -z $(which libtool) ]]; then |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 fi | 256 fi |
256 if [[ ${BUILD_TYPE} = "legacy" ]]; then | 257 if [[ ${BUILD_TYPE} = "legacy" ]]; then |
257 INPUT_HEADER_DIR="${WEBRTC_BASE_DIR}/talk/app/webrtc/objc/public" | 258 INPUT_HEADER_DIR="${WEBRTC_BASE_DIR}/talk/app/webrtc/objc/public" |
258 ln -sf ${INPUT_HEADER_DIR} ${OUTPUT_HEADER_DIR} | 259 ln -sf ${INPUT_HEADER_DIR} ${OUTPUT_HEADER_DIR} |
259 else | 260 else |
260 mkdir -p ${OUTPUT_HEADER_DIR} | 261 mkdir -p ${OUTPUT_HEADER_DIR} |
261 ln -sf ${INPUT_HEADER_DIR} ${OUTPUT_HEADER_DIR}/WebRTC | 262 ln -sf ${INPUT_HEADER_DIR} ${OUTPUT_HEADER_DIR}/WebRTC |
262 fi | 263 fi |
263 fi | 264 fi |
264 | 265 |
| 266 echo "Generating LICENSE.html." |
| 267 ${LICENSE_SCRIPT} ${OUTPUT_DIR}/arm64_libs ${OUTPUT_DIR} |
| 268 |
265 echo "Done!" | 269 echo "Done!" |
OLD | NEW |