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

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

Issue 1826453004: Add visibility flag to GYP. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Rename gyp var Created 4 years, 9 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/common.gypi ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 function build_webrtc { 50 function build_webrtc {
51 OUTPUT_DIR=$1 51 OUTPUT_DIR=$1
52 FLAVOR=$2 52 FLAVOR=$2
53 TARGET_ARCH=$3 53 TARGET_ARCH=$3
54 if [[ ${TARGET_ARCH} = 'arm' || ${TARGET_ARCH} = 'arm64' ]]; then 54 if [[ ${TARGET_ARCH} = 'arm' || ${TARGET_ARCH} = 'arm64' ]]; then
55 FLAVOR="${FLAVOR}-iphoneos" 55 FLAVOR="${FLAVOR}-iphoneos"
56 else 56 else
57 FLAVOR="${FLAVOR}-iphonesimulator" 57 FLAVOR="${FLAVOR}-iphonesimulator"
58 fi 58 fi
59 export GYP_DEFINES="OS=ios target_arch=${TARGET_ARCH} use_objc_h264=1 \ 59 export GYP_DEFINES="OS=ios target_arch=${TARGET_ARCH} use_objc_h264=1 \
60 clang_xcode=1" 60 clang_xcode=1 ios_override_visibility=1"
61 export GYP_GENERATORS="ninja" 61 export GYP_GENERATORS="ninja"
62 export GYP_GENERATOR_FLAGS="output_dir=${OUTPUT_DIR}" 62 export GYP_GENERATOR_FLAGS="output_dir=${OUTPUT_DIR}"
63 webrtc/build/gyp_webrtc webrtc/build/ios/merge_ios_libs.gyp 63 webrtc/build/gyp_webrtc webrtc/build/ios/merge_ios_libs.gyp
64 if [[ ${USE_LEGACY_API} -eq 1 ]]; then 64 if [[ ${USE_LEGACY_API} -eq 1 ]]; then
65 ninja -C ${OUTPUT_DIR}/${FLAVOR} libjingle_peerconnection_objc_no_op 65 ninja -C ${OUTPUT_DIR}/${FLAVOR} libjingle_peerconnection_objc_no_op
66 else 66 else
67 ninja -C ${OUTPUT_DIR}/${FLAVOR} webrtc_api_objc_no_op 67 ninja -C ${OUTPUT_DIR}/${FLAVOR} webrtc_api_objc_no_op
68 fi 68 fi
69 mkdir -p ${LIBRARY_BASE_DIR}/${TARGET_ARCH} 69 mkdir -p ${LIBRARY_BASE_DIR}/${TARGET_ARCH}
70 mv ${OUTPUT_DIR}/${FLAVOR}/*.a ${LIBRARY_BASE_DIR}/${TARGET_ARCH} 70 mv ${OUTPUT_DIR}/${FLAVOR}/*.a ${LIBRARY_BASE_DIR}/${TARGET_ARCH}
71 } 71 }
72 72
73 # Build all the common architectures. 73 # Build all the common architectures.
74 build_webrtc "out_ios_arm" "Release" "arm" 74 build_webrtc "out_ios_arm" "Release" "arm"
75 build_webrtc "out_ios_arm64" "Release" "arm64" 75 build_webrtc "out_ios_arm64" "Release" "arm64"
76 build_webrtc "out_ios_ia32" "Release" "ia32" 76 build_webrtc "out_ios_ia32" "Release" "ia32"
77 build_webrtc "out_ios_x86_64" "Release" "x64" 77 build_webrtc "out_ios_x86_64" "Release" "x64"
78 78
79 popd 79 popd
80 80
81 # Export header files. 81 # Export header files.
82 ${EXPORT_HEADERS_SCRIPT} ${WEBRTC_BASE_DIR}/${LIBRARY_BASE_DIR} \ 82 ${EXPORT_HEADERS_SCRIPT} ${WEBRTC_BASE_DIR}/${LIBRARY_BASE_DIR} \
83 ${USE_LEGACY_API} 83 ${USE_LEGACY_API}
84 84
85 # Merge the libraries together. 85 # Merge the libraries together.
86 ${MERGE_SCRIPT} ${WEBRTC_BASE_DIR}/${LIBRARY_BASE_DIR} 86 ${MERGE_SCRIPT} ${WEBRTC_BASE_DIR}/${LIBRARY_BASE_DIR}
OLDNEW
« no previous file with comments | « webrtc/build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698