1#### Android...
2#
3# Heavily hacked 15-android.conf based on OpenSSL's config file of the same name.
4# This 15-android.conf avoids compiler errors using NDK-r20. This 15-android.conf
5# requires an environment set (sourced) using setenv-android.sh.
6
7my %targets = (
8    "android" => {
9        inherit_from     => [ "linux-generic32" ],
10        template         => 1,
11        bin_cflags       => add("-fPIE"),
12        bin_lflags       => add("-pie"),
13        enable           => [ ],
14    },
15
16    "android-arm" => {
17        inherit_from     => [ "android", asm("armv4_asm") ],
18        bn_ops           => [ "BN_LLONG", "RC4_CHAR" ],
19    },
20    "android-arm64" => {
21        inherit_from     => [ "android", asm("aarch64_asm") ],
22        bn_ops           => [ "SIXTY_FOUR_BIT_LONG", "RC4_CHAR" ],
23        perlasm_scheme   => "linux64",
24    },
25
26    "android-x86" => {
27        inherit_from     => [ "android", asm("x86_asm") ],
28        cflags           => add(picker(release => "-fomit-frame-pointer")),
29        bn_ops           => [ "BN_LLONG", "RC4_INT" ],
30        perlasm_scheme   => "android",
31    },
32    "android-x86_64" => {
33        inherit_from     => [ "android", asm("x86_64_asm") ],
34        bn_ops           => [ "SIXTY_FOUR_BIT_LONG", "RC4_INT" ],
35        perlasm_scheme   => "elf",
36    },
37);
38