Lines Matching +full:build +full:- +full:ios
3 # Helper to do build so you don't have to remember all the steps/args.
5 set -eu
8 readonly ScriptDir=$(dirname "$(echo $0 | sed -e "s,^\([^/]\),$(pwd)/\1,")")
10 readonly BazelFlags="${BAZEL_FLAGS:---announce_rc --macos_minimum_os=10.13}"
13 readonly BazelBin="${BAZEL:-bazel}"
20 This script does the common build steps needed.
26 -h, --help
28 -c, --clean
29 Issue a clean before the normal build.
30 --full-build
32 enable a full build/test of the entire protobuf project.
33 --skip-xcode
34 Skip the invoke of Xcode to test the runtime on both iOS and OS X.
35 --skip-xcode-ios
36 Skip the invoke of Xcode to test the runtime on iOS.
37 --skip-xcode-debug
39 --skip-xcode-release
41 --skip-xcode-osx | --skip-xcode-macos
43 --skip-xcode-tvos
45 --skip-objc-conformance
47 --skip-xcpretty
50 --xcode-quiet
51 Pass -quiet to xcodebuild.
64 set -o pipefail && xcodebuild "${@}" | xcpretty
84 -h | --help )
88 -c | --clean )
91 --full-build )
94 --skip-xcode )
99 --skip-xcode-ios )
102 --skip-xcode-osx | --skip-xcode-macos)
105 --skip-xcode-tvos )
108 --skip-xcode-debug )
111 --skip-xcode-release )
114 --skip-objc-conformance )
117 --skip-xcpretty )
120 --xcode-quiet )
123 -*)
146 -project objectivec/ProtocolBuffers_iOS.xcodeproj
147 -scheme ProtocolBuffers
150 "${XCODEBUILD_CLEAN_BASE_IOS[@]}" -configuration Debug clean
153 "${XCODEBUILD_CLEAN_BASE_IOS[@]}" -configuration Release clean
159 -project objectivec/ProtocolBuffers_OSX.xcodeproj
160 -scheme ProtocolBuffers
163 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Debug clean
166 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Release clean
172 -project objectivec/ProtocolBuffers_tvOS.xcodeproj
173 -scheme ProtocolBuffers
176 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Debug clean
179 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Release clean
185 header "Build/Test: everything"
189 ${BazelBin} build //:protoc $BazelFlags
193 objectivec/generate_well_known_types.sh --check-only
198 readonly XCODE_VERSION_LINE="$(xcodebuild -version | grep Xcode\ )"
204 -project objectivec/ProtocolBuffers_iOS.xcodeproj
205 -scheme ProtocolBuffers
208 XCODEBUILD_TEST_BASE_IOS+=( -quiet )
213 [6-9].* | 1[0-2].* )
219 -destination "platform=iOS Simulator,name=iPhone 13,OS=latest"
226 echo "ERROR: Build aborted!"
231 header "Doing Xcode iOS build/tests - Debug"
232 "${XCODEBUILD_TEST_BASE_IOS[@]}" -configuration Debug test
235 header "Doing Xcode iOS build/tests - Release"
236 "${XCODEBUILD_TEST_BASE_IOS[@]}" -configuration Release test
244 -project objectivec/ProtocolBuffers_OSX.xcodeproj
245 -scheme ProtocolBuffers
246 -destination "platform=macOS"
249 XCODEBUILD_TEST_BASE_OSX+=( -quiet )
252 [6-9].* | 1[0-2].* )
258 header "Doing Xcode OS X build/tests - Debug"
259 "${XCODEBUILD_TEST_BASE_OSX[@]}" -configuration Debug test
262 header "Doing Xcode OS X build/tests - Release"
263 "${XCODEBUILD_TEST_BASE_OSX[@]}" -configuration Release test
269 -project objectivec/ProtocolBuffers_tvOS.xcodeproj
270 -scheme ProtocolBuffers
273 [6-9].* | 1[0-2].* )
279 -destination "platform=tvOS Simulator,name=Apple TV 4K (2nd generation),OS=latest"
286 echo "ERROR: Build aborted!"
291 XCODEBUILD_TEST_BASE_TVOS+=( -quiet )
294 header "Doing Xcode tvOS build/tests - Debug"
295 "${XCODEBUILD_TEST_BASE_TVOS[@]}" -configuration Debug test
298 header "Doing Xcode tvOS build/tests - Release"
299 "${XCODEBUILD_TEST_BASE_TVOS[@]}" -configuration Release test