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 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 ${X64_NINJA_DIR}/${DSYM_PATH} \ | 209 ${X64_NINJA_DIR}/${DSYM_PATH} \ |
210 -create -output ${OUTPUT_DIR}/${DSYM_PATH} | 210 -create -output ${OUTPUT_DIR}/${DSYM_PATH} |
211 | 211 |
212 # Strip the dynamic framework of non-global symbols. | 212 # Strip the dynamic framework of non-global symbols. |
213 # TODO(tkchin): Override chromium strip settings in supplement.gypi instead. | 213 # TODO(tkchin): Override chromium strip settings in supplement.gypi instead. |
214 echo "Stripping non-global symbols." | 214 echo "Stripping non-global symbols." |
215 strip -x ${OUTPUT_DIR}/${DYLIB_PATH} | 215 strip -x ${OUTPUT_DIR}/${DYLIB_PATH} |
216 | 216 |
217 # Modify the version number. | 217 # Modify the version number. |
218 INFOPLIST_PATH=${OUTPUT_DIR}/WebRTC.framework/Info.plist | 218 INFOPLIST_PATH=${OUTPUT_DIR}/WebRTC.framework/Info.plist |
219 MAJOR_MINOR=$(plistbuddy -c "Print :CFBundleShortVersionString" \ | 219 MAJOR_MINOR=$(PlistBuddy -c "Print :CFBundleShortVersionString" \ |
220 ${INFOPLIST_PATH}) | 220 ${INFOPLIST_PATH}) |
221 VERSION_NUMBER="${MAJOR_MINOR}.${POINT_VERSION}" | 221 VERSION_NUMBER="${MAJOR_MINOR}.${POINT_VERSION}" |
222 echo "Substituting revision number: ${VERSION_NUMBER}" | 222 echo "Substituting revision number: ${VERSION_NUMBER}" |
223 plistbuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} | 223 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} |
224 plutil -convert binary1 ${INFOPLIST_PATH} | 224 plutil -convert binary1 ${INFOPLIST_PATH} |
225 | 225 |
226 # Copy pod file. | 226 # Copy pod file. |
227 FORMAT_STRING=s/\${FRAMEWORK_VERSION_NUMBER}/${VERSION_NUMBER}/g | 227 FORMAT_STRING=s/\${FRAMEWORK_VERSION_NUMBER}/${VERSION_NUMBER}/g |
228 sed -e ${FORMAT_STRING} ${WEBRTC_BASE_DIR}/webrtc/sdk/objc/WebRTC.podspec > \ | 228 sed -e ${FORMAT_STRING} ${WEBRTC_BASE_DIR}/webrtc/sdk/objc/WebRTC.podspec > \ |
229 ${OUTPUT_DIR}/WebRTC.podspec | 229 ${OUTPUT_DIR}/WebRTC.podspec |
230 else | 230 else |
231 echo "Merging static library slices." | 231 echo "Merging static library slices." |
232 # Merge the static libraries together into individual FAT archives. | 232 # Merge the static libraries together into individual FAT archives. |
233 ${MERGE_SCRIPT} ${OUTPUT_DIR} | 233 ${MERGE_SCRIPT} ${OUTPUT_DIR} |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 else | 265 else |
266 mkdir -p ${OUTPUT_HEADER_DIR} | 266 mkdir -p ${OUTPUT_HEADER_DIR} |
267 ln -sf ${INPUT_HEADER_DIR} ${OUTPUT_HEADER_DIR}/WebRTC | 267 ln -sf ${INPUT_HEADER_DIR} ${OUTPUT_HEADER_DIR}/WebRTC |
268 fi | 268 fi |
269 fi | 269 fi |
270 | 270 |
271 echo "Generating LICENSE.html." | 271 echo "Generating LICENSE.html." |
272 ${LICENSE_SCRIPT} ${OUTPUT_DIR}/arm64_libs ${OUTPUT_DIR} | 272 ${LICENSE_SCRIPT} ${OUTPUT_DIR}/arm64_libs ${OUTPUT_DIR} |
273 | 273 |
274 echo "Done!" | 274 echo "Done!" |
OLD | NEW |