1364468Scy#### iPhoneOS/iOS
2364468Scy#
3364468Scy# It takes recent enough Xcode to use following two targets. It shouldn't
4364468Scy# be a problem by now, but if they don't work, original targets below
5364468Scy# that depend on manual definition of environment variables should still
6364468Scy# work...
7364468Scy#
8364468Scymy %targets = (
9364468Scy    "ios-common" => {
10364468Scy        template         => 1,
11364468Scy        inherit_from     => [ "darwin-common" ],
12364468Scy        sys_id           => "iOS",
13364468Scy        disable          => [ "engine", "async" ],
14364468Scy    },
15364468Scy    "ios-xcrun" => {
16364468Scy        inherit_from     => [ "ios-common", asm("armv4_asm") ],
17364468Scy        bn_ops           => [ "BN_LLONG", "RC4_CHAR" ],
18364468Scy        perlasm_scheme   => "ios32",
19364468Scy    },
20364468Scy    "ios64-xcrun" => {
21364468Scy        inherit_from     => [ "ios-common", asm("aarch64_asm") ],
22364468Scy        bn_ops           => [ "SIXTY_FOUR_BIT_LONG", "RC4_CHAR" ],
23364468Scy        perlasm_scheme   => "ios64",
24364468Scy    },
25364468Scy    "iossimulator-xcrun" => {
26364468Scy        inherit_from     => [ "ios-common" ],
27364468Scy    },
28364468Scy
29364468Scy    "iphoneos-cross" => {
30364468Scy        inherit_from     => [ "ios-common" ],
31364468Scy        cflags           => add("-Wall -fno-common"),
32364468Scy    },
33364468Scy    "ios-cross" => {
34364468Scy        inherit_from     => [ "ios-xcrun" ],
35364468Scy        cflags           => add("-Wall -fno-common"),
36364468Scy    },
37364468Scy    "ios64-cross" => {
38364468Scy        inherit_from     => [ "ios64-xcrun" ],
39364468Scy        cflags           => add("-Wall -fno-common"),
40364468Scy    },
41364468Scy);
42