Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(950)

Side by Side Diff: webrtc/build/ios/build_ios_libs.sh

Issue 2654083003: Minor updates to the help message printed by build_ios_libs.sh (with -h) (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 # Strip debug symbols to reduce size. 83 # Strip debug symbols to reduce size.
84 if [[ ${build_type} = "static_only" ]]; then 84 if [[ ${build_type} = "static_only" ]]; then
85 strip -S ${OUTPUT_DIR}/obj/webrtc/sdk/lib${GN_TARGET_NAME}.a -o \ 85 strip -S ${OUTPUT_DIR}/obj/webrtc/sdk/lib${GN_TARGET_NAME}.a -o \
86 ${OUTPUT_DIR}/lib${GN_TARGET_NAME}.a 86 ${OUTPUT_DIR}/lib${GN_TARGET_NAME}.a
87 fi 87 fi
88 } 88 }
89 89
90 function usage { 90 function usage {
91 echo "WebRTC iOS FAT libraries build script." 91 echo "WebRTC iOS FAT libraries build script."
92 echo "Each architecture is compiled separately before being merged together." 92 echo "Each architecture is compiled separately before being merged together."
93 echo "By default, the fat libraries will be created in out_ios_libs/." 93 echo "By default, the library is created in out_ios_libs/. (Change with -o.)"
94 echo "The headers will be copied to out_ios_libs/include." 94 echo "The headers will be copied to out_ios_libs/include."
95 echo "Usage: $0 [-h] [-b build_type] [-c] [-o output_dir]" 95 echo "Usage: $0 [-h] [-b build_type] [-c] [-o output_dir] [-r rev_num] [-e]"
96 echo " -h Print this help." 96 echo " -h Print this help."
97 echo " -b The build type. Can be framework or static_only." 97 echo " -b The build type. Can be \"framework\" or \"static_only\"."
98 echo " Defaults to framework." 98 echo " Defaults to \"framework\"."
99 echo " -c Removes generated build output." 99 echo " -c Removes the previously generated build output, if any."
100 echo " -o Specifies a directory to output build artifacts to." 100 echo " -o Specifies a directory to output the build artifacts to."
101 echo " If specified together with -c, deletes the dir." 101 echo " If specified together with -c, deletes the dir."
102 echo " -r Specifies a revision number to embed if building the framework." 102 echo " -r Specifies a revision number to embed if building the framework."
103 echo " -e Compile with bitcode." 103 echo " -e Compile with bitcode."
104 exit 0 104 exit 0
105 } 105 }
106 106
107 SDK_OUTPUT_DIR=${WEBRTC_BASE_DIR}/out_ios_libs 107 SDK_OUTPUT_DIR=${WEBRTC_BASE_DIR}/out_ios_libs
108 SDK_LIB_NAME="librtc_sdk_objc.a" 108 SDK_LIB_NAME="librtc_sdk_objc.a"
109 SDK_FRAMEWORK_NAME="WebRTC.framework" 109 SDK_FRAMEWORK_NAME="WebRTC.framework"
110 110
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
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."
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698