• Home
  • Raw
  • Download

Lines Matching +full:build +full:- +full:ios

3 # Helper to do build so you don't have to remember all the steps/args.
6 set -eu
9 readonly ScriptDir=$(dirname "$(echo $0 | sed -e "s,^\([^/]\),$(pwd)/\1,")")
17 This script does the common build steps needed.
23 -h, --help
25 -c, --clean
26 Issue a clean before the normal build.
27 -a, --autogen
29 -r, --regenerate-descriptors
32 -j #, --jobs #
33 Force the number of parallel jobs (useful for debugging build issues).
34 --core-only
35 Skip some of the core protobuf build/checks to shorten the build time.
36 --skip-xcode
37 Skip the invoke of Xcode to test the runtime on both iOS and OS X.
38 --skip-xcode-ios
39 Skip the invoke of Xcode to test the runtime on iOS.
40 --skip-xcode-debug
42 --skip-xcode-release
44 --skip-xcode-osx | --skip-xcode-macos
46 --skip-xcode-tvos
48 --skip-objc-conformance
50 --xcode-quiet
51 Pass -quiet to xcodebuild.
69 if [ ${MAKE_EXIT_STATUS} -ne 0 ]; then
73 set -e
76 NUM_MAKE_JOBS=$(/usr/sbin/sysctl -n hw.ncpu)
77 if [[ "${NUM_MAKE_JOBS}" -lt 2 ]] ; then
94 -h | --help )
98 -c | --clean )
101 -a | --autogen )
104 -r | --regenerate-descriptors )
107 -j | --jobs )
111 --core-only )
114 --skip-xcode )
119 --skip-xcode-ios )
122 --skip-xcode-osx | --skip-xcode-macos)
125 --skip-xcode-tvos )
128 --skip-xcode-debug )
131 --skip-xcode-release )
134 --skip-objc-conformance )
137 --xcode-quiet )
140 -*)
158 if [[ ! -f Makefile ]] ; then
166 CPPFLAGS="-mmacosx-version-min=10.9 -Wunused-const-variable -Wunused-function"
175 -project objectivec/ProtocolBuffers_iOS.xcodeproj
176 -scheme ProtocolBuffers
179 "${XCODEBUILD_CLEAN_BASE_IOS[@]}" -configuration Debug clean
182 "${XCODEBUILD_CLEAN_BASE_IOS[@]}" -configuration Release clean
188 -project objectivec/ProtocolBuffers_OSX.xcodeproj
189 -scheme ProtocolBuffers
192 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Debug clean
195 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Release clean
201 -project objectivec/ProtocolBuffers_tvOS.xcodeproj
202 -scheme ProtocolBuffers
205 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Debug clean
208 "${XCODEBUILD_CLEAN_BASE_OSX[@]}" -configuration Release clean
215 ./generate_descriptor_proto.sh -j "${NUM_MAKE_JOBS}"
220 wrapped_make -j "${NUM_MAKE_JOBS}"
225 wrapped_make -j "${NUM_MAKE_JOBS}" all
226 wrapped_make -j "${NUM_MAKE_JOBS}" check
229 wrapped_make -j "${NUM_MAKE_JOBS}" test_cpp
234 objectivec/generate_well_known_types.sh --check-only -j "${NUM_MAKE_JOBS}"
238 if ! objectivec/DevTools/pddm.py --dry-run objectivec/*.[hm] objectivec/Tests/*.[hm] ; then
245 readonly XCODE_VERSION_LINE="$(xcodebuild -version | grep Xcode\ )"
251 -project objectivec/ProtocolBuffers_iOS.xcodeproj
252 -scheme ProtocolBuffers
255 XCODEBUILD_TEST_BASE_IOS+=( -quiet )
261 [6-8].* )
263 …echo "ERROR: Xcode 9.0 or higher is required to build the test suite, but the library works with X…
266 9.[0-2]* )
268 -destination "platform=iOS Simulator,name=iPhone 4s,OS=8.1" # 32bit
269 -destination "platform=iOS Simulator,name=iPhone 7,OS=latest" # 64bit
270 # 9.0-9.2 all seem to often fail running destinations in parallel
271 -disable-concurrent-testing
274 9.[3-4]* )
276 # Xcode 9.3 chokes targeting iOS 8.x - http://www.openradar.me/39335367
277 -destination "platform=iOS Simulator,name=iPhone 4s,OS=9.0" # 32bit
278 -destination "platform=iOS Simulator,name=iPhone 7,OS=latest" # 64bit
280 -disable-concurrent-testing
285 -destination "platform=iOS Simulator,name=iPhone 4s,OS=8.1" # 32bit
286 -destination "platform=iOS Simulator,name=iPhone 7,OS=latest" # 64bit
289 -disable-concurrent-destination-testing
295 -destination "platform=iOS Simulator,name=iPhone 8,OS=latest" # 64bit
302 echo "ERROR: Build aborted!"
307 header "Doing Xcode iOS build/tests - Debug"
308 "${XCODEBUILD_TEST_BASE_IOS[@]}" -configuration Debug test
311 header "Doing Xcode iOS build/tests - Release"
312 "${XCODEBUILD_TEST_BASE_IOS[@]}" -configuration Release test
320 -project objectivec/ProtocolBuffers_OSX.xcodeproj
321 -scheme ProtocolBuffers
323 -destination "platform=OS X,arch=x86_64" # 64bit
326 XCODEBUILD_TEST_BASE_OSX+=( -quiet )
329 [6-8].* )
331 …echo "ERROR: Xcode 9.0 or higher is required to build the test suite, but the library works with X…
336 header "Doing Xcode OS X build/tests - Debug"
337 "${XCODEBUILD_TEST_BASE_OSX[@]}" -configuration Debug test
340 header "Doing Xcode OS X build/tests - Release"
341 "${XCODEBUILD_TEST_BASE_OSX[@]}" -configuration Release test
347 -project objectivec/ProtocolBuffers_tvOS.xcodeproj
348 -scheme ProtocolBuffers
351 [6-9].* )
352 echo "ERROR: Xcode 10.0 or higher is required to build the test suite." 1>&2
357 -destination "platform=tvOS Simulator,name=Apple TV 4K,OS=latest"
364 echo "ERROR: Build aborted!"
369 XCODEBUILD_TEST_BASE_TVOS+=( -quiet )
372 header "Doing Xcode tvOS build/tests - Debug"
373 "${XCODEBUILD_TEST_BASE_TVOS[@]}" -configuration Debug test
376 header "Doing Xcode tvOS build/tests - Release"
377 "${XCODEBUILD_TEST_BASE_TVOS[@]}" -configuration Release test
384 wrapped_make -j "${NUM_MAKE_JOBS}" test_objc