Commit Graph
49 Commits
Author SHA1 Message Date
Frank Denis 6388063c85 ios.sh: build the XCFramework in a single pass
Via @Westacular @svdo
Fixes #985
2020-07-21 14:14:08 +02:00
Frank Denis d1d777532f ios.sh: don't build Catalyst/arm64 on x86_64 hosts for now
Fixes #980
2020-07-05 01:40:52 +02:00
Frank Denis 27f4134785 Add support for Catalyst on Apple Silicon
Of course, we should do feature detection instead of system detection,
but future Xcode 12 versions are probably going to bring things on par.
2020-07-03 22:44:43 +02:00
Frank Denis a0bee2a883 Remove ios-xcframework.sh and watchos.sh; consolidate ios.sh 2020-07-03 21:29:59 +02:00
Frank Denis 2aae747916 Move global definitions up 2020-07-03 19:47:13 +02:00
Frank Denis c5d1c546c6 Reduce the differences between ios.sh and ios-xcframework.sh 2020-07-03 19:44:01 +02:00
Frank Denisandkappes 705b4ef2c6 Add support for Catalyst (#923)
* added macOS Catalyst support

* removed unintended changes

* moved code snippets around

* Remove duplicate -fembed-bitcode

Co-authored-by: kappes <kappes@users.noreply.github.com>
2020-01-28 16:36:45 +01:00
Frank Denis 1c25d9cc6a Remove duplicate -fembed-bitcode 2020-01-28 13:43:05 +01:00
Frank Denis db64ee1787 Bump the minimum iOS version to iOS 9
Add stricter checks for getrandom()/getentropy()
2019-10-23 18:11:12 +02:00
Frank Denis b614cfc37f Bump iOS min version to 8.0.0 2019-10-23 18:02:43 +02:00
0xmatthias 84492eac88 building shared library for ios.sh 2019-09-09 04:25:59 +02:00
Frank Denis 5b05324268 More aggressive check for getrandom() and getentropy() usability
In particular, they can be present, but not usable for a given
compatibility level. This is especially expected on iOS and Android.
2019-04-19 00:51:06 +02:00
Frank Denis 7d4976a304 Check NPROCESSORS_ONLN in addition to _NPROCESSORS_ONLN 2018-03-07 10:14:01 +01:00
Frank Denis 816cef5de4 Hide getconf errors 2018-03-07 10:09:56 +01:00
joshjdevl 212187f87c using POSIX getconf for number of available processors http://pubs.opengroup.org/onlinepubs/9699919799/utilities/getconf.html 2018-03-07 07:15:01 +00:00
Daniel Persson c7f0f05209 I turned it around. 2018-03-06 21:20:17 +01:00
Daniel Persson 9d582340c4 Change so we set depending on a full build flag. 2018-03-06 21:10:05 +01:00
Daniel Persson 2f4d911300 Change so all builds will allow full builds. 2018-03-06 20:36:39 +01:00
Frank Denis 94e04fe530 Embed bitcode in iOS builds 2018-02-24 01:48:39 +01:00
Frank Denis 9ebe443bc7 Who's still using XCode < 8 ? 2018-01-07 13:13:56 +01:00
Frank Denis 7dee41abee Disable LTO in ios/osx build scripts 2017-12-31 00:56:51 +01:00
Frank Denis b5b67d074e Add -fembed-bitcode to the iOS 64 target, for WatchOS and TVOS 2017-07-31 14:54:15 +02:00
Adriaan Duz dbd7026bc5 Add armv7s architecture to dist-build/ios.sh (#528) 2017-04-07 07:16:44 -07:00
Frank Denis 6e2b119d86 Use xcodebuild to retrieve the XCode version 2016-09-18 10:46:59 +02:00
Frank Denis ed19556c2f XCode 8 may not be able to compile for iOS 5 and more 2016-09-18 09:21:53 +02:00
Frank Denis 1766e13a0e Pass --host to compile for the iOS simulator 2016-09-18 09:04:19 +02:00
Frank Denis cb1b6a4a2f Use -O2 & -flto for iOS targets 2015-11-30 00:17:22 +01:00
Frank Denis e0ad286258 Remove armv7s from the iOS build script 2015-08-04 13:51:12 +02:00
Frank Denis 34176344fe iOS: install the library into $PREFIX/lib 2015-07-18 17:44:45 +02:00
Frank Denis c5556527ea + simple OSX build script 2015-04-20 12:47:12 +02:00
Frank Denis ffc98b37b9 Let dist-build/ios.sh compile only for iOS and the iOS emulator. 2015-04-18 18:41:48 +02:00
Frank Denis a26a126a51 Slightly revamp dist-build/ios.sh
- Compile arm32 and arm64 targets separately
- Compile for the iOS simulator

The resulting fat library include arm32, arm64, 32-bit simulator and
64-bit OSX targets.

This is a bit better than what we previously had regarding the simulator,
but still not optimal, as the 64-bit simulator version should also be
included. However, a fat library cannot include both the 64-bit simulator
version and a version for OSX since the architecture is the same.

The proper way to address this is probably to generate two libraries.
This requires some prior changes to Swift-Sodium.
2015-04-18 11:50:27 +02:00
Frank Denis c7492a4bae Make IPHONEOS_VERSION_MIN overridable 2014-12-26 23:01:38 +01:00
Frank Denis 9af34c5766 Compile for armv7s 2014-12-16 19:33:58 +01:00
clowwindy b97c7f4f88 build both i386 and x86_64 for iOS simulator 2014-12-12 16:43:55 +08:00
clowwindy d5acdd7f40 fix typo 2014-12-12 16:35:38 +08:00
Frank Denis 32cf1d50fa Since we're compiling for OSX, run the test suite. 2014-12-11 00:35:31 -08:00
Frank Denis ba3fdb4790 Display what the fat library contains 2014-12-10 21:43:55 -08:00
Frank Denis a96eb971b4 If the OSX code in ios.sh is just for the simulator, using -Oz is fine 2014-12-10 21:41:31 -08:00
Frank Denis f2b034867e dist-build/ios: remove existing headers 2014-12-10 21:40:49 -08:00
Frank Denis 1ee6da8107 Make the output more readable 2014-12-10 21:27:10 -08:00
Frank Denis d8deef19ef Use make distclean for cleanup; tell the user where it's been installed 2014-12-10 21:23:24 -08:00
Frank Denis d050dbbed5 Cleanup -> make distclean 2014-12-10 21:22:01 -08:00
Frank Denis 997485ac22 Use the same options on OSX and iOS 2014-12-10 21:21:15 -08:00
Jack Wink 28edcc1885 update iOS build script to include arm64 and current OSX machine arch 2014-12-11 00:17:10 -05:00
Frank Denis 2ee447ff14 iOS: add -miphoneos-version-min 2014-11-20 14:01:35 -08:00
Frank Denis 729a54f4a2 Use --enable-minimal in the Android and iOS builds 2014-08-13 23:32:26 -07:00
Frank Denis dda77990f8 Target iOS 8.0 2014-06-29 10:55:13 -07:00
Frank Denis 884eac37ce iphone.sh -> ios.sh 2014-04-24 22:59:00 -07:00