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

Side by Side Diff: talk/build/build_ios_libs.sh

Issue 1620013002: Sync build_ios_libs.sh script with http://webrtc.org/native-code/ios/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Changes from feedback Created 4 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 # libjingle 3 # libjingle
4 # Copyright 2015 Google Inc. 4 # Copyright 2015 Google Inc.
5 # 5 #
6 # Redistribution and use in source and binary forms, with or without 6 # Redistribution and use in source and binary forms, with or without
7 # modification, are permitted provided that the following conditions are met: 7 # modification, are permitted provided that the following conditions are met:
8 # 8 #
9 # 1. Redistributions of source code must retain the above copyright notice, 9 # 1. Redistributions of source code must retain the above copyright notice,
10 # this list of conditions and the following disclaimer. 10 # this list of conditions and the following disclaimer.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 fi 53 fi
54 54
55 pushd ${WEBRTC_BASE_DIR} 55 pushd ${WEBRTC_BASE_DIR}
56 LIBRARY_BASE_DIR="out_ios_libs" 56 LIBRARY_BASE_DIR="out_ios_libs"
57 57
58 function build_webrtc { 58 function build_webrtc {
59 OUTPUT_DIR=$1 59 OUTPUT_DIR=$1
60 FLAVOR=$2 60 FLAVOR=$2
61 TARGET_ARCH=$3 61 TARGET_ARCH=$3
62 TARGET_SUBARCH=$4 62 TARGET_SUBARCH=$4
63 if [[ ${TARGET_ARCH} = 'armv7' || ${TARGET_ARCH} = 'arm64' ]]; then 63 if [[ ${TARGET_ARCH} = 'arm' || ${TARGET_ARCH} = 'arm64' ]]; then
64 FLAVOR="${FLAVOR}-iphoneos" 64 FLAVOR="${FLAVOR}-iphoneos"
65 else 65 else
66 FLAVOR="${FLAVOR}-iphonesimulator" 66 FLAVOR="${FLAVOR}-iphonesimulator"
67 fi 67 fi
68 export GYP_DEFINES="OS=ios use_openssl=1" 68 export GYP_DEFINES="OS=ios target_arch=${TARGET_ARCH} clang_xcode=1"
69 export GYP_DEFINES="${GYP_DEFINES} target_arch=${TARGET_ARCH}"
70 if [[ -n ${TARGET_SUBARCH} ]]; then
71 export GYP_DEFINES="${GYP_DEFINES} target_subarch=${TARGET_SUBARCH}"
72 fi
73 export GYP_GENERATORS="ninja" 69 export GYP_GENERATORS="ninja"
74 export GYP_GENERATOR_FLAGS="output_dir=${OUTPUT_DIR}" 70 export GYP_GENERATOR_FLAGS="output_dir=${OUTPUT_DIR}"
75 webrtc/build/gyp_webrtc talk/build/merge_ios_libs.gyp 71 webrtc/build/gyp_webrtc talk/build/merge_ios_libs.gyp
76 ninja -C ${OUTPUT_DIR}/${FLAVOR} libjingle_peerconnection_objc_no_op 72 ninja -C ${OUTPUT_DIR}/${FLAVOR} libjingle_peerconnection_objc_no_op
77 mkdir -p ${LIBRARY_BASE_DIR}/${TARGET_ARCH} 73 mkdir -p ${LIBRARY_BASE_DIR}/${TARGET_ARCH}
78 mv ${OUTPUT_DIR}/${FLAVOR}/*.a ${LIBRARY_BASE_DIR}/${TARGET_ARCH} 74 mv ${OUTPUT_DIR}/${FLAVOR}/*.a ${LIBRARY_BASE_DIR}/${TARGET_ARCH}
79 } 75 }
80 76
81 # Build all the common architectures. 77 # Build all the common architectures.
82 build_webrtc "out_ios_armv7" "Release" "armv7" "arm32" 78 build_webrtc "out_ios_arm" "Release" "arm"
83 build_webrtc "out_ios_arm64" "Release" "arm64" "arm64" 79 build_webrtc "out_ios_arm64" "Release" "arm64"
84 build_webrtc "out_ios_ia32" "Release" "ia32" "arm32" 80 build_webrtc "out_ios_ia32" "Release" "ia32"
85 build_webrtc "out_ios_x86_64" "Release" "x64" "arm64" 81 build_webrtc "out_ios_x86_64" "Release" "x64"
86 82
87 popd 83 popd
88 84
89 # Merge the libraries together. 85 # Merge the libraries together.
90 ${MERGE_SCRIPT} ${WEBRTC_BASE_DIR}/${LIBRARY_BASE_DIR} 86 ${MERGE_SCRIPT} ${WEBRTC_BASE_DIR}/${LIBRARY_BASE_DIR}
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