Merge pull request #39794 from obsidiansystems/ios-examples

lib, openssl: 2 misc bits towards iOS support
This commit is contained in:
John Ericson 2018-05-01 01:37:03 -04:00 committed by GitHub
commit d350a444b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 6 deletions

View File

@ -88,16 +88,36 @@ rec {
# #
iphone64 = { iphone64 = {
config = "aarch64-apple-darwin14"; config = "aarch64-apple-ios";
arch = "arm64"; # config = "aarch64-apple-darwin14";
libc = "libSystem"; sdkVer = "10.2";
useiOSPrebuilt = true;
platform = {}; platform = {};
}; };
iphone32 = { iphone32 = {
config = "arm-apple-darwin10"; config = "armv7-apple-ios";
arch = "armv7-a"; # config = "arm-apple-darwin10";
libc = "libSystem"; sdkVer = "10.2";
useiOSPrebuilt = true;
platform = {};
};
iphone64-simulator = {
config = "x86_64-apple-ios";
# config = "x86_64-apple-darwin14";
sdkVer = "10.2";
useiOSPrebuilt = true;
isiPhoneSimulator = true;
platform = {};
};
iphone32-simulator = {
config = "i686-apple-ios";
# config = "i386-apple-darwin11";
sdkVer = "10.2";
useiOSPrebuilt = true;
isiPhoneSimulator = true;
platform = {}; platform = {};
}; };

View File

@ -48,6 +48,8 @@ let
then "./Configure mingw${toString hostPlatform.parsed.cpu.bits}" then "./Configure mingw${toString hostPlatform.parsed.cpu.bits}"
else if hostPlatform.isLinux else if hostPlatform.isLinux
then "./Configure linux-generic${toString hostPlatform.parsed.cpu.bits}" then "./Configure linux-generic${toString hostPlatform.parsed.cpu.bits}"
else if hostPlatform.isiOS
then "./Configure ios${toString hostPlatform.parsed.cpu.bits}-cross"
else else
throw "Not sure what configuration to use for ${hostPlatform.config}" throw "Not sure what configuration to use for ${hostPlatform.config}"
); );