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

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

Issue 1875003004: Fix WebRTC API framework build. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 8 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/SDK/Framework/WebRTC.xcodeproj/project.pbxproj ('k') | 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 s/(\#include )\"webrtc\/base\/objc\/(.*)\"/\1<WebRTC\/\2>/g; 55 s/(\#include )\"webrtc\/base\/objc\/(.*)\"/\1<WebRTC\/\2>/g;
56 ' 56 '
57 sed -E -i '' "$SED_PATTERN" ${FRAMEWORK_BASE_DIR}/include/*.h 57 sed -E -i '' "$SED_PATTERN" ${FRAMEWORK_BASE_DIR}/include/*.h
58 58
59 SDK_DIR=webrtc/build/ios/SDK 59 SDK_DIR=webrtc/build/ios/SDK
60 PROJECT_DIR=${SDK_DIR}/Framework 60 PROJECT_DIR=${SDK_DIR}/Framework
61 # Build the framework. 61 # Build the framework.
62 pushd ${PROJECT_DIR} 62 pushd ${PROJECT_DIR}
63 xcodebuild -project WebRTC.xcodeproj -scheme WebRTC -configuration Release \ 63 xcodebuild -project WebRTC.xcodeproj -scheme WebRTC -configuration Release \
64 build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO 64 build CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
65 if [ $? -ne 0 ]; then
kjellander_webrtc 2016/04/11 20:01:30 I suggest adding set -e in the beginning of the sc
66 echo "Failed to build armv7+arm64 framework." >&2
67 exit 1
68 fi
65 xcodebuild -project WebRTC.xcodeproj -scheme WebRTC -configuration Release \ 69 xcodebuild -project WebRTC.xcodeproj -scheme WebRTC -configuration Release \
66 build -destination 'platform=iOS Simulator,name=iPhone 6' 70 build -destination 'platform=iOS Simulator,name=iPhone 6'
71 if [ $? -ne 0 ]; then
72 echo "Failed to build simulator framework." >&2
73 exit 1
74 fi
67 popd 75 popd
68 76
69 # Copy podspec, framework, dSYM and LICENSE to FRAMEWORK_BASE_DIR 77 # Copy podspec, framework, dSYM and LICENSE to FRAMEWORK_BASE_DIR
70 DEVICE_BUILD_DIR=${PROJECT_DIR}/build/Release-iphoneos 78 DEVICE_BUILD_DIR=${PROJECT_DIR}/build/Release-iphoneos
71 cp ${SDK_DIR}/WebRTC.podspec ${FRAMEWORK_BASE_DIR}/ 79 cp ${SDK_DIR}/WebRTC.podspec ${FRAMEWORK_BASE_DIR}/
72 cp -R ${DEVICE_BUILD_DIR}/WebRTC.framework ${FRAMEWORK_BASE_DIR}/ 80 cp -R ${DEVICE_BUILD_DIR}/WebRTC.framework ${FRAMEWORK_BASE_DIR}/
73 cp -R ${DEVICE_BUILD_DIR}/WebRTC.framework.dSYM ${FRAMEWORK_BASE_DIR}/ 81 cp -R ${DEVICE_BUILD_DIR}/WebRTC.framework.dSYM ${FRAMEWORK_BASE_DIR}/
74 cp -R webrtc/LICENSE ${FRAMEWORK_BASE_DIR}/ 82 cp -R webrtc/LICENSE ${FRAMEWORK_BASE_DIR}/
75 83
76 # Combine multiple architectures 84 # Combine multiple architectures
77 SIMULATOR_BUILD_DIR=${PROJECT_DIR}/build/Release-iphonesimulator 85 SIMULATOR_BUILD_DIR=${PROJECT_DIR}/build/Release-iphonesimulator
78 DYLIB_PATH=WebRTC.framework/WebRTC 86 DYLIB_PATH=WebRTC.framework/WebRTC
79 DWARF_PATH=WebRTC.framework.dSYM/Contents/Resources/DWARF/WebRTC 87 DWARF_PATH=WebRTC.framework.dSYM/Contents/Resources/DWARF/WebRTC
80 lipo ${FRAMEWORK_BASE_DIR}/${DYLIB_PATH} ${SIMULATOR_BUILD_DIR}/${DYLIB_PATH} \ 88 lipo ${FRAMEWORK_BASE_DIR}/${DYLIB_PATH} ${SIMULATOR_BUILD_DIR}/${DYLIB_PATH} \
81 -create -output ${FRAMEWORK_BASE_DIR}/${DYLIB_PATH} 89 -create -output ${FRAMEWORK_BASE_DIR}/${DYLIB_PATH}
82 lipo ${FRAMEWORK_BASE_DIR}/${DWARF_PATH} ${SIMULATOR_BUILD_DIR}/${DWARF_PATH} \ 90 lipo ${FRAMEWORK_BASE_DIR}/${DWARF_PATH} ${SIMULATOR_BUILD_DIR}/${DWARF_PATH} \
83 -create -output ${FRAMEWORK_BASE_DIR}/${DWARF_PATH} 91 -create -output ${FRAMEWORK_BASE_DIR}/${DWARF_PATH}
84 92
85 popd 93 popd
OLDNEW
« no previous file with comments | « webrtc/build/ios/SDK/Framework/WebRTC.xcodeproj/project.pbxproj ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698