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

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

Issue 2633643003: Finalize the support for building WebRTC library for iOS with bitcode (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 | « webrtc/build/ios/BUILD.gn ('k') | webrtc/build/webrtc.gni » ('j') | 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 OUTPUT_LIB=${OUTPUT_DIR}/${SDK_LIB_NAME} 54 OUTPUT_LIB=${OUTPUT_DIR}/${SDK_LIB_NAME}
55 GN_ARGS="${GN_ARGS} target_cpu=\"${target_arch}\"" 55 GN_ARGS="${GN_ARGS} target_cpu=\"${target_arch}\""
56 56
57 # Add deployment target. 57 # Add deployment target.
58 GN_ARGS="${GN_ARGS} ios_deployment_target=\"${ios_deployment_target}\"" 58 GN_ARGS="${GN_ARGS} ios_deployment_target=\"${ios_deployment_target}\""
59 59
60 # Add vp9 option. 60 # Add vp9 option.
61 GN_ARGS="${GN_ARGS} rtc_libvpx_build_vp9=${libvpx_build_vp9}" 61 GN_ARGS="${GN_ARGS} rtc_libvpx_build_vp9=${libvpx_build_vp9}"
62 62
63 # Add bitcode option. 63 # Add bitcode option.
64 GN_ARGS="${GN_ARGS} rtc_ios_enable_bitcode=${use_bitcode}" 64 GN_ARGS="${GN_ARGS} enable_ios_bitcode=${use_bitcode}"
65 65
66 # Add custom options. 66 # Add custom options.
67 if [[ -n "${custom_gn_options}" ]]; then 67 if [[ -n "${custom_gn_options}" ]]; then
68 GN_ARGS="${GN_ARGS} ${custom_gn_options}" 68 GN_ARGS="${GN_ARGS} ${custom_gn_options}"
69 fi 69 fi
70 70
71 # Generate static or dynamic. 71 # Generate static or dynamic.
72 if [[ ${build_type} = "static_only" ]]; then 72 if [[ ${build_type} = "static_only" ]]; then
73 GN_TARGET_NAME="rtc_sdk_objc" 73 GN_TARGET_NAME="rtc_sdk_objc"
74 elif [[ ${build_type} == "framework" ]]; then 74 elif [[ ${build_type} == "framework" ]]; then
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 BUILD_FLAVOR="release" 112 BUILD_FLAVOR="release"
113 BUILD_TYPE="framework" 113 BUILD_TYPE="framework"
114 ENABLED_ARCHITECTURES=("arm" "arm64" "x64") 114 ENABLED_ARCHITECTURES=("arm" "arm64" "x64")
115 IOS_DEPLOYMENT_TARGET="8.0" 115 IOS_DEPLOYMENT_TARGET="8.0"
116 LIBVPX_BUILD_VP9="false" 116 LIBVPX_BUILD_VP9="false"
117 USE_BITCODE="false" 117 USE_BITCODE="false"
118 CUSTOM_GN_OPTS="" 118 CUSTOM_GN_OPTS=""
119 WEBRTC_REVISION="0" 119 WEBRTC_REVISION="0"
120 120
121 # Parse arguments. 121 # Parse arguments.
122 while getopts "hb:co:r:" opt; do 122 while getopts "hb:co:r:e" opt; do
123 case "${opt}" in 123 case "${opt}" in
124 h) usage;; 124 h) usage;;
125 b) BUILD_TYPE="${OPTARG}";; 125 b) BUILD_TYPE="${OPTARG}";;
126 c) PERFORM_CLEAN=1;; 126 c) PERFORM_CLEAN=1;;
127 e) USE_BITCODE="true";; 127 e) USE_BITCODE="true";;
128 o) SDK_OUTPUT_DIR="${OPTARG}";; 128 o) SDK_OUTPUT_DIR="${OPTARG}";;
129 r) WEBRTC_REVISION="${OPTARG}";; 129 r) WEBRTC_REVISION="${OPTARG}";;
130 *) 130 *)
131 usage 131 usage
132 exit 1 132 exit 1
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 VERSION_NUMBER="${MAJOR_MINOR}.${WEBRTC_REVISION}" 205 VERSION_NUMBER="${MAJOR_MINOR}.${WEBRTC_REVISION}"
206 echo "Substituting revision number: ${VERSION_NUMBER}" 206 echo "Substituting revision number: ${VERSION_NUMBER}"
207 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH} 207 PlistBuddy -c "Set :CFBundleVersion ${VERSION_NUMBER}" ${INFOPLIST_PATH}
208 plutil -convert binary1 ${INFOPLIST_PATH} 208 plutil -convert binary1 ${INFOPLIST_PATH}
209 else 209 else
210 echo "BUILD_TYPE ${BUILD_TYPE} not supported." 210 echo "BUILD_TYPE ${BUILD_TYPE} not supported."
211 exit 1 211 exit 1
212 fi 212 fi
213 213
214 echo "Done." 214 echo "Done."
OLDNEW
« no previous file with comments | « webrtc/build/ios/BUILD.gn ('k') | webrtc/build/webrtc.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698